Solved

MDI Application Ploblem with NT 4.0

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

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 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