Jump to content

WM CREATE: Difference between revisions

From EDM2
Created page with "This message occurs when an application requests the creation of a window. ==Syntax== <PRE> param1 PVOID ctldata; Pointer to control data.: param2 PCREATESTRUCT pCREATE; Create structure.: </PRE> ==Parameters== ;ctldata (PVOID) - Input : Pointer to control data. This points to a Control-Data data structure initialized with the data provided in the parameter of the WinCreateWindow function. This pointer is also contained in the..."
 
 
Line 12: Line 12:
;ctldata ([[PVOID]]) - Input
;ctldata ([[PVOID]]) - Input
: Pointer to control data. This points to a [[Control-Data]] data structure initialized with the data provided in the parameter of the [[WinCreateWindow]] function. This pointer is also contained in the '''pCREATE''' parameter. This parameter MUST be a pointer rather than a long. The first 2 bytes in the data referenced by this pointer should be the total size of the data referenced by the pointer (for example, see the [[ENTRYFDATA]] or the [[FRAMECDATA]] structure). PM requires this information to enable it to ensure that the referenced data is accessible to both 16-bit and 32-bit code.
: Pointer to control data. This points to a [[Control-Data]] data structure initialized with the data provided in the parameter of the [[WinCreateWindow]] function. This pointer is also contained in the '''pCREATE''' parameter. This parameter MUST be a pointer rather than a long. The first 2 bytes in the data referenced by this pointer should be the total size of the data referenced by the pointer (for example, see the [[ENTRYFDATA]] or the [[FRAMECDATA]] structure). PM requires this information to enable it to ensure that the referenced data is accessible to both 16-bit and 32-bit code.
;pCREATE ([[PCREATESTRUCT]]) - Input
;pCREATE (P[[CREATESTRUCT]]) - Input
: Create structure. This points to a [[CREATESTRUCT]] data structure. See the description of '''ctldata''' for a complete description.
: Create structure. This points to a [[CREATESTRUCT]] data structure. See the description of '''ctldata''' for a complete description.



Latest revision as of 22:40, 13 April 2025

This message occurs when an application requests the creation of a window.

Syntax

param1
    PVOID         ctldata;   /* Pointer to control data. */

param2
    PCREATESTRUCT pCREATE;   /* Create structure. */

Parameters

ctldata (PVOID) - Input
Pointer to control data. This points to a Control-Data data structure initialized with the data provided in the parameter of the WinCreateWindow function. This pointer is also contained in the pCREATE parameter. This parameter MUST be a pointer rather than a long. The first 2 bytes in the data referenced by this pointer should be the total size of the data referenced by the pointer (for example, see the ENTRYFDATA or the FRAMECDATA structure). PM requires this information to enable it to ensure that the referenced data is accessible to both 16-bit and 32-bit code.
pCREATE (PCREATESTRUCT) - Input
Create structure. This points to a CREATESTRUCT data structure. See the description of ctldata for a complete description.

Returns

rc (BOOL) - returns
Error indicator.
TRUE
Discontinue window creation
FALSE
Continue window creation.

Remarks

This message is sent to the window procedure of the window being created, thus offering it an opportunity to initialize that window.

The window procedure receives this after the window is created but before the window becomes visible.

Default Processing

The default window procedure takes no action on this message, other than to set rc to FALSE, which is equivalent to continuing the creation of the window.