我用钩子函数截获一个窗体的窗口过程WH_CALLWNDPROC,当这个窗体被选中时先接收到WM_NCACTIVATE、然后再接收到WM_ACTIVATE,当选中其它窗体时也同样接收到这两个消息,而且顺序一样,为什么?
解决方案 »
- MFC中,怎样利用多线程和回调函数,从串口调试助手中接收数据,然后在编辑框中显示出来?
- 绘制波形图时,在x轴坐标上扩大或者缩小,扩大时moveto lineto绘制的波形图会出现空白没绘制的地方,如何解决?
- VC实现一个自定义的列表
- matlab c++混合编程中出现的问题,急啊
- 最小二乘法的问题
- 请问Datagrid的打印函数print的参数是什么,请各位大侠指教,谢谢了!!!
- 请问如何手工天加最小化后的图标(内详)
- Windows核心编程 DLL基础
- 跪求这个程序~~~
- 数据库的急切问题,大家快来!!!!!!!!!
- 怎么抓打印池里面的信息
- 怎么删除istctrl中选定项对应的sql数据库记录?
LPARAM lParam;
ParameterswParam
The low-order word specifies whether the window is being activated or deactivated. This parameter can be one of the following values. The high-order word specifies the minimized state of the window being activated or deactivated. A nonzero value indicates the window is minimized.
WA_ACTIVE
Activated by some method other than a mouse click (for example, by a call to the SetActiveWindow function or by use of the keyboard interface to select the window).
WA_CLICKACTIVE
Activated by a mouse click.
WA_INACTIVE
Deactivated.lParam
Handle to the window being activated or deactivated, depending on the value of the wParam parameter. If the low-order word of wParam is WA_INACTIVE, lParam is the handle to the window being activated. If the low-order word of wParam is WA_ACTIVE or WA_CLICKACTIVE, lParam is the handle to the window being deactivated. This handle can be NULL.