Scope tray icon lost when explorer crashes

An area for people to discuss Scope related problems, issues, etc.

Moderators: valis, garyb

Post Reply
User avatar
Fede
Posts: 300
Joined: Sat May 05, 2001 4:00 pm
Location: Genoa, Italy

Scope tray icon lost when explorer crashes

Post by Fede »

What about pasting these two lines of code into Scope.exe and solve the issue with the tray icon disappearing whenever explorer crashes?

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)
    {
    ... 
AFAIK it's since Scope exists that this bug is present.

cheers,
Fede
Post Reply