问题
What is the Message that matches the TextChanged property in .NET for C++\Win32?
回答1:
Assuming you're talking about the Edit control, EN_CHANGE is the notification you're looking for. The parent of the Edit control receives the notification via the WM_COMMAND message, with HIWORD(wParam) == EN_CHANGE
, LOWORD(wParam) == edit control identifier
and lParam == edit control HWND
.
来源:https://stackoverflow.com/questions/3435730/edit-control-text-changed-message-in-c-win32