movewindow和set movewindow和set-Microsoft Learn
(.h)
In this
the and of the window. For a top-level windowmovewindow和set, the and are to the upper-left corner of the screen. For a child window, they are to the upper-left corner of the parent window's client area.
Syntax
BOOL MoveWindow(
[in] HWND hWnd,
[in] int X,
[in] int Y,
[in] int nWidth,
[in] int nHeight,
[in] BOOL bRepaint
);
[in] hWnd
Type: HWND
A handle to the window.
[in] X
Type: int
The new of the left side of the window.
[in] Y
Type: int
The new of the top of the window.
[in] nWidth
Type: int
The new width of the window.
[in]
Type: int
The new height of the window.
[in]
Type: BOOL
the window is to be . If this is TRUE, the window a . If the is FALSE, no of any kind occurs. This to the client area, the area ( the title bar and scroll bars), and any part of the parent window as a result of moving a child window.
Return value
Type: BOOL
If the , the return value is .
If the fails, the return value is zero. To get error , call .
If the is TRUE, the system sends the to the window after moving the window (that is, the calls the ). If is FALSE, the must or redraw any parts of the window and parent window that need .
sends the , ,, , and to the window.
For an ,seemovewindow和set, , and Sizing Child .
client
[ apps only]
server
Server [ apps only]
Target
Header
.h ( .h)
User32.lib
DLL
User32.dll
API set
ext-ms-win-ntuser-window-l1-1-1 ( in 8.1)
See also
Other
本文共 2 个字数,平均阅读时长 ≈ 1分钟
相关文章
- Java 对象的内存布局(HotSpot 实现)
- Java 多线程(七):线程池
- Java 多线程(五):锁(三)
- Java 多线程(四):锁(二)
- Java 多线程(三):锁(一)
- Java 多线程(二):并发编程的三大特性
- Java 多线程(一):基础
- Java SE 18 新增特性
- Java SE 17 新增特性
- Java SE 16 新增特性
- Java SE 15 新增特性
- Java SE 14 新增特性
- Java SE 10 Application Class-Data Sharing 示例
- Java SE 13 新增特性
- Java SE 12 新增特性
- Java SE 11 新增特性
- Java SE 10 新增特性
- Java SE 9 模块化示例
- Java SE 9 多版本兼容 JAR 包示例
- Java SE 9 新增特性