Shell_notifyicongetrect
This example creates a temporary invisible window to own the icon, adds an icon to the tray, retrieves its rect using the target API, and draws a highlight rectangle for 3 seconds.
#include <shellapi.h>
Before this API, developers tried dangerous workarounds: shell_notifyicongetrect
typedef struct _RECT LONG left; LONG top; LONG right; LONG bottom; RECT; This example creates a temporary invisible window to