WindowChrome for shell integration with Drop Shadow

I searched this a lot, but did not find any working solution. I use the Shell integration library for the Chrome Chrome special window, and I also need shadows for this window. Some say setting GlassFrameThickness to -1 does the trick, but doesn't work for me. And Jeremiah Morrill suggested using DwmExtendFrameIntoClientArea. Ive tried this and it works, sort of. The shadows look fine, but when the window is displayed, it first appears as a glass frame, and then after a second the real content is superimposed. It causes a lot of flickering for me. Is there a way to get rid of this flicker, or is there a better way to use only the shell integration library?

+3
source share
2 answers

I had a similar problem when it did not display shadow when using custom chrome. It worked great when using glass.

I got the shadow by setting GlassFrameThickness="0,0,0,1". Glass did not show, and I got a shadow.

Be careful, shadow is a simple RECT for Windows, so if you have funky chrome with transparencies, it might seem funny.

Also, if you maintain a maximized state, you need to set the margin on the top-level panel element "8,8,8,8"in maximization mode. All other modes should be "0,0,0,0".

In alimbada, WindowStylethe default value is not specified on custom chrome.

+7
source

DwmExtendFrameIntoClientArea, Window . ( ), (0,0,0,1), , . Aero, (8,8,8,8) , , , . .

, -1, , . , , . , , ( , , - ), , , . , , , , - DispatchTimer Priority=Loaded. .

+3

All Articles