err....... is there any command line in Dos to make it full screen, so that i can put it into a system(" ") line in my c++ console program? Thanks in advance.

Recommended Answers

All 3 Replies

No, you have to simulate a few keystrokes with the Windows API function keybd_event. IIRC:

keybd_event ( VK_MENU, 0, 0, 0 ); 
keybd_event ( VK_RETURN, 0, 0, 0 ); 
keybd_event ( VK_RETURN, 0, KEYEVE­NTF_KEYUP, 0 ); 
keybd_event ( VK_MENU, 0, KEYEVENT­F_KEYUP, 0 );

This works with Dev-C++ but not with VC++ 6.0 (I think it is a compiler bug)

HWND hWnd = GetConsoleWindow();
Member Avatar for Electrohead

Dev-C++ has a built in function in project options i believe

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.