CreateWindow (user32)
Last changed: 2.35.150.218

.
Summary
The CreateWindow function creates an overlapped, pop-up, or child window. It specifies the window class, window title, window style, and (optionally) the initial position and size of the window. The function also specifies the window's parent or owner, if any, and the window's menu. To use extended window styles in addition to the styles supported by CreateWindow, use the CreateWindowEx function.

For CreateWindow, use CreateWindowEx, passing zero for the first argument.

C# Signature:

VB Signature:

User-Defined Types:

None.

Alternative Managed API:

Windows Forms (System.Windows)

Windows Presentation Foundation (System.Windows.Forms)

Notes:

None.

Tips & Tricks:

Sample Code:

Documentation