how to maximize the console window?

This is a discussion on how to maximize the console window? within the C Programming forums, part of the General Programming Boards category; hi everyone i write a battleship game by using Win 32 Console Application on VC++ 6.0 and i want the ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    4

    how to maximize the console window?

    hi everyone i write a battleship game by using Win 32 Console Application on VC++ 6.0 and i want the console to be maximized when the game is started.It looks like some traditional games on console.Thanks for reading

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    keybd_event can be used to simulate key presses. If you simulate alt+enter, you'll get a full screen.
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    4
    when i include <window.h> it generates error.It can not be found.

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >when i include <window.h> it generates error.It can not be found.
    Bummer.


    Oh wait, were you trying to ask a question? Perhaps "why doesn't this work?" or "how can I fix this error?"... If that's the case then I would recommend actually posting the error itself and not your own summary of the error.
    My best code is written with the delete key.

  5. #5
    Registered User SKeane's Avatar
    Join Date
    Sep 2006
    Location
    England
    Posts
    234
    Perhaps because it's

    Code:
    #include <windows.h>
    Just a thought.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SDL Window opening with Console Window
    By carrotcake1029 in forum Windows Programming
    Replies: 2
    Last Post: 12-23-2008, 03:32 PM
  2. Console window in VC 2008
    By swgh in forum Tech Board
    Replies: 0
    Last Post: 06-05-2008, 04:13 PM
  3. File dialog under console window
    By anon in forum Windows Programming
    Replies: 1
    Last Post: 05-15-2006, 01:05 PM
  4. my wndProc is out of scope
    By Raison in forum Windows Programming
    Replies: 35
    Last Post: 06-25-2004, 08:23 AM
  5. Keeping the console window open
    By Adock in forum C Programming
    Replies: 3
    Last Post: 01-31-2002, 05:15 AM

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