在Form中放一个Panel
在Panel的OnMouseDown中写如下代码!
procedure TForm1.Panel1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
ReleaseCapture;
SendMessage(Panel1.Handle, WM_SYSCOMMAND, $F012, 0);
end;
但是我找遍帮助也没找到$F012所代表的意思,以下是帮助中WParam参数的对应值!
SC_CLOSE $F060
SC_CONTEXTHELP $F180
SC_DEFAULT $F160
SC_HOTKEY $F150
SC_HSCROLL $F080
SC_KEYMENU $F100
SC_MAXIMIZE $F030
SC_MINIMIZE $F020
SC_MONITORPOWER $F170
SC_MOUSEMENU $F090
SC_MOVE $F010
SC_NEXTWINDOW $F040
SC_PREVWINDOW $F050
SC_RESTORE $F120
SC_SCREENSAVE $F140
SC_SIZE $F000
SC_TASKLIST $F130
SC_VSCROLL $F070其实上面的代码$F012的取值为以下都可以达到
拖动Panel的效果,[$F009,$F012, $F013..$F019]
而且你把值换成如$F001, $F002 .. $F008等可以看到很多效果!不知道哪里有相关的说明?为什么这些东西没有写入到帮助中呢?
在Panel的OnMouseDown中写如下代码!
procedure TForm1.Panel1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
ReleaseCapture;
SendMessage(Panel1.Handle, WM_SYSCOMMAND, $F012, 0);
end;
但是我找遍帮助也没找到$F012所代表的意思,以下是帮助中WParam参数的对应值!
SC_CLOSE $F060
SC_CONTEXTHELP $F180
SC_DEFAULT $F160
SC_HOTKEY $F150
SC_HSCROLL $F080
SC_KEYMENU $F100
SC_MAXIMIZE $F030
SC_MINIMIZE $F020
SC_MONITORPOWER $F170
SC_MOUSEMENU $F090
SC_MOVE $F010
SC_NEXTWINDOW $F040
SC_PREVWINDOW $F050
SC_RESTORE $F120
SC_SCREENSAVE $F140
SC_SIZE $F000
SC_TASKLIST $F130
SC_VSCROLL $F070其实上面的代码$F012的取值为以下都可以达到
拖动Panel的效果,[$F009,$F012, $F013..$F019]
而且你把值换成如$F001, $F002 .. $F008等可以看到很多效果!不知道哪里有相关的说明?为什么这些东西没有写入到帮助中呢?
解决方案 »
- [考题]关于SetLength
- fastreport 问题
- ADO访问ORACL数据库的问题
- 求delphi 6 个人版 安装序列号和注册码
- 急!!!请问数据库中中文过长问题报表如何分行显示
- 如何直接指定TMMACMConverter.PWaveFormat?
- 在DBGrid中的右键菜单怎么才能在有文本得到焦点时不把系统自己的剪切复制菜单屏蔽掉?
- Kaersoft下载基地将被取消,需要东西的快去下载!
- 字符串能轉化成對象嗎?
- WordApplication 在connect时总是出现“呼叫请求被对方拒绝”,为什么?
- Richedit想说爱你并不是很容易!(请高手帮忙让我High一下!)
- 500分结帖,等待高手解决?(在线)
这些是没有公开的参数值,你当然找不到说明了,再说知道用了还要什么说明?
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 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 (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 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 Executes or activates Windows Task Manager.
SC_VSCROLL Scrolls vertically.