CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    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


  2. #2
    Guest

    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!


  3. #3
    Join Date
    Jun 1999
    Posts
    319

    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
  •  





Click Here to Expand Forum to Full Width

Featured