full screen and windowed

This is a discussion on full screen and windowed within the C++ Programming forums, part of the General Programming Boards category; in the begining of most of my programs i put Code: 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); to make the dos window ...

  1. #1
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608

    full screen and windowed

    in the begining of most of my programs i put
    Code:
        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);
    to make the dos window go full screen. but wut would i use to make it windowed again?
    Email: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com

    -the shroom has spoken

  2. #2
    Registered User
    Join Date
    Jul 2002
    Posts
    11
    ALT+ENTER will make it return...

    VK_ALT
    A virtual key code for the ALT key.

    and VK_RETURN is undocumented by MSDN, but you already know it apparently =)
    Last edited by Labelizm; 07-24-2002 at 06:21 PM.

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    94
    Wouldn't you just use it again? I mean, hitting Alt+Enter in full screen mode changes it back to windowed, doesn't it? So I'd imagine just re-calling that code would put it back in window mode.

    Brendan

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 01:39 PM
  2. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 04:19 AM
  3. Help With Making Full Screen Game Windowed!
    By rented in forum C++ Programming
    Replies: 4
    Last Post: 06-10-2004, 09:34 AM
  4. Win32 Console Application...Full Screen?
    By MrWizard in forum C++ Programming
    Replies: 4
    Last Post: 04-01-2002, 01:56 PM
  5. Keeping DOS windowed when switching graphics modes
    By frenchfry164 in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 02-28-2002, 07:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21