Skip to content

Latest commit

 

History

History
103 lines (85 loc) · 2.8 KB

File metadata and controls

103 lines (85 loc) · 2.8 KB
title CREATESTRUCT Structure | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
CREATESTRUCT
dev_langs
C++
helpviewer_keywords
CREATESTRUCT structure
ms.assetid 028c7b5e-4fdc-48da-a550-d3e4f9e6cc85
caps.latest.revision 14
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

CREATESTRUCT Structure

The CREATESTRUCT structure defines the initialization parameters passed to the window procedure of an application.

Syntax

typedef struct tagCREATESTRUCT {  
    LPVOID lpCreateParams;  
    HANDLE hInstance;  
    HMENU hMenu;  
    HWND hwndParent;  
    int cy;  
    int cx;  
    int y;  
    int x;  
    LONG style;  
    LPCSTR lpszName;  
    LPCSTR lpszClass;  
    DWORD dwExStyle;  
} CREATESTRUCT;  

Parameters

lpCreateParams
Points to data to be used to create the window.

hInstance
Identifies the module-instance handle of the module that owns the new window.

hMenu
Identifies the menu to be used by the new window. If a child window, contains the integer ID.

hwndParent
Identifies the window that owns the new window. This member is NULL if the new window is a top-level window.

cy
Specifies the height of the new window.

cx
Specifies the width of the new window.

y
Specifies the y-coordinate of the upper left corner of the new window. Coordinates are relative to the parent window if the new window is a child window; otherwise coordinates are relative to the screen origin.

x
Specifies the x-coordinate of the upper left corner of the new window. Coordinates are relative to the parent window if the new window is a child window; otherwise coordinates are relative to the screen origin.

style
Specifies the new window's style.

lpszName
Points to a null-terminated string that specifies the new window's name.

lpszClass
Points to a null-terminated string that specifies the new window's Windows class name (a WNDCLASS structure; for more information, see the Windows SDK).

dwExStyle
Specifies the extended style for the new window.

Requirements

Header: winuser.h

See Also

Structures, Styles, Callbacks, and Message Maps
CWnd::OnCreate