Solved

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

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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