Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to embed a CView in a CDialog

Status
Not open for further replies.

qzou666

Programmer
Feb 12, 2002
11
0
0
NZ
Hi,

I need to embed a CView object in a modeless CDialog. Can anyone help me out?

Cheers!
 
Easy add Rich Edit control to Your dialog. It can all what CView can and much more. If You do not need RTF - editing, You can override OnDraw() and couple another Functions.
If You did not used RichEdit before You starts the dialog, call AfxInitRichEdit() before You starts the dialog.
Modal or modeless, it is the same. Look for showing modeless dialogs in this forum (I think, one month or more ago).
 
You should embed CWnd in CDialog if you want to do some fine tuning. You do not need all the CView functionality.
I have made it and it work without much fuss.
Your CWnd should be painted in a static control.

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top