dwm

GetWindowRect returns a size including “invisible” borders

ぐ巨炮叔叔 提交于 2019-11-26 15:24:15
I'm working on an app that positions windows on the screen in a grid style. When Running this on Windows 10, there is a huge gap between the windows. Further investigation shows that GetWindowRect is returning unexpected values, including an invisible border, but I can't get it to return the real values with the visible border. 1) This thread suggests this is by design and you can "fix" it by linking with winver=6. My environment does not allow this but I've tried changing the PE MajorOperatingSystemVersion and MajorSubsystemVersion to 6 with no affect 2) That same thread also suggests using

How do you set the glass blend colour on Windows 10?

旧城冷巷雨未停 提交于 2019-11-26 12:09:23
问题 Using the undocumented SetWindowCompositionAttribute API on Windows 10, it\'s possible to enable glass for a window. The glass is white or clear, as seen in this screenshot: However, the Windows 10 Start menu and the notification center, which both also uses glass, both blend with the accent colour, like so: How does it do it? Investigations The accent colour in the following examples is a light purple - here\'s a screenshot from the Settings app: The AccentPolicy structure defined in this

GetWindowRect returns a size including “invisible” borders

依然范特西╮ 提交于 2019-11-26 04:25:10
问题 I\'m working on an app that positions windows on the screen in a grid style. When Running this on Windows 10, there is a huge gap between the windows. Further investigation shows that GetWindowRect is returning unexpected values, including an invisible border, but I can\'t get it to return the real values with the visible border. 1) This thread suggests this is by design and you can \"fix\" it by linking with winver=6. My environment does not allow this but I\'ve tried changing the PE