- w += (GetSystemMetrics( SM_CXSIZEFRAME ) )*2;
- h += (GetSystemMetrics( SM_CYSIZEFRAME ) )*2 + GetSystemMetrics( SM_CYCAPTION );
- }
-
- /*
- * Check if the user wants us to use the default position/size
- */
- if( fgState.Position.Use == FALSE ) { x = CW_USEDEFAULT; y = CW_USEDEFAULT; }
- if( fgState.Size .Use == FALSE ) { w = CW_USEDEFAULT; h = CW_USEDEFAULT; }
-
- /*
- * There's a small difference between creating the top, child and game mode windows
- */
- flags = WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE;
-
- /*
- * If we're a menu, set our flags to include WS_POPUP to remove decorations
- */
- if ( window->IsMenu )
- flags |= WS_POPUP ;
- else if( window->Parent == NULL )
- flags |= WS_OVERLAPPEDWINDOW;
- else
- flags |= WS_CHILD;