Scope tray icon lost when explorer crashes
Posted: Fri Feb 03, 2012 7:16 am
What about pasting these two lines of code into Scope.exe and solve the issue with the tray icon disappearing whenever explorer crashes?
AFAIK it's since Scope exists that this bug is present.
cheers,
Fede
Code: Select all
const unsigned int WM_TASKBARCREATED= RegisterWindowMessage(_T("TaskbarCreated"));
// in the main window message proc...
LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
if (WM_TASKBARCREATED == uMsg)
Shell_NotifyIcon(NIM_ADD, your_notify_icon_data); // or call your tray handler function
switch(uMsg)
{
...
cheers,
Fede