Solved

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

Posted on 1997-07-29
4
290 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now