Solved

Dialog and Messagebox Z-Order Problem

Posted on 2001-06-20
12
218 Views
Last Modified: 2013-11-20
0
Comment
Question by:ulischmidt
[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
  • 4
  • 3
  • 2
  • +3
12 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 6211367
>> no text

No comment!
0
 

Author Comment

by:ulischmidt
ID: 6211552
In my MFC Multidoc App there's a problem with the Z-Order of modal dialogs an (Afx)Messageboxes:
If they're called, they don't appear and the app seems to hang! If i then press the ALT key, they appear
with the focus on the system menu.....????

Can you help?

Thanks
Uli
0
 
LVL 30

Expert Comment

by:Axter
ID: 6212604
That means you have the property settings wrong on your Dialog resource.
0
Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

 
LVL 30

Expert Comment

by:Axter
ID: 6212606
The easiest way to figure it out is to create a new dialog.
Then check each settings one by one, and make sure your current dialog has the same settings as the new dialog.
The new dialog will have the correct property settings by default.
0
 

Author Comment

by:ulischmidt
ID: 6213186
Yes Axter, I've done this, but with no result....also the
Messageboxes have the same effect, i tried with a lot of flags and with no flags,.... :(
0
 
LVL 6

Expert Comment

by:MichaelS
ID: 6213480
Looks like you working under w2k, and if so than you have to read documentation. In w2k thay (MS) changed things about current focus. Also in your app you have few threads (may be not but sounds like that). Can you show your code of give us some more detailes about it?
0
 

Author Comment

by:ulischmidt
ID: 6213593
OK sorry for the poor info..
I'm working under Win98 II and the 'hidden' dialogs are called from a CScrollView in another MFC-dll.
There are some timers working in this MFC dll...
If nothing helps, i would make the dialog topmost...
But what about the messageboxes????

0
 
LVL 30

Accepted Solution

by:
Axter earned 100 total points
ID: 6213731
Could you post the property settings for the dialog you're having problems with?
0
 
LVL 12

Expert Comment

by:migel
ID: 6213825
Hi!
what parent you pass to modal dialog?
0
 

Author Comment

by:ulischmidt
ID: 6213935
OK Axter thanks...
I tried some settings (NON STANDARD!) :Set ForeGround and Overlapped, now it appears correct, i just have to check out the messageboxes....if all is ok, i give u the points.
0
 
LVL 6

Expert Comment

by:MichaelS
ID: 6214286
SetForegroundWindow and BringWindowToTop is an API, this is standard functions and you even must use it, other wise it will not work under w2k (at least).
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9490028
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by : Axter

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Roshan Davis
EE Cleanup Volunteer
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Suggested Courses

636 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