Solved

Dialog and Messagebox Z-Order Problem

Posted on 2001-06-20
12
214 Views
Last Modified: 2013-11-20
0
Comment
Question by:ulischmidt
  • 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
windows 10 how make picture as desktop background 2 58
format the code in java 6 86
countEvens challenge 2 78
tripleUp challenge 7 74
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

896 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

11 Experts available now in Live!

Get 1:1 Help Now