Solved

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

Posted on 1997-07-29
4
318 Views
Last Modified: 2013-12-03
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
Comment
Question by:trickle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Expert Comment

by:md041797
ID: 1402417
Make the MDI a frame window, and use the dialog as the frame's client.
0
 

Author Comment

by:trickle
ID: 1402418
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
 
LVL 4

Accepted Solution

by:
AVaulin earned 50 total points
ID: 1402419
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
 

Author Comment

by:trickle
ID: 1402420
I don't know you.
I'm using Borland C 3.1. NOT OWL or VISUAL PROGRAMMING.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question