BeginDeferWindowPos

Version 3.0

Syntax

HANDLE BeginDeferWindowPos(nNumWindows)

This function allocates memory to contain a multiple window-position data structure and returns a handle to the structure. The DeferWindowPos function fills this data structure with information about the target position for a window that is about to be moved. The EndDeferWindowPos function accepts this data structure and instantaneously repositions the windows using the information stored in the structure.

Parameter Type/Description  

nNumWindows int Specifies the initial number of windows for which position information is to be stored in the data structure. The Defer-WindowPos function increases the size of the structure if needed.  

Return Value

The return value identifies the multiple window-position data structure. The return value is NULL if system resources are not available to allocate the structure.