网站首页  词典首页

请输入您要查询的函数:

 

术语 movewindow
释义 MoveWindow
语法:
BOOL MoveWindow( HWND hWnd,
int X,
int Y,
int nWidth,
int nHeight,
BOOL bRepaint
);
MoveWindow函数
在MoveWindow功能变化的位置和指定的窗口尺寸。对于顶层窗口的位置和尺寸相对于左上角的屏幕一角。对于一个子窗口,它们相对于左上角的父窗口的客户区角落。
参数
hWnd
[in]的窗口句柄。
X
[in]指定的窗口左侧的新立场。
y
[in]指定窗口顶部的新位置。
nWidth
[in]指定窗口的新宽度。
nHeight
[in]指定窗口的新高度。
bRepaint
[in]指定窗口是否要重新绘制。如果此参数为TRUE,窗口收到一条消息。如果该参数为FALSE,没有发生任何形式的油漆。这适用于客户区,非工作区(包括标题栏和滚动条),以及任何一个移动作为一个子窗口结果发现父窗口的一部分。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
如果bRepaint参数为true时,系统发出后立即移动窗口的WM_PAINT消息的窗口过程(即MoveWindow函数调用UpdateWindow函数)。如果bRepaint为FALSE,应用程序必须明确失效或重绘的窗口和父窗口需要重画的任何部分。
MoveWindow发送WM_WINDOWPOSCHANGING,WM_WINDOWPOSCHANGED,WM_MOVE,WM_SIZE,并WM_NCCALCSIZE信息的窗口。
例如
有关示例,请参阅创建,枚举和浆纱子窗口。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
视窗概述,SetWindowPos,UpdateWindow,WM_GETMINMAXINFO,WM_PAINT消息
==英文原文==MoveWindow Function
The MoveWindow function changes the position and dimensions of the specified window. For a top-level window, the position and dimensions are relative to the upper-left corner of the screen. For a child window, they are relative to the upper-left corner of the parent window's client area.
Syntax
BOOL MoveWindow( HWND hWnd,
int X,
int Y,
int nWidth,
int nHeight,
BOOL bRepaint
);
Parameters
hWnd
[in] Handle to the window.
X
[in] Specifies the new position of the left side of the window.
Y
[in] Specifies the new position of the top of the window.
nWidth
[in] Specifies the new width of the window.
nHeight
[in] Specifies the new height of the window.
bRepaint
[in] Specifies whether the window is to be repainted. If this parameter is TRUE, the window receives a message. If the parameter is FALSE, no repainting of any kind occurs. This applies to the client area, the nonclient area (including the title bar and scroll bars), and any part of the parent window uncovered as a result of moving a child window.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
If the bRepaint parameter is TRUE, the system sends the WM_PAINT message to the window procedure immediately after moving the window (that is, the MoveWindow function calls the UpdateWindow function). If bRepaint is FALSE, the application must explicitly invalidate or redraw any parts of the window and parent window that need redrawing.
MoveWindow sends the WM_WINDOWPOSCHANGING , WM_WINDOWPOSCHANGED , WM_MOVE , WM_SIZE , and WM_NCCALCSIZE messages to the window.
Example
For an example, see Creating, Enumerating, and Sizing Child Windows .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Windows Overview , SetWindowPos , UpdateWindow , WM_GETMINMAXINFO , WM_PAINT
==原始网址==http://msdn.microsoft.com/en-us/library/ms633534(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 9:20:20