Solved

MDI Application Ploblem with NT 4.0

Posted on 1997-05-02
1
244 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
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…
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 shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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

15 Experts available now in Live!

Get 1:1 Help Now