Home > Software engineering >  Child window in full screen
Child window in full screen

Time:10-31

UI framework: Duilib
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 code

CodePudding 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 style

CodePudding user response:

reference zgl7903 reply: 3/f
to the conditions of the full-screen window style cannot be WS_CHILD

Only after first operation to maximize, not full screen
So...

CodePudding user response:

Bring the child window's parent window is set to the largest display area, and remove the title bar and border, child window using MoveWindow/SetWindowPos the biggest area of a Rectangle is set to the parent window,
  • Related