void HotspotImpl_FolderIcon::ProcessShellHook( WPARAM theWParam, LPARAM theLParam ) { if (theWParam == HSHELL_WINDOWCREATED) { Trace("HotspotImpl_FolderIcon::Message_Handler_ShellMsg. theWParam=0x%8x, theLParam=0x%8x.\n", theWParam, theLParam); ReEnumerate((HWND) theLParam); } }
void HotspotImpl_FolderIcon::UpdateIconClickMode() { bool aChanged = SetIconClickMode(); if ( aChanged && IsEnabled() ) { RemoveAllMonitoring(); ReEnumerate(0); } }
LRESULT HotspotImpl_FolderIcon::MsgHandler_Timer( UINT theMsg, WPARAM theWParam, LPARAM theLParam, BOOL & theHandled ) { if (theWParam == myTimerID) ReEnumerate(0); else theHandled = FALSE; return 0L; }
LRESULT HotspotImpl_TitlebarMenus::MsgHandler_Timer(UINT theMsg, WPARAM theWParam, LPARAM theLParam, BOOL & theHandled) { if (theWParam == myTimerID_Infreq) { RemoveAllMonitoring(); ReEnumerate(); // keep the timer } else if (theWParam == myTimerID_Shell) { RemoveAllMonitoring(); ReEnumerate(); KillTimer(*myRootWindow, myTimerID_Shell); } else theHandled = FALSE; return 0L; }
void HotspotImpl_TitlebarMenus::Start() { // 1. Root window interaction myRootWindow->AddIpcProcessor(GUID_Hotspot_TitlebarMenus, this); myRootWindow->AddShellHookProcessor(this); myRootWindow->AddMessageMap(this); // 2. Spied threads ReEnumerate(); // 3. Periodic re-enumeration timer SetTimer(*myRootWindow, myTimerID_Infreq, 5000, NULL); }
void HotspotImpl_FolderIcon::Start() { // 0. Application interaction Application & aApp = Application::Instance(); const ApplicationSettings * aS = aApp.Prefs(); myIpcModule->LLSetPreferences(*aS); aApp.AddPreferencesEventProcessor(this); // 1. Root window interaction myRootWindow->AddIpcProcessor(GUID_Hotspot_FolderMenus, this); myRootWindow->AddShellHookProcessor(this); myRootWindow->AddMessageMap(this); // 2. Spied threads ReEnumerate(0); // 3. Periodic re-enumeration timer ::SetTimer(*myRootWindow, myTimerID, 5000, NULL); }
Manager::Manager() //---------------- { ReEnumerate(); }