Shell_policyicongetrect get the rectangle size of the tray icon Area
Link: http://msdn.microsoft.com/en-us/library/dd378426 (V = vs.85). aspx
Shell_policyicongetrect functionthis topic has not yet been rated-Rate
This topic
Gets the screen coordinates of the bounding rectangle of a notification icon.
Syntaxc ++
HRESULT Shell_NotifyIconGetRect( _In_ const NOTIFYICONIDENTIFIER *identifier, _Out_ RECT *iconLocation);
Parameters
-
Identifier[In]
-
Type:ConstNotifyiconidentifier*
Pointer toNotifyiconidentifierStructure that identifies the icon.
-
Iconlocation[Out]
-
Type:Rect*
Pointer toRectStructure that, when this function returns successfully, es the coordinates
Of the icon.
Return Value
Type:Hresult
If this function succeeds, it returnsS_ OK. Otherwise, it returnsHresultError code.
Requirements
Minimum supported Client |
Windows 7 [desktop apps only] |
Minimum supported Server |
Windows Server 2008 R2 [desktop apps only] |
Header |
-
Shellapi. h
|
Library |
-
Shell32.lib
|
DLL |
-
Shell32.dll (Version 6.1 or later)
|
See also
-
Communications and the notification area