VC Activation Maximization Window

Source: Internet
Author: User
hWnd = FindWindow(NULL, szTaskExe);SetForegroundWindow(hWnd);BringWindowToTop(hWnd);SetCursorPos(100,200);//移动到某点坐标mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);//点下左键

Here we can get the handle of the window with FindWindow. Here I created the B process through a process and then activated the window of B.
Without a mouse-click simulation, you will notice that the window's icon is activated on the status bar (the icon on the taskbar is blinking orange), but still not full screen. By simulating the mouse click, do the real activation, into the window of the message loop.

VC Activation Maximization Window

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.