网站首页  词典首页

请输入您要查询的函数:

 

术语 lockwindowupdate
释义 LockWindowUpdate
语法:
BOOL LockWindowUpdate(
__in HWND hWndLock
);
LockWindowUpdate函数
该LockWindowUpdate功能禁用或可在指定的窗口中。只有一个窗口可以锁定一次。
参数
hWndLock [in]
在其中绘图窗口将被禁用。如果该参数为NULL,在锁定窗口绘图启用。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零,表明发生了错误或另一个窗口已锁上。
备注
该LockWindowUpdate功能的目的是允许拖/放的反馈被整合到一个无干扰的窗口本身的窗口绘制。这样做的目的是,当窗口被锁定反馈和解锁绘制完成时的反馈。 LockWindowUpdate不是用于一般用途的窗口抑制重绘。使用WM_SETREDRAW消息将禁用某个特定的窗口重绘。
如果一个具有锁定窗口(或任何锁定子窗口)应用程序调用GetDC,GetDCEx,或BeginPaint函数,被调用的函数返回一个有明显的区域是空的设备上下文。这会发生,直到应用程序通过调用LockWindowUpdate解锁窗口,指定为hWndLock为NULL值。
如果一个应用程序试图绘制锁定窗口内,系统记录的边界矩形的尝试的操作的程度。当窗口被解锁,系统内无效矩形的边界地区,最终迫使WM_PAINT消息被发送到先前锁定的窗口和它的子窗口。如果没有发生,而绘图窗口更新了锁,没有一个领域是失效。
LockWindowUpdate不会使指定的窗口无形的,不清除WS_VISIBLE样式位。
锁定的窗口不能移动。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
绘画和绘图概述
绘画和绘图功能
调用BeginPaint
GetDC
GetDCEx
WM_PAINT消息
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==LockWindowUpdate Function
The LockWindowUpdate function disables or enables drawing in the specified window. Only one window can be locked at a time.
Syntax
BOOL LockWindowUpdate(
__in HWND hWndLock
);
Parameters
hWndLock [in]
The window in which drawing will be disabled. If this parameter is NULL, drawing in the locked window is enabled.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero, indicating that an error occurred or another window was already locked.
Remarks
The purpose of the LockWindowUpdate function is to permit drag/drop feedback to be drawn over a window without interference from the window itself. The intent is that the window is locked when feedback is drawn and unlocked when feedback is complete. LockWindowUpdate is not intended for general-purpose suppression of window redraw. Use the WM_SETREDRAW message to disable redrawing of a particular window.
If an application with a locked window (or any locked child windows) calls the GetDC , GetDCEx , or BeginPaint function, the called function returns a device context with a visible region that is empty. This will occur until the application unlocks the window by calling LockWindowUpdate, specifying a value of NULL for hWndLock.
If an application attempts to draw within a locked window, the system records the extent of the attempted operation in a bounding rectangle. When the window is unlocked, the system invalidates the area within this bounding rectangle, forcing an eventual WM_PAINT message to be sent to the previously locked window and its child windows. If no drawing has occurred while the window updates were locked, no area is invalidated.
LockWindowUpdate does not make the specified window invisible and does not clear the WS_VISIBLE style bit.
A locked window cannot be moved.
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
GetDC
GetDCEx
WM_PAINT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145034(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:24:13