HINSTANCE hInstance = AfxGetResourceHandle(); CString strToolTipText = _T("This is a Tray Icon - Right click on me!"); // Create the tray icon if (!TrayIcon.Create(hInstance, theApp.GetMainWnd()->GetSafeHwnd(), // Parent window WM_ICON_NOTIFY, // Icon notify message to use strToolTipText, // tooltip ::LoadIcon(hInstance, (LPCTSTR)IDR_MAINFRAME), NULL)) return FALSE;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)