Could anyone give some examples when window DPI can differ from system one? Maybe users can somehow specify from outside an application in which DPI it should run. Or maybe it's something else.
Why is there two different functions GetDpiForSystem and GetDpiForWindow in WinApi?
1.3k Views Asked by Oleksa At
1
There are 1 best solutions below
Related Questions in WINDOWS
- how to play a sounds in c# forms?
- Echo behaviour of Microsoft Windows Telnet Client
- Getting error while running spark-shell on my system; pyspark is running fine
- DirectX 9 With No SDK Installed - How To Translate a D3DMATRIX?
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Cannot load modules/mod_dav_svn.so into server
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
- 32-bit applications do not display some files in Windows 10
- 'bun' is not recognized as an internal or external command
- mkssecreenshotmgr taking a screenshot
- Next js installation in windows 7 os
- Can't resize a partition using Mini Tool?
- Is there any way to set a printer as default according with Active Directory Policy Security Group and PC hostname?
- Electron Printing not working on Windows (Works on Mac)
Related Questions in WINAPI
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Changing the theme of a #32768 (menu) window class at runtime
- Issue with GetOpenFileName while debugging
- How to populate a ListBox with SendMessage?
- Is there a function to end a child process?
- HDR video publishing
- Frameless Qt + WinAPI maximized window size is bigger than the availableGeometry()
- Mount .iso file with python
- What is Win32 x86-64 CONTEXT::VectorRegister for?
- WinAPI - right mouse drag & drop and IContextMenu
- Win32 per-filesystem cache tuning?
- Client connection timeout during Android & Windows PC communication via sockets
- MessageBoxEx sometimes shows as hollow window, border only, and only on Windows 11
- Win32api send message and Pydirectinput and Powertoy (Keyboard Manager ) Not working when open the application
- Would it be possible to run an application right after csrss.exe loads? (Windows)
Related Questions in DPI
- How to Enable USB Debugging from ADB or Recovery (Mobile Not bootable)?
- Get Screen Display Size (Diagonal) in Inches
- Trying to programmatically set DPI for second screen on my Android device
- Problem with CSS on same resolution (1080p) but different displays (external monitor, laptop display) and zoom level
- C# draw in PictureBox "removes DPI scale"
- High DP scaling override winforms
- Win Api DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 - WM_GETDPISCALEDSIZE msg is not sent
- Meaning of PPI (Pixel Per Inch)
- How to get dpi of an image cropped with Python? Tesseract --dpi parameter
- Scaling issues, not sure where to begin
- Why isnt the dpi argument increasing resolution in matplotlib?
- Anaconda Navigator start widow can't resize or minimise
- Why are histograms incorrectly displayed when the distribution is tightly clustered?
- WPF Incorrect Window Size On Scaled Operating System DPI (DPI-Aware/DPI-Unaware)
- Graphics.DrawString doesn't print a text
Related Questions in PPI
- Get Screen Display Size (Diagonal) in Inches
- Meaning of PPI (Pixel Per Inch)
- Reducing the pixels-per-inch (PPI) of an image results in same file size
- Get screen's physical ppi with Delphi 10.4 in windows 10
- Is there any way to rectify stringApp communication error despite newer versions of STRING App and Cytoscape installed?
- C++ Builder 11 - TCheckBox Scales When Form Scaled is False - Work around?
- Why PPI reported by Delphi is different from the calculated one?
- How do I calculate the PPI of an image for a print area of known size?
- React-Native: Text is rendering differently in different mobile phones
- Android | Why do activity look different on two different phones with same resolution as well as same screen size?
- How to read screen information from QGuiApplication to put in qputenv environment variable?
- How to create seperate values folder for Samsung Galaxy note plus and Google Pixel XL3 in Android Studio
- Why is there two different functions GetDpiForSystem and GetDpiForWindow in WinApi?
- How to adjust to the aspect ratio for mobile browser
- How to correctly use TGridPanel when display PPI scaling is active?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Software can change the DPI Awareness setting(s) for windows created by a specific thread (using the
SetThreadDpiAwarenessContextfunction), in which case a call toGetDpiForWindowfor such windows will then give a (potentially) different value than a call toGetDpiForSystem.Further, even within a given thread (or process), one can change the DPI awareness with a call to the aforementioned function, create a new window, then revert to the previous settings and create another window. Then, those two windows will have (possibly) different DPI values from each other (depending on whether or not the executable has been built with DPI awareness enabled).