register ourselved as task manager window to make the RegisterShellHookWindow() call working [thanks to Filip :)]

svn path=/trunk/; revision=14183
This commit is contained in:
Martin Fuchs 2005-03-18 23:00:54 +00:00
parent a5b6da0234
commit 0412c84cea

View file

@ -99,10 +99,15 @@ LRESULT TaskBar::Init(LPCREATESTRUCT pcs)
_next_id = IDC_FIRST_APP; _next_id = IDC_FIRST_APP;
DynamicFct<BOOL (WINAPI*)(HWND hwnd)> RegisterShellHookWindow(TEXT("user32"), "RegisterShellHookWindow"); // register ourselved as task manager window to make the following call to RegisterShellHookWindow working
DynamicFct<BOOL (WINAPI*)(HWND hwnd)> SetTaskmanWindow(TEXT("user32"), "SetTaskmanWindow");
if (SetTaskmanWindow)
(*SetTaskmanWindow)(_hwnd);
DynamicFct<BOOL (WINAPI*)(HWND hwnd)> RegisterShellHookWindow(TEXT("user32"), "RegisterShellHookWindow");
if (RegisterShellHookWindow) { if (RegisterShellHookWindow) {
LOG(TEXT("Using shell hooks for notification of shell events.")); LOG(TEXT("Using shell hooks for notification of shell events."));
(*RegisterShellHookWindow)(_hwnd); (*RegisterShellHookWindow)(_hwnd);
} else { } else {
LOG(TEXT("Shell hooks not available.")); LOG(TEXT("Shell hooks not available."));