如题,按钮通过create成员函数动态创建.
解决方案 »
- 有没有在MFC下画坐标轴的库或者控件?
- 写html文件代码时,有没办法知道打印隔页的打印位置;
- 一个SQL查询语句的问题,请大侠们指教!!!
- 请问用何API捕捉当前键盘的焦点在某个文本输入軭,我用Getfocus(),但当选择菜单后就捕捉不到了.
- 怎样插入ActiveX控件
- 讨论:File是什么?
- 现在的Geforce MX 显卡 有内置硬件 dct/idct ,运动补偿电路等功能,不知道那里有这些开发的相关资料?
- 要学vc网络编程,请兄弟们推荐几本好书!
- 学习VC必备光盘-vctoolkit
- 求教一个与数理统计有关的c编程问题
- 救命啊!在RichEditCtrl2.0 中FindText为何总是返回-1?
- 随机数问题
The low-order word of wParam identifies the command ID of the menu item, control, or accelerator. The high-order word of wParam specifies the notification message if the message is from a control. If the message is from an accelerator, the high-order word is 1. If the message is from a menu, the high-order word is 0. lParam
Identifies the control that sends the message if the message is from a control. Otherwise, lParam is 0.
nNotifyCode = HIWORD(wParam);
nControlID = LOWORD(wParam);
nNotifyCode = HIWORD(wParam); //通知代码 = 0
nControlID = LOWORD(wParam); //控件id 你的按钮id
if(nNotifyCode == 0 && nControlID ==你的按钮id)
{
//你的按钮被按下
}