[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 335
  • Last Modified:

Use a dialog in the rc file as a MDI Child window?

Hi, I am designing a MDI application and is hard to draw all child windows handly (let's say via code). I want to show a dialog/window designed in the Resource Workshop as a child window.
Thank You.
0
trickle
Asked:
trickle
  • 2
1 Solution
 
md041797Commented:
Make the MDI a frame window, and use the dialog as the frame's client.
0
 
trickleAuthor Commented:
Need more information.
Whe the user click on any option, a message with such ID in WPARAM is processed in the command handler. The called function, sends a message (WM_CREATE) to the MDIFrameWndProc handler, with a long pointer to a MDICREATESTRUCT struct, and this perform a CreateWindow and ShowWindow.
What I want is load a dialog from the resource not to CreateWindow and then paint all the controls via code!

Little example required, please.

0
 
AVaulinCommented:
You have to set CFormView class as base class of CYourApplicationView class on step 6 when you create new MDI application with AppWizard help.
0
 
trickleAuthor Commented:
I don't know you.
I'm using Borland C 3.1. NOT OWL or VISUAL PROGRAMMING.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now