WM_NOTIFY and ON_NOTIFY_REFLECT

来源:互联网 发布:分流器和电话线插网络 编辑:程序博客网 时间:2024/05/13 12:04
by --MSDN
The message-map macro for reflected messages is slightly different than for regular notifications: it has _REFLECT appended to its usual name. For instance, to handle a WM_NOTIFY message in the parent, you use the macro ON_NOTIFY in the parent’s message map. To handle the reflected message in the child control, use the ON_NOTIFY_REFLECT macro in the child control’s message map. In some cases, the parameters are different, as well. Note that ClassWizard can usually add the message-map entries for you and provide skeleton function implementations with correct parameters.
原创粉丝点击