mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Wine workaround for displaying the desktop bar
svn path=/trunk/; revision=5952
This commit is contained in:
parent
cbd7a663c8
commit
7c9e70178a
2 changed files with 10 additions and 5 deletions
|
@ -123,9 +123,14 @@ HWND DesktopWindow::Create()
|
|||
int width = GetSystemMetrics(SM_CXSCREEN);
|
||||
int height = GetSystemMetrics(SM_CYSCREEN);
|
||||
|
||||
return Window::Create(WINDOW_CREATOR(DesktopWindow),
|
||||
WS_EX_TOOLWINDOW, wcDesktop, _T("Program Manager"), WS_POPUP|WS_VISIBLE|WS_CLIPCHILDREN,
|
||||
HWND hwndDesktop = Window::Create(WINDOW_CREATOR(DesktopWindow),
|
||||
WS_EX_TOOLWINDOW, wcDesktop, _T("Program Manager"), WS_POPUP|WS_CLIPCHILDREN|WS_VISIBLE,
|
||||
0, 0, width, height, 0);
|
||||
|
||||
// work around to display desktop bar in Wine
|
||||
ShowWindow(GET_WINDOW(DesktopWindow, hwndDesktop)->_desktopBar, SW_SHOW);
|
||||
|
||||
return hwndDesktop;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -140,11 +140,11 @@ int explorer_main(HINSTANCE hInstance, HWND hwndDesktop, int cmdshow)
|
|||
g_Globals._desktop_mode = true;
|
||||
|
||||
if (cmdshow != SW_HIDE) {
|
||||
#ifndef _ROS_ // don't maximize if being called from the ROS desktop
|
||||
/* // don't maximize if being called from the ROS desktop
|
||||
if (cmdshow == SW_SHOWNORMAL)
|
||||
/*TODO: read window placement from registry */
|
||||
//TODO: read window placement from registry
|
||||
cmdshow = SW_MAXIMIZE;
|
||||
#endif
|
||||
*/
|
||||
|
||||
explorer_show_frame(hwndDesktop, cmdshow);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue