• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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