Home > Software engineering >  MFC program adaptive resolution
MFC program adaptive resolution

Time:10-05

Consult everybody a great god, and I am using MFC made up a piece of software, the background is a picture, and then there are a lot of controls, including buttons, such as static static, now do is fixed resolution size, screen resolution, want to change to the adaptive difficulty is not only to the adaptive size, the position of the controls should also be adaptive

CodePudding user response:

Rewrite the OnSize function, accurate to adjust the size and location of the various controls

CodePudding user response:

refer to the original poster weixin_37323783 response:
consult everybody a great god, and I am using MFC made up a software, the background is a picture, and then there are a lot of controls, including buttons, such as static static, now do is fixed resolution size, screen resolution, want to change to the adaptive difficulty is not only to the adaptive size, the position of the controls should also be adaptive

Recommend you use WPF, you rewrite the onsize workload will be very big

CodePudding user response:

https://www.codeproject.com/articles/568/cresizabledialog
  • Related