Re: Frame window does not get displayed properly
I don't know if what you are doing is a good idea.
But if you want to have a floating window inside your dialog, then create a
window with the WS_CHILD flag which also has a border and title bar, but
you will be fighting ZOrder problems between the child window, and the
controls on the main dialog.
You can test this with a dialog, create a dialog template, set its style
property to Child. Then create a class for it by double clicking on the
dialog box. Put a member variable m_ChildDialog of the new dialog type in
your main dialog.
Then Create the dialog like this:
m_ChildDialog.Create(CChildDialog::IDD,this);
m_ChildDialog.ShowWindow(SW_SHOW);
The best solution would be to start with an SDI application instead of a
dialog based application.
AliR.
"Matrixinline" <anup.kataria@gmail.com> wrote in message
news:d17d1745-3537-4d35-9083-865ec84f6af4@e23g2000prf.googlegroups.com...
Hi All,
I have a Dialog based applciation. I want to create a Frame window
when clicked on the button on Dialog. The problem is I handled the
Painting of the dialog (I draw a picture on so WM_PAINT message I
handle.) but doing this I am not able to draw the frame window
properly. It appears to be transparent to me .
I am setting the CFrameWnd to be the child of CDialog
Please Can you let me know how to draw the farme window of how can I
have a floting window on a dialog.
Thanks
Anup