: Move windows dynamically if the user moves the taskbar or changes screen resolution. Technical Signature Shell_NotifyIconGetRect function (shellapi.h) - Win32 apps
Shell_NotifyIconGetRect is . Windows knows exactly where it drew your icon; this API simply returns that truth. shell_notifyicongetrect
The following example demonstrates how to use the Shell_NotifyIconGetRect function to retrieve the bounding rectangle of a notification icon: : Move windows dynamically if the user moves