分类: C/C++
2006-11-21 10:41:27
Common Windows Messages
Message | Sent When |
---|---|
WM_CHAR | A character is input from the keyboard. |
WM_COMMAND | The user selects an item from a menu, or a control sends a notification to its parent. |
WM_CREATE | A window is created. |
WM_DESTROY | A window is destroyed. |
WM_LBUTTONDOWN | The left mouse button is pressed. |
WM_LBUTTONUP | The left mouse button is released. |
WM_MOUSEMOVE | The mouse pointer is moved. |
WM_PAINT | A window needs repainting. |
WM_QUIT | The application is about to terminate. |
WM_SIZE | A window is resized. |
常用Windows消息
消息 |
发送的条件 |
---|---|
WM_CHAR | 从键盘输入字符 |
WM_COMMAND | 用户选择菜单内的某项,或控件给其父类发送了一个通知 |
WM_CREATE | 生成窗口 |
WM_DESTROY | 销毁窗口 |
WM_LBUTTONDOWN | 按下鼠标左键 |
WM_LBUTTONUP | 释放鼠标左键 |
WM_MOUSEMOVE | 移动鼠标指针 |
WM_PAINT | 窗口需要重新绘制 |
WM_QUIT | 应用程序将结束 |
WM_SIZE | 窗口尺寸被调整 |