Avatar of sritangutu
sritangutu
 asked on

How to display Tooltip window right aligned/left aligned.

Hi,
I am working on a project which needs to display tooltip windows. I am using the following api to
show the tooltip window.

BOOL SetWindowPos(HWND hWnd,HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags );

When we use above api, by default, window will be left aligned and displayed at (X,Y) screen co-ordinate. Is there any way to display the same window right aligned with respect to some point?
Which combination of flags is used in invoking the api? Is there any other api specifically to display the
window right aligned with respect to some point.

From few websites, i could find that we can use TTF_ABSOLUTE flag comibination.  Is this the only one combination that furnishes the purpose? If so, what is the exact signature for this flag? Are there any
other better ways to do the task.

Any help in this regard is greatly appreciated.

Thanks in advance.
Unix OSMicrosoft ApplicationsHTML

Avatar of undefined
Last Comment
scrathcyboy

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
scrathcyboy

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy