Jump to content
  • Advertisement
Sign in to follow this  
4Demon

Fullscreen in console

This topic is 3665 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

Advertisement
How set fullscreen under win 2000 pro(console)?

To paraphrase from that link. "There is no api function that does this. The usual suggested solution is to programmatically simulate Alt+Enter." For example.


void FullScreen(){

keybd_event(VK_MENU, 0x38, 0, 0);
keybd_event(VK_RETURN, 0x1c, 0, 0);
keybd_event(VK_RETURN, 0x1c, KEYEVENTF_KEYUP, 0);
keybd_event(VK_MENU, 0x38, KEYEVENTF_KEYUP, 0);

}// F FullScreen


See also: How to switch a console window to the full-screen mode

Your mileage may vary.

Share this post


Link to post
Share on other sites
Thanks, it works perfectly.
I had never used the library windows.h before.
I will see the link, it's very interesting.

Share this post


Link to post
Share on other sites
Quote:

To paraphrase from that link. "There is no api function that does this. The usual suggested solution is to programmatically simulate Alt+Enter." For example.


...Which is completely wrong.
Of course you can do it with Win32 api !

Share this post


Link to post
Share on other sites
Quote:
Original post by george135
Quote:

To paraphrase from that link. "There is no api function that does this. The usual suggested solution is to programmatically simulate Alt+Enter." For example.


...Which is completely wrong.
Of course you can do it with Win32 api !


I think you completely misunderstood what I wrote. [grin]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!