开发者

How to create a window with DropDownShadow like Sticky Notes in Win 7?

开发者 https://www.devze.com 2022-12-29 05:36 出处:网络
How can I create开发者_运维知识库 a Win32 window like Sticky Note in Windows 7 which has no border but has drop down shadow effect?

How can I create开发者_运维知识库 a Win32 window like Sticky Note in Windows 7 which has no border but has drop down shadow effect?

I have tried to create a Win32 window without borders (remove ~WS_BORDER), but the drop down effect shadow is gone.

Any idea?

Best regards, Zach@Shine


Apply the CS_DROPSHADOW window class (You can apply with SetClassLongPtr/GCL_STYLE at runtime iirc)


I think you could do this in C# WinForms without too much trouble. You can set the form's border style to none, do some transparency mask tricks for both graphics and hit-tests.

I've done transparency & hit-test masks, and I've done no-border form windows, but I haven't done both together.

0

精彩评论

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

关注公众号