tags:

views:

928

answers:

1

Is there something like a panel that I can use in a MFC application. This is to overlay the default window in MFC (a dialog application). Then to paint the panel black and paint some random stuff on top of it. Something like a view port.

is there a better option than this to achieve the same effect ?

+2  A: 

Sure. It's called a window! Create a class that derives from CWnd and overrides OnPaint().

In your dialog's OnInitInstance(), instantiate a CMyWnd object and call it's Create() member. Of course, make sure the lifetime of your CMyWnd object is the same as the dialog's object lifetime window. iow, make it a member of you CMyDialog class.

Not very complicated but obviously an area where MFC shows why it doesn't fall in the RAD tools category.

Serge - appTranslator