网站首页  词典首页

请输入您要查询的函数:

 

术语 invalidatergn
释义 InvalidateRgn
语法:
BOOL InvalidateRgn(
__in HWND hWnd,
__in HRGN hRgn,
__in BOOL bErase
);
InvalidateRgn功能
该InvalidateRgn功能无效于指定地区加入到一个窗口当前的更新区域的客户区。该无效地区,以及在该地区的所有更新的其他领域,是画标记在下次WM_PAINT消息出现。
参数
hWnd [in]
一个窗口句柄与更新区域要被修改。
hRgn [in]
阿处理该地区,以添加到更新区域。假设该地区有客户坐标。如果该参数为NULL,则整个客户区域被添加到更新区域。
bErase [in]
指定是否在更新区域的背景时,应删除更新区域处理。如果此参数为TRUE,被删除的背景时,BeginPaint函数被调用。如果该参数为FALSE,背景保持不变。
返回值
返回值始终为零。
备注
无效领域中的更新区域累积到下次WM_PAINT消息处理,直到该地区或通过使用ValidateRect或ValidateRgn功能验证。
该系统发送WM_PAINT消息到一个窗口时,它的更新区域不是空的,而且是在该窗口的应用程序队列中没有其他消息。
指定的区域必须是由使用该地区的职能之一。
如果bErase参数是任何更新的部分地区为TRUE,在整个区域的背景被删除,而不仅仅是在指定的一部分。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
绘画和绘图概述
绘画和绘图功能
调用BeginPaint
InvalidateRect
ValidateRect
ValidateRgn
WM_PAINT消息
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==InvalidateRgn Function
The InvalidateRgn function invalidates the client area within the specified region by adding it to the current update region of a window. The invalidated region, along with all other areas in the update region, is marked for painting when the next WM_PAINT message occurs.
Syntax
BOOL InvalidateRgn(
__in HWND hWnd,
__in HRGN hRgn,
__in BOOL bErase
);
Parameters
hWnd [in]
A handle to the window with an update region that is to be modified.
hRgn [in]
A handle to the region to be added to the update region. The region is assumed to have client coordinates. If this parameter is NULL, the entire client area is added to the update region.
bErase [in]
Specifies whether the background within the update region should be erased when the update region is processed. If this parameter is TRUE, the background is erased when the BeginPaint function is called. If the parameter is FALSE, the background remains unchanged.
Return Value
The return value is always nonzero.
Remarks
Invalidated areas accumulate in the update region until the next WM_PAINT message is processed or until the region is validated by using the ValidateRect or ValidateRgn function.
The system sends a WM_PAINT message to a window whenever its update region is not empty and there are no other messages in the application queue for that window.
The specified region must have been created by using one of the region functions.
If the bErase parameter is TRUE for any part of the update region, the background in the entire region is erased, not just in the specified part.
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
ValidateRect
ValidateRgn
WM_PAINT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145003(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 更新时间:2025/1/23 7:42:51