Requirements: double-click the child Windows (video), to full screen
Implementation: get the screen resolution, hide the other layout, call SetWindowPos set
Status: the main interface to initialize the display is not to maximize and full screen, 1000 * 800, then double click on the video window, all OK to full screen, but if to maximize operating, then double-click the child window, found that can't be full screen
CodePudding user response:
It is every time after the double-click, use first MoveWindow to change the window size, and then try to call you now write a full-screen codeCodePudding user response:
In fact, a lot of popular software on the market in full screen is not really a full-screen, the size and location is just a ClientArea like desktop, I guess,CodePudding user response:
To the conditions of the full-screen window can not be WS_CHILD styleCodePudding user response: