Solved

win32 dialogs versus fullscreen OpenGL

Posted on 2011-03-19
3
639 Views
Last Modified: 2012-05-11
Hi,

Since Vista/Windows 7 i'm having trouble with a fullscreen OpenGL window obscuring win32 dialogs. This wasn't a problem in XP, where the dialogs remained on top of the OpenGL window. If the OpenGL window is smaller, there is no problem.
It's not that i'm creating a fullscreen window as such, i'm just creating a borderless window with the same dimensions as the screen. If i make it just one pixel smaller (horizontally or vertically) all goes well.
Any idea's?

Kind Regards,
Daniel Dekkers
0
Comment
Question by:DoZo1971
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
StormSeed earned 500 total points
ID: 35391212
I expect using the Windows API to tell the dialog window to go on top could solve the problem.

How are you creating the dialog?  (i.e. Do you use the Windows API to do so?)
Is the dialog modal?  (Making it modal might solve your problem.)
0
 

Author Comment

by:DoZo1971
ID: 35391490
Hi StormSeed,
Solved it (forgot to remove the question).
You have to set WGL_SWAP_METHOD_ARB to WGL_SWAP_COPY_ARB in the pixelformatdescriptor. That works on nVidia (MacBook Pro). Hope it works on ATI cards as well.
0
 

Author Closing Comment

by:DoZo1971
ID: 35391493
For the effort ;-)
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

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.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

920 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

12 Experts available now in Live!

Get 1:1 Help Now