CreateWindow CreateWindow

CreateWindow - Definition

The CreateWindow function is part of the Microsoft Windows API. It 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. HWND CreateWindow(

   LPCTSTR lpClassName,	// pointer to registered class name
   LPCTSTR lpWindowName,	// pointer to window name
   DWORD dwStyle,	// window style
   int x,	// horizontal position of window
   int y,	// vertical position of window
   int nWidth,	// window width
   int nHeight,	// window height
   HWND hWndParent,	// handle to parent or owner window
   HMENU hMenu,	// handle to menu or child-window identifier
   HANDLE hInstance,	// handle to application instance
   LPVOID lpParam 	// pointer to window-creation data

); See CreateWindowEx for extra functionality.

Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.