网站首页  词典首页

请输入您要查询的函数:

 

术语 begindeferwindowpos
释义 BeginDeferWindowPos
语法:
HDWP BeginDeferWindowPos( int nNumWindows
);
BeginDeferWindowPos函数
该BeginDeferWindowPos函数分配内存的多重窗口位置结构和返回的句柄结构。
参数
nNumWindows
[in]指定窗口,其中存储的位置信息的初始数量。该DeferWindowPos函数增加了结构尺寸,如有必要。
返回值
如果函数成功,返回值标识多重窗口位置结构。如果没有足够的系统资源可供分配结构,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
在多重窗口位置结构是一个内部结构,应用程序不能直接访问它。
DeferWindowPos填补了多重窗口位置与有关的一个或多个窗口的目标位置信息的结构有关动议的。该EndDeferWindowPos函数接受处理的信息通过使用这一结构和重新定位的窗户结构中。
如果在多窗口位置结构的窗户任何有SWP_HIDEWINDOW或SWP_SHOWWINDOW标志设置,在窗户都不是重新定位。
如果系统必须增加的多重窗口位置超出了nNumWindows参数指定的初始大小结构,但不能分配足够的内存这样做的大小,系统出现故障,整个窗口定位序列(BeginDeferWindowPos,DeferWindowPos,和EndDeferWindowPos)。通过指定的最大大小需要,应用程序可以检测和处理故障的早期阶段。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
视窗概述,DeferWindowPos,EndDeferWindowPos,SetWindowPos
==英文原文==BeginDeferWindowPos Function
The BeginDeferWindowPos function allocates memory for a multiple-window- position structure and returns the handle to the structure.
Syntax
HDWP BeginDeferWindowPos( int nNumWindows
);
Parameters
nNumWindows
[in] Specifies the initial number of windows for which to store position information. The DeferWindowPos function increases the size of the structure, if necessary.
Return Value
If the function succeeds, the return value identifies the multiple-window-position structure. If insufficient system resources are available to allocate the structure, the return value is NULL. To get extended error information, call GetLastError .
Remarks
The multiple-window-position structure is an internal structure; an application cannot access it directly.
DeferWindowPos fills the multiple-window-position structure with information about the target position for one or more windows about to be moved. The EndDeferWindowPos function accepts the handle to this structure and repositions the windows by using the information stored in the structure.
If any of the windows in the multiple-window- position structure have the SWP_HIDEWINDOW or SWP_SHOWWINDOW flag set, none of the windows are repositioned.
If the system must increase the size of the multiple-window- position structure beyond the initial size specified by the nNumWindows parameter but cannot allocate enough memory to do so, the system fails the entire window positioning sequence (BeginDeferWindowPos, DeferWindowPos, and EndDeferWindowPos). By specifying the maximum size needed, an application can detect and process failure early in the process.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Windows Overview , DeferWindowPos , EndDeferWindowPos , SetWindowPos
==原始网址==http://msdn.microsoft.com/en-us/library/ms632672(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:22:51