消息的分类: 窗口消息(windows message):这类消息主要有WM_开头; 控件的通知消息(control notifications):当控件的状态发生改变时,(例如,用户在控件中进 行输入时),控件就会向其父类发送WM_COMMAND 命令; 命令消息(command mess...
基于24个网页-相关网页
当用户从菜单中选择了一项,或者子控件发出一个通知消息,或者转换了一个加速键的击键事件,框架就调用这个成员函数。
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.
应用推荐