// 5. Cleanup Shell_NotifyIcon(NIM_DELETE, &nid); DestroyIcon(nid.hIcon); DestroyWindow(hWnd); }
The RECT structure is defined as follows: shell_notifyicongetrect
Beyond the Balloon: Using Shell_NotifyIconGetRect to Find Your Notify Icon’s Exact Screen Location // 5. Cleanup Shell_NotifyIcon(NIM_DELETE
: Move windows dynamically if the user moves the taskbar or changes screen resolution. Technical Signature Shell_NotifyIconGetRect function (shellapi.h) - Win32 apps shell_notifyicongetrect