This name is used for Windows Applications that behave correctly in high DPI windows mode
Questions tagged [dpi-aware]
73 questions
1
vote
1 answer
Winforms application throws Win32Exception if marked as DPI aware and used with multiple monitors
I have a Windows Forms application (.NET Framework 4.8) which has a TabControl tabControl as the main object. I use it to switch to different screens, and I have a next and previous button which select the next or previous tab with this…

asdf101
- 569
- 5
- 18
1
vote
0 answers
Set PerMonitorV2 DpiAwareness without manifest file?
My Winforms application appears very blurry when executed without a manifest file. With it and the added code

Ero
- 69
- 7
1
vote
1 answer
Setting process DPI awareness so that the system compensates for scaling factors
I have the following mouse hook procedure (simplified for the explanation).
SetWindowsHookEx(WH_MOUSE_LL, mouseHookProc, GetModuleHandle(NULL), 0) ;
LRESULT mouseHookProc(int code, WPARAM wParam, LPARAM lParam){
if(code==HC_ACTION){
…

Seth
- 83
- 7
1
vote
0 answers
WPF per monitor DPI Aware dialog positioning issue
I have a WPF .Net 4.7 application with per monitor DPI Aware.
I enable the DPI awareness following the solution explained here.
I want to open a dialog at the top left corner of my mainWindow, and I do the following:
var window = new Window();
…

balsamiqluca
- 29
- 3
1
vote
1 answer
Setting my app api aware and preventing system to make it blurry and wrongly positioned
I have a simple app with a parent window and 4 child windows. It looks fine on Windows xp andWindows 7 to 125%display settings.
However, on Windows 7 more than 125% and Windows 10 125% itself , windows , menu , text and message boxes gets blurry and…

Code-Lover
- 299
- 1
- 14
1
vote
1 answer
How to handle SendInput mouse movement with windows scaling?
So I cannot find anything to help me with this issue, it's driving me bonkers.
Using Windows Input Simulator (C# SendInput Wrapper - Simulate Keyboard and Mouse)
When users of my software happen to have a non standard 100% windows scaling…

Spark
- 1,007
- 1
- 8
- 26
1
vote
1 answer
Is Per-Monitor v2 Awareness supported by Windows Server?
I'm writing system requirements for our application, where we recently added support of per-monitor DPI awareness V2. We've tested it with client versions of Windows. Dos someone know if this functionality is supported by Windows Server versions,…

Denis Bredikhin
- 23
- 3
1
vote
1 answer
Windows form not scaling height when display is scaled 150%
I've got this down to a very simple repro, and cannot figure out what is going wrong with this form. When run at 96 DPI / 100% scale it appears fine:
But when run at 144 DPI / 150% scale (or even 96 DPI / 150% scale), everything scales except the…

Bill Brooks
- 751
- 1
- 10
- 30
1
vote
1 answer
VERTRES and HORZRES depends on scaling setting when system booted up
I've been recently playing with WINAPI to retrieve scaling setting and screen resolution and I came across this strange behaviour.
I've got small C++ program (listing available below) that retrieves values of VERTRES, HORZRES, DESKTOPVERTRES and…

Alexander Zinovyev
- 329
- 4
- 9
1
vote
0 answers
DpiAware WinForm in Wix CustomAction
I have a custom action that is called in my MSI installer which is created by Wix Toolset. The custom action may display a simple windows form if certain conditions are not met.
I have noticed that the form does not display nicely on high-DPI…

tjsmith
- 729
- 7
- 21
1
vote
0 answers
WPF application "bitmap-scaled" on Remote Desktop with Hi DPI
My WPF application works well on Hi-DPI display (e.g. My Yoga Pro 2 laptop, with 192 DPI display (13 inch, 3200x1800).
All vector-defined GUI elements are crisp and sharp - without any explicit programming for that. Seems then WPF can pick the…

Michal.Jan008
- 135
- 11
1
vote
0 answers
How can I determine the available icon sizes contained in an icon resource?
I'm going through the painful process of making my MFC application DPI aware. I'm planning to include icon resources that contain different icon sizes. For example, small icons for list view controls should get the sizes: 16x16, 20x20, 24x24, etc.…

honk
- 9,137
- 11
- 75
- 83
1
vote
0 answers
Per monitor DPI aware MFC components
With great effort I have migrated my MFC application from begin Sytem DPI aware (High DPI aware) to Per Monitor High DPI Aware. I see that the MFC components that I have used like Dialog boxes, message boxes, etc. are still not per-monitor-dpi…

Sahil Singh
- 3,352
- 39
- 62
1
vote
1 answer
How to make my application DPI-aware?
When a user sets the DPI scaling to draw fonts and windows larger in all displays, I don't want my application to be affected (I don't want my application's fonts and controls get larger)
I tried to use SetProcessDPIAware() function or add a…

user3559876
- 11
- 1
0
votes
0 answers
How to best fix wrong text height in Lazarus with High DPI?
I have a bunch of TListBox components some of which define the OnDrawItem event in order to use colors (they also have Style=lbOwnerDrawVariable). My application is per-monitor DPI-aware ( ). All my list boxes look fine…

Dmitry Grigoryev
- 3,156
- 1
- 25
- 53