命令消息与通知消息,如何界定呀?都是产生 WM_COMMAND 消息呀?
---------------------------------------------------------
好像菜单的就是:命令消息.
控件的就是:通知消息,
但是,按钮的单击,却又是"命令消息"我有点晕了,到底 命令消息 与 通知消息,如何界定呢?
---------------------------------------------------------
好像菜单的就是:命令消息.
控件的就是:通知消息,
但是,按钮的单击,却又是"命令消息"我有点晕了,到底 命令消息 与 通知消息,如何界定呢?
解决方案 »
- CEdit类为什么出现这种情况?
- 求论坛高手指点啊,PASV(被动方式)命令发送后,为什么程序不往下走,卡住了?
- 主机send失败问题(CAsyncSocket)
- 程序运行时报错,请问错在何处???代码是。。。。
- 请问C 标准库的 math.h 的源码哪有. VC98\CRT\SRC 没有...................
- 请问视图窗口与框架窗口的区别是什么??
- 如何用srand()和rand()产生若干0-1之间的随机数呢?
- 如何在VB里面调用DLL
- CString Format 的问题
- 入门:详细说明如何在多文档结构的父窗体菜单命令打开一个子窗体?
- 怎么修改窗口类名额
- 获取CLsitCtrl控件的滚动条对象?
This message is sent when the user selects a command item from a menu, when a control sends a message to its parent window, or when an accelerator keystroke is translated. WM_COMMAND wNotifyCode = HIWORD(wParam);
wID = LOWORD(wParam);
hwndCtl = (HWND) lParam;
Parameters
wNotifyCode
Value of the high-order word of wParam. Specifies the notification code if the message is from a control. If the message is from an accelerator, this parameter is 1. If the message is from a menu, this parameter is 0.
wID
Value of the low-order word of wParam. Specifies the identifier of the menu item, control, or accelerator.
hwndCtl
Handle to the control sending the message if the message is from a control. Otherwise, this parameter is NULL.