Re: [GD-Windows] Changing window flags
Brought to you by:
vexxed72
From: Corrinne Y. <cor...@sp...> - 2001-11-06 16:12:42
|
Brian, The way to change windows flag in runtime is: SetWindowLong ( hwnd, GWL_STYLE, flag ); or SetWindowLong ( hwnd, GWL_EXSTYLE, flag ); Hope this helps. Corrinne Yu ----- Original Message ----- From: "Brian Hook" <bri...@py...> To: <gam...@li...> Sent: Monday, November 05, 2001 9:26 PM Subject: [GD-Windows] Changing window flags > My app can currently run in a window or fullscreen. When fullscreen I > use WS_POPUP and TOPMOST, but when running windowed I use > WS_OVERLAPPEDWINDOW. Currently when I toggle between windowed and > fullscreen I'm not destroying and recreating the window, primarily > because other components unrelated to graphics (DirectSound) would also > need to be destroyed and recreated. > > 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? > > Brian |