[explorer]

- Fix some visual problems in the toolbar

svn path=/trunk/; revision=50798
This commit is contained in:
Giannis Adamopoulos 2011-02-18 14:28:58 +00:00
parent 20ec135208
commit a33a1f21db
3 changed files with 8 additions and 4 deletions

View file

@ -873,7 +873,7 @@ HWND MDIMainFrame::Create()
HMENU hMenuFrame = LoadMenu(g_Globals._hInstance, MAKEINTRESOURCE(IDM_MDIFRAME));
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,
0/*hwndDesktop*/, hMenuFrame);
}

View file

@ -654,8 +654,12 @@ MDIShellBrowserChild::MDIShellBrowserChild(HWND hwnd, const ShellChildWndInfo& i
MDIShellBrowserChild* MDIShellBrowserChild::create(const ShellChildWndInfo& info)
{
ChildWindow* child = ChildWindow::create(info, info._pos.rcNormalPosition,
WINDOW_CREATOR_INFO(MDIShellBrowserChild,ShellChildWndInfo), CLASSNAME_CHILDWND, NULL, info._pos.showCmd==SW_SHOWMAXIMIZED? WS_MAXIMIZE: 0);
ChildWindow* child = ChildWindow::create(info,
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);
}

View file

@ -39,7 +39,7 @@ WindowClass::WindowClass(LPCTSTR classname, UINT style_, WNDPROC wndproc)
style = style_;
hInstance = g_Globals._hInstance;
hCursor = LoadCursor(0, IDC_ARROW);
this->hbrBackground = (HBRUSH)(COLOR_BTNFACE+1);
lpszClassName = classname;
lpfnWndProc = wndproc;