mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 23:55:07 +00:00
remember last foreground window when switching desktops
svn path=/trunk/; revision=8440
This commit is contained in:
parent
fd2602afbb
commit
44f3f0d4a0
|
@ -38,6 +38,7 @@
|
|||
|
||||
#include "desktop.h"
|
||||
#include "../taskbar/desktopbar.h"
|
||||
#include "../taskbar/taskbar.h" // for PM_GET_LAST_ACTIVE
|
||||
#include "../shell/mainframe.h" // for MainFrame::OpenShellFolders()
|
||||
|
||||
|
||||
|
|
|
@ -228,6 +228,11 @@ LRESULT DesktopBar::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
|||
PopupMenu(IDM_DESKTOPBAR).TrackPopupMenu(_hwnd, MAKEPOINTS(lparam));
|
||||
break;
|
||||
|
||||
case PM_GET_LAST_ACTIVE:
|
||||
if (_hwndTaskBar)
|
||||
return SendMessage(_hwndTaskBar, nmsg, wparam, lparam);
|
||||
break;
|
||||
|
||||
default: def:
|
||||
return super::WndProc(nmsg, wparam, lparam);
|
||||
}
|
||||
|
|
|
@ -137,6 +137,9 @@ LRESULT TaskBar::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
|||
Refresh();
|
||||
break;}
|
||||
*/
|
||||
case PM_GET_LAST_ACTIVE:
|
||||
return (LRESULT)(HWND)_last_foreground_wnd;
|
||||
|
||||
default: def:
|
||||
return super::WndProc(nmsg, wparam, lparam);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue