?
Solved

Why do my popup dialogs dissapear en a MFC OpenGL Dialog

Posted on 2003-02-21
2
Medium Priority
?
836 Views
Last Modified: 2013-12-26
Hey there,

I have the following problem. I created a class that is derived from a CDialog class. It contains functionality for an openGL window. It works pretty good, but when there are popup's they keep dissapearing to the background. Only pressing the [ALT] key brings them up. Htey are selected the whole time, but just not visible. So I've tried some things, and when I hide and show this window, the popups, that have been pushed to the background, come forward. (By popups I mean, modal dialog boxes, messageboxes, etc.) I think it might have something to do with the OnPaint function that should be overwritten. Cause you can't call the OnPaint function of the CDialog class, and I've tried...you shoulnd call this function indeed.

So, I still have my problem and I solved it for now by hiding and showint the window every second, but this is a bad thing of course, so I'd like to know if someone had this problem before and might want to help me out here.

Thank you in advance.

Stijn
0
Comment
Question by:lmnt22
[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
2 Comments
 
LVL 12

Accepted Solution

by:
williamcampbell earned 160 total points
ID: 8009670

Try this

 Just before you launch the popup try this ...

 pYourDlg ->SetWindowPos ( CWnd::wndBottom,0,0,0,0, SWP_NOMOVE|SWP_NOSIZE );

 then after the popup is gone

 pYourDlg ->SetWindowPos ( CWnd::wndTopMost,0,0,0,0, SWP_NOMOVE|SWP_NOSIZE );
0
 

Expert Comment

by:CleanupPing
ID: 9464462
lmnt22:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

765 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