Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than user32, prefix the name with the module name and a period.
CreateWindow (user32)
.
C# Signature:
[DllImport("user32.dll", SetLastError=true)]
static extern IntPtr CreateWindow(
string lpClassName,
string lpWindowName,
uint dwStyle,
int x,
int y,
int nWidth,
int nHeight,
IntPtr hWndParent,
IntPtr hMenu,
IntPtr hInstance,
IntPtr lpParam);
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:
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.
11/10/2022 5:10:32 AM - 2.35.150.218
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.
11/10/2022 5:10:32 AM - 2.35.150.218
Like CreateWindow, but creates the window with an extended window style.
12/23/2022 5:31:17 AM - 147.78.47.33
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).