开发者

c++ full screen windows 7

开发者 https://www.devze.com 2023-04-08 12:26 出处:网络
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

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消