Home > Software engineering >  Vs programs written to win10 display is not correct
Vs programs written to win10 display is not correct

Time:11-12

Source did not move, Windows 7 rose win10, resolution have change, leading to the bottom of the button to show not to come out,
Could you tell me how to solve it,,,,

CodePudding user response:

Processing WM_Size message, oneself adjust the window size

CodePudding user response:

reference 1st floor oyljerry response:
processing WM_Size message, oneself adjust the window size

Can say the detailed point?
My window is set image size, and then map
I tried to increase the window, but useless, enlarged part shows the picture above,

CodePudding user response:

What's the matter with your button is created? How to set the coordinates

CodePudding user response:

Image size is not a pixel? Is inches?

CodePudding user response:

The
reference 3 floor hurryboylqs response:
what's the matter with your button is created? Coordinates are how to set the


Location is visual, BitBlt

CodePudding user response:

reference 4 floor schlafenhamster response:
image size is not a pixel? Is inches?

The window size is the size 1032 * 580 resolution, can be in Windows 7, win10 cannot show the second half

CodePudding user response:

Is related to "desktop window manager DWM"?

CodePudding user response:

Should play yards,

CodePudding user response:

refer to the eighth floor zhao4zhong1 response:
should play yards,


,,, haven't solve , can, to compatible mode,

CodePudding user response:

Lz problem solved, encountered the same problem, is also in the Windows 7 written in VS2008 Dialog application, interface display and configuration on Windows 7, but using the program, on Win10 found Dialog width, heigth is magnified, on the laptop can't display completely, on the PC can display completely, but display interface and configuration is not consistent,

CodePudding user response:

With the relative position, do not use absolute position, such as dialog box 100, you want to be in the middle to get dialog box width, and then divided by 2, so no matter how width changed all right, don't use the absolute value of 50

CodePudding user response:

Found that my problem is actually use the sake of the CPropertySheet CPropertySheet is Win10 in the stretched wide, but still failed to solve, the problem clearly, feeling should be fast

CodePudding user response:

Whether DPI problems caused by different? My win10 will default use recommended DPI (enlarge)
  • Related