By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,190 Members | 839 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,190 IT Pros & Developers. It's quick & easy.

Console Properties

P: 6
Hi there,

I am trying to change the display mode for the console application from c++ . I am using Visula C++ 6.0 . I am able to change the cursor position and the buffer size but I did not find a way to change the mode (to Full screen).

HANDLE hConsoleOutput=GetStdHandle(STD_OUTPUT_HANDLE);
COORD dwCursorPosition;
dwCursorPosition.X=0; // set the cursor position
dwCursorPosition.Y=0; // where (0,0) is the top left of the screen
SetConsoleCursorPosition (hConsoleOutput,dwCursorPosition);

dwCursorPosition.X=500; // Set the buffer size
dwCursorPosition.Y=300; //
SetConsoleScreenBufferSize(hConsoleOutput,dwCursor Position);
Feb 26 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.