RE: [GD-Windows] Changing window flags
Brought to you by:
vexxed72
From: Wayne C. <wc...@re...> - 2001-11-06 11:09:54
|
> But because my window styles are set at window creation time, things > look funky when I go windowed->fullscreen (I have a bordered > fullscreen > window) or vice versa (borderless window). Is there a better > way to fix > this than just to destroy and recreate my window and all HWND > dependent > subsystems every time I change modes? Can you use SetWindowPos() when switching to windowed mode, and then resetting them back when going fullscreen, and modifying the style with SetWindowLong() for any other changes? ie. void OnWindowed( HWND hWnd ) { SetWindowPos( hWnd, HWND_NOTOPMOST, 0, 0, 256, 256, 0 ); } void OnFullscreen( HWND hWnd ) { SetWindowPos( hWnd, HWND_TOPMOST, 0, 0, screenwidth, screenheight, 0 ); } Wayne -Virus scanned and cleared ok |