Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15990

how do we know App is dpiAware applied currently?

$
0
0
I have two monitors, one is laptop screen(125% scale, Physical 1366x768), another is an extend(175% scale, , Physical 1920x1080). In maniefst, I set dpiaware:
Quote:

<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
But I didn't set extend monitor dpiawareness:
Quote:

<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings"> PerMonitor</dpiAwareness>
In result, laptop screen is dpiaware, extend is not dpiaware.

If the app's Form placement is crossing two monitors by careful adjustment, the app will automatically turn into non-dpiaware. As we know, in non-dpiaware app, some APIs like GetWindowRect return 'false' rectangle. So checking whether the app is dipaware status is crucial. How to check? Any notifications are available in main Form when app is turning into non-dipaware or dipaware?

Viewing all articles
Browse latest Browse all 15990

Latest Images

Trending Articles



Latest Images