troubleshooting Question

Create a dialog inside a frame window

Avatar of OleSetnes
OleSetnes asked on
System ProgrammingVisual C++.NET
10 Comments1 Solution1149 ViewsLast Modified:
Hi,
I want to create a frame window with a dialog as the client window. I'm not talking about having a dialog as the main window in an application. The frame window should have an icon, could be resize by pulling the edges, be modeless and have minimize and close buttons.

Something like this:

CDialog* pMyDialogClient = new CDialog(...);
CFrameWnd* pMyFrame = new CFrameWnd(.., pMyDialogClient, ...);
pMyFrame->SetIcon(...);
pMyFrame->Create(...);
pMyFrame->Show(SW_SHOW);

I not very familiar with MFC but I have done this in other frameworks where it have been quite easy.  Perhaps I'm looking at the wrong classes in MFC because it is not obvious for me how to set the client dialog for the CFrameWnd class.

Thank you, Ole.
ASKER CERTIFIED SOLUTION
AndyAinscow
Freelance programmer / Consultant

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros