@chi : please READ the question again.
I’m not looking for a way to check if the app is dpi aware.
I’m asking if there is a way to programmatically figure out whether the PB 5.70 dpi checkbox is checked.
Sometimes, later... :
I see that you've added a new link to your answer. The code in that one appears to be spot on. Thank you very much, @chi, for going to the trouble of locating that piece of code on the German Forum. It does exactly what I was looking for.
Last edited by Blue on Fri Mar 22, 2019 4:53 am, edited 2 times in total.
"That's not a bug..." said the programmer. "it's a feature! "
"Oh! I see..." replied the blind man.
Blue wrote:@chi : please READ the question again.
I’m not looking for a way to check if the app is dpi aware.
I’m asking if there is a way to programmatically figure out whether the PB 5.70 dpi checkbox is checked.
Sometimes, later... :
I see that you've added a new link to your answer. The code in that one appears to be spot on. Thank you very much, @chi, for going to the trouble of locating that piece of code on the German Forum. It does exactly what I was looking for.
The day after... : You're too fast, man! I posted the second link within a few seconds . Anyway, glad it worked out for you...
Works here as expected
PB 5.70 x64
Windows 7 Ultimate x64
MSDN
Return Value
Type: Type: BOOL
TRUE if the process is dpi aware; otherwise, FALSE.
Requirements
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll
It would be very good to get such a (compiler) function with the current PB updates.
It's needed to be able to react on the current DPI-aware setting, e.g. with image sizes and their display...