请问各位高手如何才能截获窗口最小化时的消息?
解决方案 »
- 用CMSWinsockControl的对象,连接的时候总是弹出“Unsupported variant types”报错对话框
- VS2010中 怎么使用windows的SEH?
- 刚刚学习VC,问一个工具栏的简单问题
- 我写的程序,当取一网页时(网页较大,网速较慢),程序就象死了一样不能拖动,半天反应过来。
- 再次申请基础版斑竹,还望大家支持
- 我在视类成员函数中用这两个函数,::SetCursor()和SetCursor()有啥区别??
- 谁能解释一下共享数据段???
- 请教OLE DB模板类CDataSource中open方法参数的意义
- 新版的csdn现在还可以转移可用分吗?怎样转?专家分要求有多少分才行
- 再问:线程同步,网络发送方面的问题?十万火急!!!
- 续:返回多个记录集的问题!
- 誰能send給我一個打開無模式對話框的例子.謝謝!!!!!!!!!!!!!
uCmdType = wParam; // type of system command requested
xPos = LOWORD(lParam); // horizontal postion, in screen coordinates
yPos = HIWORD(lParam); // vertical postion, in screen coordinates
其中uCmdType表示用户的选择:
SC_CLOSE Closes the window.
SC_CONTEXTHELP Changes the cursor to a question with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message.
SC_DEFAULT Selects the default item; the user double-clicked the System menu.
SC_HOTKEY Activates the window associated with the application-specified hot key. The low-order word of lParam identifies the window to activate.
SC_HSCROLL Scrolls horizontally.
SC_KEYMENU Retrieves the System menu as a result of a keystroke.
SC_MAXIMIZE (or SC_ZOOM) Maximizes the window.
SC_MINIMIZE (or SC_ICON) Minimizes the window.
SC_MONITORPOWER Windows 95 only: Sets the state of the display. This command supports devices that have power-saving features, such as a battery-powered personal computer.
SC_MOUSEMENU Retrieves the System menu as a result of a mouse click.
SC_MOVE Moves the window.
SC_NEXTWINDOW Moves to the next window.
SC_PREVWINDOW Moves to the previous window.
SC_RESTORE Restores the window to its normal position and size.
SC_SCREENSAVE Executes the screen saver application specified in the [boot] section of the SYSTEM.INI file.
SC_SIZE Sizes the window.
SC_TASKLIST Executes or activates Windows Task Manager.
SC_VSCROLL Scrolls vertically.
{
if( nID == SC_MINIMIZE )
{
.......
return;
}
...