Solved

MDI Application Ploblem with NT 4.0

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

19 Experts available now in Live!

Get 1:1 Help Now