Shell_policyicongetrect get the rectangle size of the tray icon Area

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.