Shell_notifyicongetrect
The Shell_NotifyIconGetRect function is used to retrieve the position and size of a notification icon in the notification area. This information can be useful for positioning other windows or controls in relation to the icon.
#include <shellapi.h>
// rcIcon is in screen coordinates. // Example: Show a popup at the bottom-left of the icon. POINT ptPopup = rcIcon.left, rcIcon.bottom ; // ... position your window shell_notifyicongetrect
Enter Shell_NotifyIconGetRect – a dedicated function introduced with Windows 7 (and refined since) to solve exactly this problem. The Shell_NotifyIconGetRect function is used to retrieve the