DDDDDDDDDDDD
顶顶
顶顶
顶顶
!!!!
好东西大家分享,
掌中技术论坛 里面包含了许多技术
性的文章(例如WEB的开发、数据库、软件工程管理、Borland技术…等等),大家
可以去免费下载相关资料,, 也可以把一些好的资源分享上去,大家共同交流、
学习。。。,独乐乐不如众乐乐嘛……~!! 呵呵
( zhangzhongbao 发表于 2008-7-7 12:04:00)
怎么样在标题栏上实现字体的运动 ( 蓝颜知己 发表于 2007-9-4 9:53:00)
Return Values
An application should return zero if it processes this message.
( ycguo 发表于 2006-11-3 12:47:00)
1 means the display is going to low power.
2 means the display is being shut off.
SC_MOUSEMENU Retrieves the window 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 Activates the Start menu.
SC_VSCROLL Scrolls vertically.
( ycguo 发表于 2006-11-3 12:46:00)
SC_DEFAULT Selects the default item; the user double-clicked the window 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 window menu as a result of a keystroke.
SC_MAXIMIZE Maximizes the window.
SC_MINIMIZE Minimizes the window.
SC_MONITORPOWER Sets the state of the display. This command supports devices that have power-saving features, such as a battery-powered personal computer.
lParam can have the following values:
( ycguo 发表于 2006-11-3 12:46:00)
Parameters
uCmdType
Specifies the type of system command requested. This parameter can be one of the following values. Value Meaning
SC_CLOSE Closes the window.
SC_CONTEXTHELP Changes the cursor to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message.
( ycguo 发表于 2006-11-3 12:46:00)
xPos
Specifies the horizontal position of the cursor, in screen coordinates, if a window menu command is chosen with the mouse. Otherwise, the xPos parameter is not used.
yPos
Specifies the vertical position of the cursor, in screen coordinates, if a window menu command is chosen with the mouse. This parameter is –1 if the command is chosen using a system accelerator, or zero if using a mnenomic.
( ycguo 发表于 2006-11-3 12:46:00)
MSDN中关于SC_RESTORE消息的解释,参考:
WM_SYSCOMMAND
A window receives this message when the user chooses a command from the window menu (formerly known as the system or control menu) or when the user chooses the maximize button, minimize button, restore button, or close button.
WM_SYSCOMMAND
uCmdType = wParam; // type of system command requested
xPos = LOWORD(lParam); // horizontal position, in screen coordinates
yPos = HIWORD(lParam); // vertical position, in screen coordinates
( ycguo 发表于 2006-11-3 12:45:00)
只是解决了如何拖动对话框,但是发现有好多人的确不知道到底是怎么实现的。
我的代码,供参考:
void CLogonFrm::OnMouseMove(UINT nFlags, CPoint point)
{
//在WM_MOVE消息处理函数中通过向自己发送参数
//wParam为HTCAPTION
//lParam为鼠标位置的WM_NCLBUTTONDOWN消息
//实现窗口移动
//此时窗口移动过程的绘制由系统实现。
if(MK_LBUTTON & nFlags) //如果按下了鼠标左键
{
SendMessage(WM_NCLBUTTONDOWN,HTCAPTION,(LPARAM)(point.x|(point.y>>16)));
}
CDialog::OnMouseMove(nFlags, point);
} ( ycguo 发表于 2006-11-3 12:40:00)
? ( yjf_vc 发表于 2006-5-28 22:55:00)
.......................................................
--------------------next---------------------