CreateWindowExWhat links here?
HWND CreateWindowEx(
  DWORD     dwExStyle,      // extended window style
  LPCTSTR   lpClassName,    // registered class name
  LPCTSTR   lpWindowName,   // 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,          // menu handle or child identifier
  HINSTANCE hInstance,      // handle to application instance
  LPVOID    lpParam         // window-creation data
);


Parameters

Return Values
If the function succeeds, the return value is a handle to the new window.

If the function fails, the return value is NULL. To get extended error information, call GetLastError.

This function typically fails for one of the following reasons:



Remarks
The CreateWindowEx function sends the following messages to the window being created:

For information on controlling whether the Taskbar displays a button for the created window, see Visibility of Taskbar Buttons.

Windows 95: The system can support a maximum of 16,364 window handles.

Windows 2000 or later: The WS_EX_NOACTIVATE value for dwExStyle prevents foreground activation by the system. To prevent queue activation when the user clicks on the window, you must process the WM_MOUSEACTIVATE message appropriately. To bring the window to the foreground or to activate it programmatically, use SetForegroundWindow or SetActiveWindow. Returning FALSE to WM_NCACTIVATE prevents the window from losing queue activation. However, the return value is ignored at activation time.

Whistler: With WS_EX_COMPOSITED set, all descendants of a window get bottom-to-top painting order using double-buffering. Bottom-to-top painting order allows a descendent window to have translucency (alpha) and transparency (color-key) effects, but only if the descendent window also has the WS_EX_TRANSPARENT bit set. Double-buffering allows the window and its descendents to be painted without flicker.

For an example, see Creating a Main Window.

Requirements
programming:windows:CreateWindowEx
filename:programming:windows:CreateWindowEx
filename:programming%3Awindows%3ACreateWindowEx
last edit:March 26 2010 20:16:04 (5154 days ago)
ct = 1714967272.000000 = May 05 2024 23:47:52
ft = 1269648964.000000 = March 26 2010 20:16:04
dt = 445318308.000000