|
-
April 15th, 1999, 10:50 AM
#1
Using MFC-Class CRectTracker with CScrollView
Hi there
I'm trying to draw rects around objects using CRectTracker: raw(CDC* pDC).
But CDC uses the Client Coordinates of the window.
Now I'd like to know, how I can tell the function to use logical coordinates instead of client coordinates.
I hope somebody can help me
-
June 28th, 1999, 07:38 AM
#2
Re: Using MFC-Class CRectTracker with CScrollView
You can set a CRect value ( such as rect ), and make the 'rect' to keep the logical coordinates, every time you want recttracker, you can create a CRectTracker from 'rect', then you'll do it!
-
June 28th, 1999, 07:48 AM
#3
Re: Using MFC-Class CRectTracker with CScrollView
There are some functions which converts from LP to DP (I think LPtoDP and DPToLP on CWnd or CView). You also need to redraw to the old rect before draw the newly. Let me know if it helps you.
Regards,
Faby
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|