网站首页  词典首页

请输入您要查询的函数:

 

术语 setwindowrgn
释义 SetWindowRgn
语法:
int SetWindowRgn(
__in HWND hWnd,
__in HRGN hRgn,
__in BOOL bRedraw
);
SetWindowRgn功能
该SetWindowRgn函数设置窗口的窗口地区。窗口内的区域确定在制度允许的范围绘图窗口。该系统不显示任何一个窗口,是外界的窗口地区的部分
参数
hWnd [in]
一个句柄,窗口的窗口区域被设置。
hRgn [in]
一个句柄,地区。该函数设置了对这一地区的窗口的窗口地区。
如果hRgn为NULL,则函数设置窗口地区为NULL。
bRedraw [in]
指定系统是否重画窗口后,设置区域的窗口。如果bRedraw为TRUE,系统这样做,否则,它不会。
通常情况下,您设置bRedraw为TRUE,如果窗口可见。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
当此函数被调用时,系统发送WM_WINDOWPOSCHANGING和WM_WINDOWPOSCHANGING消息窗口。
在一个窗口的窗口地区的坐标是相对于左上角的窗口,而不是窗口的客户区。
经过成功调用SetWindowRgn,该系统拥有该区域处理hRgn指定的地区。该系统不会使该地区的副本。因此,您不应该利用本地区的任何进一步的处理函数调用。尤其是,不要删除这个区域处理。该系统将删除该地区的处理时,不再需要。
要获得一个窗口的窗口地区,调用GetWindowRgn功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
绘画和绘图概述
绘画和绘图功能
GetWindowRgn
WM_WINDOWPOSCHANGING
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetWindowRgn Function
The SetWindowRgn function sets the window region of a window. The window region determines the area within the window where the system permits drawing. The system does not display any portion of a window that lies outside of the window region
Syntax
int SetWindowRgn(
__in HWND hWnd,
__in HRGN hRgn,
__in BOOL bRedraw
);
Parameters
hWnd [in]
A handle to the window whose window region is to be set.
hRgn [in]
A handle to a region. The function sets the window region of the window to this region.
If hRgn is NULL, the function sets the window region to NULL.
bRedraw [in]
Specifies whether the system redraws the window after setting the window region. If bRedraw is TRUE, the system does so; otherwise, it does not.
Typically, you set bRedraw to TRUE if the window is visible.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
When this function is called, the system sends the WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGING messages to the window.
The coordinates of a window's window region are relative to the upper-left corner of the window, not the client area of the window.
After a successful call to SetWindowRgn, the system owns the region specified by the region handle hRgn. The system does not make a copy of the region. Thus, you should not make any further function calls with this region handle. In particular, do not delete this region handle. The system deletes the region handle when it no longer needed.
To obtain the window region of a window, call the GetWindowRgn function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
Painting and Drawing Overview
Painting and Drawing Functions
GetWindowRgn
WM_WINDOWPOSCHANGING
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145102(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 13:19:25