August 10th, 2003, 05:55 PM
Invisible tray icon...
K, I'm using the CSystemTray class to work with tray icons. Here's my code:
And it compiles just fine. But when I run it, I get a blank space in the system tray where an icon should be, but no icon. When I hover my mouse over it, I get the tooltip just fine. Whats wierd is that it works just fine if I use, say, IDI_ASTERISK instead of IDI_INACT.... Anyone see somthing I'm missing?
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR pszCmdLine, int iCmdShow)
HICON hIcon = ::LoadIcon(AfxGetResourceHandle(), MAKEINTRESOURCE(IDI_INACT));
dlg.m_TrayIcon.Create(NULL, WM_ICON_NOTIFY, _T("tooltip"), hIcon, 1);
Every morning, I get up and look through the Forbes list of the richest people in America. If I'm not there, I go to work.
May your Tongue stick to the Roof of your Mouth with the Force of a Thousand Caramels.
To the systems programmer, users and applications serve only to provide a test load.