Using VS2019 + SDK, it's display, 4 k set is 200%, and after the change of different resolution, interface is always changed by different resolution, but as a system to create the form is the same, is to maximize and minimize frame spacing is always pretty big, and font and with code to create control is variable, excuse me how should save the unified under different DIP? Thank you for your attention!
CodePudding user response:
Are generally take first display size
Int nWidth=GetSystemMetrics (SM_CXSCREEN);//screen width
Int nHeight=GetSystemMetrics (SM_CYSCREEN);//screen height
Then MoveWindow MoveWindow don't set up in the specific size and location, through the above access nWidth and nHeight to control the position of the control
CodePudding user response:
Search dpiAware