Questions tagged [dpi-aware]

This name is used for Windows Applications that behave correctly in high DPI windows mode

73 questions
3
votes
1 answer

Inno Setup WizardImageFile looks bad with font scaling on Windows 7

Bitmap for Inno Setup WizardImageFile (and WizardSmallImageFile) looks terrible because when Windows 7 has the large system fonts enabled, the Wizard is bigger than usual, but the images are scaled terrible wrong. Is there a fix? There is no similar…
Tom
  • 6,725
  • 24
  • 95
  • 159
3
votes
2 answers

Why does a 72 dpi image appear bigger in 96 dpi screen

I set my screen to 72 DPI and designed a small png image that is 100x100 @ 72 DPI. Which means 72 pixels represents 1 inch. Now I changed my screen to 120 DPI and designed the same graphic png image with 100x100 @ 120 DPI. Which means 120 pixels…
sudarsanyes
  • 3,156
  • 8
  • 42
  • 52
2
votes
0 answers

Set DPI scaling for CefSharp window only in WPF application

I'm trying to convert IE web browser window into a CefSharp (v 96.0.180) window into as a part of a larger WPF application. The application itself follows the system dpi level (resizes UI with it), but the IE window kept 100% dpi no matter what was…
EmeraldP
  • 23
  • 6
2
votes
2 answers

Why Can't I Turn Off DpiAwareness in Python After Turning It On?

I use this code to turn on Dpi Awareness, in Python 2.7, under Win10 import ctypes import platform ctypes.windll.shcore.SetProcessDpiAwareness(True) but ctypes.windll.shcore.SetProcessDpiAwareness(False) does not turn it off. I am looking for any…
jvbSherman
  • 21
  • 1
2
votes
1 answer

Problems with per-monitor DPI aware MFC MDI app

I'm working on making an MFC app display properly on multiple monitor environments with different DPI scaling. There is one issue I cannot explain which occurs when the primary and secondary monitors are running with different DPIs and the app is on…
Marius Bancila
  • 16,053
  • 9
  • 49
  • 91
2
votes
0 answers

Per-Monitor V2 DPI awareness in WinForms not rescaling controls with non-ambient fonts

I have been tasked with adding support for Per-Monitor V2 DPI awareness to a legacy WinForms application which targets .NET 4.7.2. I know this is a complicated issue and I've done a lot of reading on StackOverflow and the MSDN on this topic. Using a…
Jason Tyler
  • 1,331
  • 13
  • 26
2
votes
1 answer

Winform window gets shrinked when lauched through WPF Application

I have created WPF application . In this application I am launching win form exe. Later make WPF window as parent of this win form. when I execute this application with present resolution . things work fine But when I launch same thing through 4K…
Apoorva Raju
  • 300
  • 1
  • 14
2
votes
1 answer

Change a combo box' items' height lateron (for DPI awareness)

Background: I have an MFC application with per-monitor DPI awareness mode. When I shift the window to another monitor having another screen scaling, I receive and process the WM_DPICHANGED_AFTERPARENT message. My owner drawn combo box (with style…
Nick
  • 472
  • 3
  • 18
2
votes
1 answer

How to use my own manifest file and embed it into executable using Visual Studio 2017?

I am trying to use PerMonitorV2 DPI awareness, which resizes non-client area when DPI is changed. MSDN documentation recommends using manifest to set DPI awareness mode: Setting the default DPI awareness for a process. Manifest Tool section of VS…
krsi
  • 1,045
  • 2
  • 14
  • 24
2
votes
1 answer

GetProcessDpiAwareness() prior to Windows 8

I know that I can use GetProcessDpiAwareness() to check the dpi awareness of a particular process. However this is only supported from Windows 8.1 upwards. Is there any way to query the dpi awareness of a process prior to that? I couldn't find any…
Johannes Stricker
  • 1,701
  • 13
  • 23
2
votes
2 answers

DPI Aware application in Windows XP

I want to make my C# application DPI aware. There is a command available in Windows API called SetProcessDPIAware() but the problem is it only works in Windows Vista and higher versions of Windows and not in XP. How can I make the controls, Buttons…
zeeshan malik
  • 41
  • 1
  • 6
2
votes
1 answer

How to create high-dpi console applications on macOS with C# (if it is possible at all)?

I have a simple c# console application that builds a fractal. I use Visual Studio Community on macOS. I create a bitmap of a certain size (wxh). For every pixel a color is assigned with .SetPixel, based on the calculated mandelbrotnumber. class…
raoul
  • 197
  • 3
  • 14
2
votes
2 answers

MFC picture control changes size when DPI awareness disabled or running on Win7

I made an MFC app for my friend using VS2015 in Win10. It looks like this, which is exactly the same as in resource editor. . But when he ran the app on his computer in Win7, the Bitmap image in Picture Control enlarges and covers up some text…
ricecakebear
  • 301
  • 4
  • 15
2
votes
0 answers

Delphi form PixelsPerInch different in debug and standalone?

I'm working on a per-monitor DPI aware application with multi-monitor capability. It's necessary to know the design-time PixelsPerInch of the Form to scale it according to the current monitor DPI if the Form is moved across monitors. The problem is…
kgz
  • 527
  • 2
  • 10
2
votes
1 answer

TransformToDevice doesn't return correct DPI factor on windows 8.1

Hi I'm implementing DPI aware application where i want to calculate position of window based on current resolution. I tested below code on windows 8.1 where OS doesn't ask for re-login if we change the DPI setting. it apply the DPI immediately. …
user3106005
  • 179
  • 3
  • 20