c++ full screen windows 7
I need code to resize my c++ program to fullscreen.
I use Dev-C++I tried this but it doesn't work on windows 7
keyb开发者_运维问答d_event(VK_MENU,0x36,0,0);
keybd_event(VK_RETURN,0x1c,0,0);
keybd_event(VK_RETURN, 0x1c, KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU, 0x38, KEYEVENTF_KEYUP,0);
Don't fake keyboard input when you don't have to. Call ShowWindow()
.
ShowWindow(MainWindowHandle, SW_MAXIMIZE);
精彩评论