Reputation: 19157
I have a MFC project. It supports over 40 languages.
On my PC I have two monitors. They are both different size monitors and different resolutions.
If I move my application onto the smaller monitor the complete language menu does not display. I understood it would show scroll bars. Why isn't it?
My menu is a standard menu. Nothing fancy.
My main monitor has higher resolution and I can see full menu.
Please advise.
Upvotes: 2
Views: 111
Reputation: 31609
There are different ways to set DPI awareness. It depends how you have set this value.
Click "Project Properties"
-> "Manifest Tools"
-> "DPI Awareness"
It might say "High DPI Aware"
in your case, that could explain the problem. Change it to "Per Monitor High DPI Aware"
"True/PM"
instead of "True"
. The manifest file will be names "myapp.exe.manifest"
it should be in resource directory.
<dpiAware>True/PM</dpiAware>
In your case the value might be "True"
, that could explain the problem.
SetProcessDpiAwareness
. In that case it should use the value PROCESS_PER_MONITOR_DPI_AWARE
.
It's also possible that you are using SetProcessDPIAware
! This function is deprecated.
See also
Creating a DPI-Aware Application
High DPI Reference
Upvotes: 3