Edit control doesn't generate WM_COMMAND messages

前端 未结 1 1000
抹茶落季
抹茶落季 2021-01-21 14:18

I have an edit control. In the parent window I\'m listening a WM_COMMAND message. But my control doesn\'t send it on change. Moreover, when I\'m watching messages w

相关标签:
1条回答
  • 2021-01-21 15:12

    For an edit control, notifications are sent to the original parent of the control. That is, in your case, the message only window.

    In a comment to a similar question Raymond Chen says:

    Many controls cache the original parent. Not much you can do about it.

    You may be best postponing creation of the edit control until you have created its parent.

    0 讨论(0)
提交回复
热议问题