开发者

DWMEnableBlurBehind makes my interface controls semi transparent

开发者 https://www.devze.com 2023-01-03 00:18 出处:网络
I have enabled blur on my window. I have some edit fields and some custom controls and I would not want these to be affected by the blur, they are semi transparent as a result. How could I only blur t

I have enabled blur on my window. I have some edit fields and some custom controls and I would not want these to be affected by the blur, they are semi transparent as a result. How could I only blur the main window itself, not its child controls (sort of like C开发者_如何学编程hrome). Thanks


Black is treated as transparent since good old GDI does not support alpha channel (the alpha byte in ARGB is always 0) I'm thinking you have to do some sort of owner draw.


try to make windows style WS_CLIPCHILDREN

0

精彩评论

暂无评论...
验证码 换一张
取 消