Solved

MDI Application Ploblem with NT 4.0

Posted on 1997-05-02
1
247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

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 …
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…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

628 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