drawing area in a dialog

OK, I have a dialog created by wizard at first. Now, I know I can add button by the Resource Editor. But I don't know how to have a square drawing area in that dialog, without drawing over the button. How to do this?

Comments

  • : OK, I have a dialog created by wizard at first. Now, I know I can add button by the Resource Editor. But I don't know how to have a square drawing area in that dialog, without drawing over the button. How to do this?
    :

    You must override WM_PAINT (and maybe WM_ERASEBKGND) handler of dialog
    and write your implementation of form painting....

    //-------------------------------
    CKBO3HRK
    www.alarit.com

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion