Shell_notifyicongetrect !!link!! Review

nid.cbSize = sizeof(NOTIFYICONDATA); nid.hwnd = hWnd; // Handle to the window that owns the icon nid.uID = 1; // Identifier of the icon

The following example demonstrates how to use the Shell_NotifyIconGetRect function to retrieve the bounding rectangle of a notification icon: shell_notifyicongetrect

RECT rcIcon = 0; HRESULT hr = Shell_NotifyIconGetRect(&nid, &rcIcon); nid.cbSize = sizeof(NOTIFYICONDATA)

return 0;