troubleshooting Question

How to display Tooltip window right aligned/left aligned.

Avatar of sritangutu
sritangutu asked on
Unix OSMicrosoft ApplicationsHTML
1 Comment1 Solution357 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
scrathcyboy

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros