- initialize system window classes when creating window stations
[reactos.git] / reactos / lib / user32 / windows / window.c
index 9e312bf..a78d90b 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: window.c,v 1.121 2004/12/16 03:57:35 rcampbell Exp $
+/* $Id: window.c,v 1.122 2004/12/21 21:38:26 weiden Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS user32.dll
@@ -20,8 +20,6 @@
 #define NDEBUG
 #include <debug.h>
 
-BOOL ControlsInitialized = FALSE;
-
 LRESULT DefWndNCPaint(HWND hWnd, HRGN hRgn);
 
 /* FUNCTIONS *****************************************************************/
@@ -194,12 +192,6 @@ CreateWindowExA(DWORD dwExStyle,
        }
     }
 
-  /* Register built-in controls if not already done */
-  if (! ControlsInitialized)
-    {
-      ControlsInitialized = ControlsInit(ClassName.Buffer);
-    }
-
   if (dwExStyle & WS_EX_MDICHILD)
   {
      if (!IS_ATOM(lpClassName))
@@ -279,12 +271,6 @@ CreateWindowExW(DWORD dwExStyle,
   WNDCLASSEXW wce;
   HANDLE Handle;
 
-  /* Register built-in controls if not already done */
-  if (! ControlsInitialized)
-    {
-      ControlsInitialized = ControlsInit(lpClassName);
-    }
-
   if (dwExStyle & WS_EX_MDICHILD)
      return CreateMDIWindowW(lpClassName, lpWindowName, dwStyle, x, y,
         nWidth, nHeight, hWndParent, hInstance, (LPARAM)lpParam);