关键字参考

$tagWINDOWPOS

WINDOWPOS 数据结构包含一个窗口的大小和坐标信息.

Global Const $tagWINDOWPOS = "hwnd hWnd;int InsertAfter;int X;int Y;int CX;int CY;int Flags"

 

参数

hWnd 窗口句柄
InsertAfter 指定窗口 Z 轴坐标(不明白Z轴?想象窗口总在最前?)
X 指定窗口 X 轴坐标(距离左侧的坐标)
Y 指定窗口 Y 轴坐标(距离顶部的坐标)
CX 指定窗口宽度, 单位为像素.
CY 指定窗口高度, 单位为像素.
Flags Specifies the window position. This member can be one or more of the following values:
$SWP_DRAWFRAME - Draws a frame around the window
$SWP_FRAMECHANGED - Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed
$SWP_HIDEWINDOW - Hides the window
$SWP_NOACTIVATE - Does not activate the window
$SWP_NOCOPYBITS - Discards the entire contents of the client area
$SWP_NOMOVE - Retains the current position (ignores the x and y parameters)
$SWP_ NOOWNERZORDER - Does not change the owner window's position in the Z order
$SWP_NOREDRAW - Does not redraw changes
$SWP_NOREPOSITION - Same as the SWP_NOOWNERZORDER flag
$SWP_NOSENDCHANGING - Prevents the window from receiving the WM_WINDOWPOSCHANGING message
$SWP_NOSIZE - Retains the current size (ignores the cx and cy parameters)
$SWP_NOZORDER - Retains the current Z order (ignores the InsertAfter parameter)
$SWP_SHOWWINDOW - Displays the window

 

注意/说明

None.

 

相关