There is in MSDN :
How to determine that I have to make round corners (or not)?
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').