CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2004
    Posts
    474

    Drawing panel control for dialog?

    Is there a drawing panel control extant that I can put on a dialog? All I want is a little square drawing area on a dialog that I can draw a preview of something or other.

    Thanks!

  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Drawing panel control for dialog?

    Create CWnd derived class, call create member and place such a windows inside of a dialog. Handle WM_PAINT and possibly WM_ERASEBKGND to handle drawing. Look at Scribble example it may help you.

    You can also use static control. Place one in a dialog editor, change ID to something other than IDC_STATIC. Derive class from CStatic and subclss control (add variable of the new class). In derived class handle WM_PAINT message.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

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