Reputation: 11
My MFC app written with VS2019 displays correctly at 1920x1080, but when I deploy it to a 1920x1080 laptop it shows up at about 1/4 size. I have toggled DPI Awareness, but without effect. When I deploy it on a laptop that already has VS2019 on it, it displays correctly.
Upvotes: 0
Views: 45
Reputation: 11
Problem solved. I had been using a font that didn't exist on the target machines. It is 20 points high, and the default font is 8 points high. MFC sizes the dialog to fit the font size. All I had to do was copy and install the font file. Thanks for your thoughts and suggestions. For what it is worth, in the past I have always used a 3rd party deployment tool that packaged in the fonts, and now I have learned that the Visual Studio supplied tool doesn't do that.
Upvotes: 1