网站首页  词典首页

请输入您要查询的函数:

 

术语 validaterect
释义 ValidateRect
语法:
BOOL ValidateRect(
__in HWND hWnd,
__in const RECT *lpRect
);
ValidateRect功能
函数验证的ValidateRect矩形内通过消除由指定的窗口更新区域矩形的客户区。
参数
hWnd [in]
句柄窗口的更新区域进行修改。如果该参数为NULL,系统无效,并重绘所有窗口并发送函数返回前的WM_ERASEBKGND和WM_NCPAINT消息到窗口过程。
lpRect [in]
指针RECT结构,它包含客户端坐标必须从更新区域移走的矩形。如果该参数为NULL,整个客户区被删除。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
在BeginPaint函数自动验证,整个客户区。无论是ValidateRect也不ValidateRgn职能应叫如果一个地区的部分更新之前,必须在下一个WM_PAINT消息验证生成的。
该系统将继续产生WM_PAINT消息,直到目前的更新区域验证。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
绘画和绘图概述
绘画和绘图功能
调用BeginPaint
InvalidateRect
InvalidateRgn
RECT
ValidateRgn
WM_PAINT消息
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==ValidateRect Function
The ValidateRect function validates the client area within a rectangle by removing the rectangle from the update region of the specified window.
Syntax
BOOL ValidateRect(
__in HWND hWnd,
__in const RECT *lpRect
);
Parameters
hWnd [in]
Handle to the window whose update region is to be modified. If this parameter is NULL, the system invalidates and redraws all windows and sends the WM_ERASEBKGND and WM_NCPAINT messages to the window procedure before the function returns.
lpRect [in]
Pointer to a RECT structure that contains the client coordinates of the rectangle to be removed from the update region. If this parameter is NULL, the entire client area is removed.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The BeginPaint function automatically validates the entire client area. Neither the ValidateRect nor ValidateRgn function should be called if a portion of the update region must be validated before the next WM_PAINT message is generated.
The system continues to generate WM_PAINT messages until the current update region is validated.
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
BeginPaint
InvalidateRect
InvalidateRgn
RECT
ValidateRgn
WM_PAINT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145194(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 11:27:19