CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Skizmo

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    6,040

    Re: GetDC not calculating toolbar offset

    OnDraw for views, instead of OnPaint for dialogs. The OnDraw function gives you the drawing DC as a parameter of the function, so my question stands, why the GetDC ().


    Yes. A window (or view)...
  2. Replies
    6
    Views
    6,040

    Re: GetDC not calculating toolbar offset

    Why do you need to get a DC ? You can only draw in the OnPaint, and in it you need to declare

    CPaintDC dc(this);
    to create a DC. Drawing outside the OnPaint is simply the wrong way to do it.
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured