Changeset 6d3bbc1 in nscp for modules/SysTray
- Timestamp:
- 02/26/08 23:03:01 (5 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- 8c7d67f
- Parents:
- 99b84bf
- Location:
- modules/SysTray
- Files:
-
- 2 edited
-
TrayIcon.cpp (modified) (4 diffs)
-
TrayIcon.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
modules/SysTray/TrayIcon.cpp
rde8ef76 r6d3bbc1 26 26 #include <ShellAPI.h> 27 27 #include "SysTray.h" 28 #include <error.hpp> 28 29 29 30 30 31 extern SysTray gSysTray; 31 32 33 //BOOL ChangeWindowMessageFilter(UINT message,DWORD dwFlag); 32 34 33 35 unsigned IconWidget_::threadProc(LPVOID lpParameter) … … 40 42 void IconWidget_::createDialog(void) { 41 43 hDlgWnd = ::CreateDialog(NSCModuleWrapper::getModule(),MAKEINTRESOURCE(IDD_NSTRAYDLG),NULL,TrayIcon::DialogProc); 44 45 UINT UDM_TASKBARCREATED = RegisterWindowMessage(_T("TaskbarCreated")); 46 if (UDM_TASKBARCREATED == 0) { 47 NSC_LOG_ERROR_STD(_T("Failed to register 'TaskbarCreated': ") + error::lookup::last_error()); 48 } 42 49 43 50 MSG Msg; … … 47 54 if (Msg.message == WM_MY_CLOSE) { 48 55 ::DestroyWindow(hDlgWnd); 56 // } else if (Msg.message == WM_QUERYENDSESSION) { 57 // NSC_LOG_ERROR_STD(_T("Got WM_QUERYENDSESSION thingy...")); 58 } else if (Msg.message == UDM_TASKBARCREATED) { 59 NSC_LOG_MESSAGE_STD(_T("Recreating systray icon...")); 60 TrayIcon::addIcon(Msg.hwnd); 49 61 } else if (bRet == -1) { 50 62 // handle the error and possibly exit … … 186 198 } 187 199 200 201 188 202 void insert_logrecord(HWND hwndLV, const SysTray::log_entry &entry) { 189 203 LVITEM item; -
modules/SysTray/TrayIcon.h
rb5ef837 r6d3bbc1 48 48 INT_PTR CALLBACK InjectDialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam); 49 49 INT_PTR CALLBACK LogDialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam); 50 void setupUI(); 50 51 51 52 void removeIcon(HWND hWnd);
Note: See TracChangeset
for help on using the changeset viewer.








