Rubber Duck
July 28th, 2005, 03:21 AM
Hi,
I have a Dialog-style App in VC++ with some Property Pages in it. In one of those I built an OpenGL Child Window (from a CWnd Class) to display some graphics.
The problem is that it looks like when the OpenGL Page is active none of the other controls get redrawn. Even if I try to display message boxes (AfxMessageBox or even a save Common Dialog) they don't get drawn and I loose focus (cause it's on the invisible dialog). Then, using Alt+Tab I get back to my App and the message (with then focus) appears.
If I send a hide command before showing a message and a show command after, it works, but again, doesn't solve the problem with the common controls.
I checked out my OnPaint method and it is called constantly. Is it supposed to be right? My scene doesn't change all the time, so that could be consuming the proc time and limiting the refreshing of everything else.
Does anyone have faced this problem?
I've tried many things and nothing worked...
Thanks!
I have a Dialog-style App in VC++ with some Property Pages in it. In one of those I built an OpenGL Child Window (from a CWnd Class) to display some graphics.
The problem is that it looks like when the OpenGL Page is active none of the other controls get redrawn. Even if I try to display message boxes (AfxMessageBox or even a save Common Dialog) they don't get drawn and I loose focus (cause it's on the invisible dialog). Then, using Alt+Tab I get back to my App and the message (with then focus) appears.
If I send a hide command before showing a message and a show command after, it works, but again, doesn't solve the problem with the common controls.
I checked out my OnPaint method and it is called constantly. Is it supposed to be right? My scene doesn't change all the time, so that could be consuming the proc time and limiting the refreshing of everything else.
Does anyone have faced this problem?
I've tried many things and nothing worked...
Thanks!