Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This structure defines the initialization parameters passed to the window procedure of an application.
typedef struct tagCREATESTRUCT { LPVOID lpCreateParams ; HINSTANCE hInstance ; HMENU hMenu ; HWND hwndParent ; int cy ; int cx ; int y ; int x ; LONG style ; LPCTSTR lpszName ; LPCTSTR lpszClass ; DWORD dwExStyle ; } CREATESTRUCT;
Members
If the window being created is an MDI window, this member contains a pointer to an MDICREATESTRUCTstructure.
Windows NT:If the window is being created from a dialog template, this member is the address of a SHORTvalue that specifies the size, in bytes, of the window creation data. The value is immediately followed by the creation data. For more information, see the following Remarks section.
Remarks
You should access the data represented by the lpCreateParamsmember using a pointer that has been declared using the UNALIGNED type, because the pointer may not be DWORD aligned. This is demonstrated in the following code example:
typedef struct tagMyData { // Define creation data here. } MYDATA; typedef struct tagMyDlgData { SHORT cbExtra; MYDATA myData; } MYDLGDATA, UNALIGNED *PMYDLGDATA; PMYDLGDATA pMyDlgdata = (PMYDLGDATA) (((LPCREATESTRUCT) lParam)->lpCreateParams);
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 1.0 and later | Winuser.h |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also