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!
Printable View
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!
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.