Re: [GD-Windows] Messed up windows after fullscreen
Brought to you by:
vexxed72
From: Aaron H. <Vid...@ho...> - 2001-09-29 01:39:12
|
Yep, setting a break point confirms that WM_CREATE is generated and called within CreateWindow(). Wish I had a reasonable answer to why OpenGL is initialized in WM_CREATE. However, that skeleton I sent seems to always work fine. Looking around, there seems to be a progression of messages delivered by the OS when CreateWindow is called, and WM_CREATE is somewhere in the middle. Wish I could just walk through the OS code base and see what it really does! Good luck. - Aaron. Brian Hook wrote: > Yep, I'm doing that. Actually, I'm now doing: > > CreateWindow(); > ShowWindow(); > UpdateWindow(); //this shouldn't be necessary if you don't handle > WM_PAINT > SetForegroundWindow(); > SetActiveWindow(); > SetFocus(); > I'm doing that after CreateWindow() and not in WM_CREATE. Is there a > particular reason that you do it in WM_CREATE? AFAIK (but this is an > assumption), CreateWindow() dispatches WM_CREATE synchronously. |