窗口、控件的绘制
WM_ERASEBKGND
WM_PAINT
发送几次WM_ERASEBKGND后,才发送一次WM_PAINT。
WM_CTLCOLOR
可以在其响应函数中改变对话框控件的颜色,什么时候调用还不清楚。
常用的系统命令
WM_SYSCOMMAND 当窗口收到WM_CLOSE,WM_MOVE,WM_SIZE等消息时,会触发
WM_NCCREATE
WM_NCCALCSIZE
WM_CREATE
WM_CLOSE
WM_DESTROY
WM_NCDESTROY
这个暂时没有响应
WM_MOVING
WM_MOVE
WM_SIZING
WM_SIZE
这两个属性需先设置窗口的”Border”属性为”Resizing”,这样才可以鼠标拖动改变窗口大小。
鼠标左右键,滚轮
WM_MOUSEACTIVATE 用鼠标激活窗口时响应
WM_MOUSEWHEEL
WM_MOUSEMOVE
WM_MOUSEHOVER 鼠标在窗口上停留一定时间后出发
WM_MOUSELEAVE 鼠标离开窗口后
以上两个需要在WM_MOUSEMOVE中调用_TrackMouseEvent()注册,才会响应。
WM_LBUTTONDBLCLK
WM_LBUTTONDOWN
WM_LBUTTONUP
WM_MBUTTONDBLCLK
WM_MBUTTONDOWN
WM_MBUTTONUP
WM_RBUTTONDBLCLK
WM_RBUTTONDOWN
WM_RBUTTONUP
WM_NCLBUTTONDBLCLK
WM_NCLBUTTONDOWN
WM_NCLBUTTONUP
WM_NCMBUTTONDBLCLK
WM_NCMBUTTONDOWN
WM_NCMBUTTONUP
WM_NCRBUTTONDBLCLK
WM_NCRBUTTONDOWN
WM_NCRBUTTONUP