Solved

MDI Application Ploblem with NT 4.0

Posted on 1997-05-02
1
241 Views
Last Modified: 2013-12-04
Hi all,
I wrote an MDI application in which every MDI Child Window is a dialog box created with the resource editor, with the extended flag MDI Child checked and with a Class that I register at the beginning of the execution.
In every dialog-window procedure I use the DefMDIChildProc function to manage the message I don't care. I create the dialog box with CreateDialog function.
My application works well in Windows 95, but when I tried to run it on NT 4.0 (Workstation) I saw a very strange behaviour: the dialog boxs don't paint correctly and I don't see the list of the windows in the Window Menu.
If I open a MDI test-window with CreateMDIWindow I saw it normally...
I use Borland C++ 5.01A
0
Comment
Question by:s.grassi
1 Comment
 
LVL 1

Accepted Solution

by:
gtschech earned 100 total points
ID: 1397073
Win NT is much less tolerant to 'workarounds' than Win95 on things like you did. You should create the MDI child via CreateMDIWindow() and then use the Dialog in the client area of the MDIChild window (just specify the MIDChild as parent of the dialog). You may need to override the MDIChildWindowProc to avoid resizing of the window, but you will get the right MDI feeling as a result.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 …
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared 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…
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…

929 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

12 Experts available now in Live!

Get 1:1 Help Now