mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Allocated space for the menu
svn path=/trunk/; revision=4391
This commit is contained in:
parent
948bca0d7e
commit
87a1ef504f
1 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: window.c,v 1.36 2003/03/22 03:05:26 rcampbell Exp $
|
||||
/* $Id: window.c,v 1.37 2003/03/22 04:53:01 rcampbell Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -561,7 +561,7 @@ NtUserCreateWindowEx(DWORD dwExStyle,
|
|||
WindowObject->ClientRect = WindowObject->WindowRect;
|
||||
|
||||
/* FIXME: Initialize the window menu. */
|
||||
|
||||
|
||||
/* Initialize the window's scrollbars */
|
||||
if (dwStyle & WS_VSCROLL)
|
||||
SCROLL_CreateScrollBar(WindowObject, SB_VERT);
|
||||
|
@ -621,6 +621,7 @@ NtUserCreateWindowEx(DWORD dwExStyle,
|
|||
WindowObject->ClientRect.left,
|
||||
WindowObject->ClientRect.bottom -
|
||||
WindowObject->ClientRect.top);
|
||||
|
||||
DPRINT("NtUserCreateWindow(): About to send WM_SIZE\n");
|
||||
W32kCallWindowProc(NULL, WindowObject->Self, WM_SIZE, SIZE_RESTORED,
|
||||
lParam);
|
||||
|
@ -866,8 +867,8 @@ NtUserMoveWindow(
|
|||
Window->ClientRect.right -= NtUserGetSystemMetrics(SM_CXSIZEFRAME);
|
||||
}
|
||||
if (uStyle & WS_CAPTION)
|
||||
Window->ClientRect.top += NtUserGetSystemMetrics(SM_CYCAPTION);
|
||||
if (Window->Menu)
|
||||
Window->ClientRect.top += NtUserGetSystemMetrics(SM_CYCAPTION) + 1;
|
||||
if ( Window->Class->Class.lpszMenuName)
|
||||
{
|
||||
Window->ClientRect.top += NtUserGetSystemMetrics(SM_CYMENU);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue