msgs12.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WM_CREATE (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMESSAGEMGR
 
WM_CREATE
pCtlData = (PVOID) PVOIDFROMMP(mp1);       /* pointer to class data */
pcrst = (PCREATESTRUCT) PVOIDFROMMP(mp2);  /* pointer to structure  */
 
The WM_CREATE message is sent when an application requests that a window be
created. The window procedure for the new window receives this message after
the window is created but before the window becomes visible.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
pCtlData   Low and high word of mp1. Points to the buffer that has
           class-specific information. This data is passed to the
           WinCreateWindow function as a parameter.
 
pcrst      Low and high word of mp2. Points to a CREATESTRUCT structure.
 
Return Value
 
An application should return FALSE if the system should continue creating
the window or TRUE if it should not.
 
See Also
 
WinCreateWindow, WM_INITDLG, WM_SIZE, CREATESTRUCT