programming:windows:CREATESTRUCTWhat links here?
The CREATESTRUCT structure defines the initialization parameters passed to the window procedure of an application. These members are identical to the parameters of the CreateWindowEx function.

Syntax
    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; 


Memebers:

RemarksWindows NT/2000 or later: You should access the data represented by the lpCreateParams member 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
programming:windows:CREATESTRUCT
filename:programming:windows:CREATESTRUCT
filename:programming%3Awindows%3ACREATESTRUCT
last edit:March 26 2010 18:02:44 (5154 days ago)
ct = 1714947425.000000 = May 05 2024 18:17:05
ft = 1269640964.000000 = March 26 2010 18:02:44
dt = 445306461.000000