|
-
July 11th, 2006, 03:03 AM
#1
SysShadow - own class?
Hi all,
For _WIN32_WINNT >= 0x0501 in a dilog class if you add the code:
SetClassLong(m_hWnd, GCL_STYLE, GetClassLong(m_hWnd, GCL_STYLE) | CS_DROPSHADOW);
in OnCreate you'll obtain a beautifull shadow (SysShadow) to your dialog. Looking with Spy++ you can see that windows used a layered
window (WS_EX_LAYERED) class name "SysShadow" and the prevous window is allways your dialog.
OK, this works only if the flag "show shadow under menus" in display properties is on. Well I want my dilog NOT depend on this flag and I
want to write my own SysShadow window.
Knows anyone how it works? Whats the idea of this? The sysshadow moves correctly with the dialog simultaneous, without the least delay.
Thats great, but how windows put it toghether???
Thanks a lot in advance for any idea!
Regards,
Emil
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|