当用户从菜单中选择了一项,或者子控件发出一个通知消息,或者转换了一个加速键的击键事件,框架就调用这个成员函数。
The framework calls this member function when the user selects an item from a menu, when a child control sends a notification message, or when an accelerator keystroke is translated.
在上述的情况下,每个需要自定义背景控件的对话框都不得不处理控件颜色通知消息。
In the case above, every dialog box that wanted controls with custom backgrounds would have to handle the control color notification message.
为了处理被反射过来的控件通知消息,使用列于下表的消息映射宏和函数原型。
To handle a reflected control notification message, use the message-map macros and function prototypes listed in the table below.
向选定的类或对象添加消息处理程序,然后以新函数打开文本编辑器,以便可以添加控件通知处理程序代码。
Adds the message handler to the selected class or object, and then opens the text editor to the new function so you can add the control notification handler code.
在的子控件的变化(响应用户操作)的状态下,通过捕捉那些发送一些通知消息到它的父窗口,父窗口消息,执行操作。
When the state of a child control changes (in response to a user action), it sends some notification messages to it's parent window, and parent window by catching those messages, performs actions.
在的子控件的变化(响应用户操作)的状态下,通过捕捉那些发送一些通知消息到它的父窗口,父窗口消息,执行操作。
When the state of a child control changes (in response to a user action), it sends some notification messages to it's parent window, and parent window by catching those messages, performs actions.
应用推荐