Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Switching fullscreen to windowed in DX8

This topic is 6120 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, Long time since I last post here Well, my problem is, I''m trying to switch from fullscreen to windowed and it''s not fully working... It switches but the window controls (Title bar, close button, border, etc) doesn''t appear, so I have to right click on the task bar and minimize the window, when I maximize it the controls appear. What could be happening ? Thanks for any answer... "Eu sou, na verdade, a sombra do que quero ser." Nepheus

Share this post

Link to post
Share on other sites
Here''s what I''m doing:

// if changing TO windowed...
if (blModoJanela)
SetWindowLong(p_stSistema->Janela, GWL_STYLE, WS_POPUP | WS_OVERLAPPEDWINDOW);
SetWindowPos(p_stSistema->Janela, HWND_TOP, 0, 0, ptTamanho.X, ptTamanho.Y, SWP_SHOWWINDOW);
else // if changing FROM windowed TO fullscreen
SetWindowLong(p_stSistema->Janela, GWL_STYLE, WS_POPUP);
SetWindowPos(p_stSistema->Janela, HWND_TOPMOST, 0, 0, LarguraModoVideo(mvModoVideo), AlturaModoVideo(mvModoVideo), SWP_SHOWWINDOW);

Obs: (some translations
p_stSistema->Janela = HWND Window
ptTamanho.X & .Y = ptSize.X & Y
blModoJanela = blWindowedMode
LarguraModoVideo(mvModoVideo) = returns the Screen Width
AlturaModoVideo(mvModoVideo) = returns the Screen Height


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!