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, KEYEVENTF_KEYUP, 0 );
keybd_event ( VK_MENU, 0, KEYEVENTF_KEYUP, 0 );
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
This works with Dev-C++ but not with VC++ 6.0 (I think it is a compiler bug)
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd,SW_SHOWMAXIMIZED);
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343