Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

console maximize - in code

Status
Not open for further replies.

xTiamatx

Programmer
Jul 20, 2003
22
0
0
US
hey.. how do you maximize a console window with code?

thanks,

-Kerry
 
Use FindWindow, or EnumWindows to get the window handle of your console and use Win32API

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
On Windows 2000 and XP
Code:
::ShowWindow( ::GetConsoleWindow(), SW_MAXIMIZE);

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top