Codejock Forums Homepage
Forum Home Forum Home > General > XAML Snippets
  New Posts New Posts RSS Feed - CXTPMarkupObject position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPMarkupObject position

 Post Reply Post Reply
Author
Message
BobWansink View Drop Down
Groupie
Groupie
Avatar

Joined: 24 January 2008
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobWansink Quote  Post ReplyReply Direct Link To This Post Topic: CXTPMarkupObject position
    Posted: 26 February 2009 at 9:35am
hi!

I'm trying to find the position of one of the CXTPMarkupBorder objects in my window. I thought GetFinalRect() or GetBoundRect() would find it, but alas...

How do i find the CRect of a MarkupObject?

Thanks in advance.

Bob
     Product: Xtreme ToolkitPro (MFC) version 13.0.0
     Platform: Windows (32bit) - XP - Vista
     Language: Visual C++
Back to Top
BobWansink View Drop Down
Groupie
Groupie
Avatar

Joined: 24 January 2008
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobWansink Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2009 at 4:14am
Ah, found it myself:

CXTPMarkupContext::GetClientBoundingRect(CXTPMarkupInputElement * pUIElement); returns the position of the element relative to the context it is in.

I needed it to enable contextmenu's.
     Product: Xtreme ToolkitPro (MFC) version 13.0.0
     Platform: Windows (32bit) - XP - Vista
     Language: Visual C++
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.234 seconds.