Shell_notifyicongetrect __top__ -
BOOL Shell_NotifyIconGetRect( NOTIFYICONDATA *pnid, RECT *prc );
The following example demonstrates how to use the Shell_NotifyIconGetRect function to retrieve the bounding rectangle of a notification icon: shell_notifyicongetrect
#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 BOOL Shell_NotifyIconGetRect( NOTIFYICONDATA *pnid
Before this API, developers tried dangerous workarounds: RECT *prc )