mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 14:51:00 +00:00
[explorer]
- Fix some visual problems in the toolbar svn path=/trunk/; revision=50798
This commit is contained in:
parent
20ec135208
commit
a33a1f21db
3 changed files with 8 additions and 4 deletions
|
@ -873,7 +873,7 @@ HWND MDIMainFrame::Create()
|
||||||
HMENU hMenuFrame = LoadMenu(g_Globals._hInstance, MAKEINTRESOURCE(IDM_MDIFRAME));
|
HMENU hMenuFrame = LoadMenu(g_Globals._hInstance, MAKEINTRESOURCE(IDM_MDIFRAME));
|
||||||
|
|
||||||
return Window::Create(WINDOW_CREATOR(MDIMainFrame), 0,
|
return Window::Create(WINDOW_CREATOR(MDIMainFrame), 0,
|
||||||
(LPCTSTR)(int)g_Globals._hframeClass, ResString(IDS_TITLE), WS_OVERLAPPEDWINDOW,
|
(LPCTSTR)(int)g_Globals._hframeClass, ResString(IDS_TITLE), WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,
|
||||||
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
0/*hwndDesktop*/, hMenuFrame);
|
0/*hwndDesktop*/, hMenuFrame);
|
||||||
}
|
}
|
||||||
|
|
|
@ -654,8 +654,12 @@ MDIShellBrowserChild::MDIShellBrowserChild(HWND hwnd, const ShellChildWndInfo& i
|
||||||
|
|
||||||
MDIShellBrowserChild* MDIShellBrowserChild::create(const ShellChildWndInfo& info)
|
MDIShellBrowserChild* MDIShellBrowserChild::create(const ShellChildWndInfo& info)
|
||||||
{
|
{
|
||||||
ChildWindow* child = ChildWindow::create(info, info._pos.rcNormalPosition,
|
ChildWindow* child = ChildWindow::create(info,
|
||||||
WINDOW_CREATOR_INFO(MDIShellBrowserChild,ShellChildWndInfo), CLASSNAME_CHILDWND, NULL, info._pos.showCmd==SW_SHOWMAXIMIZED? WS_MAXIMIZE: 0);
|
info._pos.rcNormalPosition,
|
||||||
|
WINDOW_CREATOR_INFO(MDIShellBrowserChild,ShellChildWndInfo),
|
||||||
|
CLASSNAME_CHILDWND,
|
||||||
|
NULL,
|
||||||
|
WS_CLIPCHILDREN | (info._pos.showCmd==SW_SHOWMAXIMIZED? WS_MAXIMIZE: 0));
|
||||||
|
|
||||||
return static_cast<MDIShellBrowserChild*>(child);
|
return static_cast<MDIShellBrowserChild*>(child);
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ WindowClass::WindowClass(LPCTSTR classname, UINT style_, WNDPROC wndproc)
|
||||||
style = style_;
|
style = style_;
|
||||||
hInstance = g_Globals._hInstance;
|
hInstance = g_Globals._hInstance;
|
||||||
hCursor = LoadCursor(0, IDC_ARROW);
|
hCursor = LoadCursor(0, IDC_ARROW);
|
||||||
|
this->hbrBackground = (HBRUSH)(COLOR_BTNFACE+1);
|
||||||
lpszClassName = classname;
|
lpszClassName = classname;
|
||||||
lpfnWndProc = wndproc;
|
lpfnWndProc = wndproc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue