How to determine that I have to make round corners (or not)?

Heiko 1,291 Reputation points
2023-08-21T15:09:35.3166667+00:00

Hi,

I have an app with windows that have no title bar and no border. By default, I make round corners under Windows 11. But there are some installations where Windows 11 has not round corners. For example, the Windows 11 developer virtual machine I downloaded from Microsoft has no windows with round corners (except the app menu). In this Windows 11 installation doesn't exist the registry value HKCU\Software\Microsoft\Windows\DWM\UseWindowFrameStagingBuffer. How do I determine that I don't need to make round corners on a Windows 11 installation? I have found that DwmGetWindowAttribute() can provide the information for a specific window, but I need that information before I create a window. I tried to call DwmGetWindowAttribute() with zero as window handle, but then I encounter an exception ('invalid handle').

Developer technologies | Windows Presentation Foundation
Windows development | Windows API - Win32
Developer technologies | C++
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 90,686 Reputation points
    2023-08-21T15:16:52.87+00:00
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.