-
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
-
July 11th, 2006, 03:35 AM
#2
Re: SysShadow - own class?
I am not sure but did you try MoveWindow/SetWindowPos on WM_ENTERSIZEMOVE/WM_EXITSIZEMOVE.
-
July 11th, 2006, 03:46 AM
#3
Re: SysShadow - own class?
I don't understand what you mean. If I understand how sysshadow works, the dilog don't know its own shadow, but the shadow knows the dilog (event the dialog has a unregular region). So how observs the shadow the dilog and how it moves with the dialog, not after?
Thanks,
Emil
-
July 11th, 2006, 03:54 AM
#4
Re: SysShadow - own class?
I am sorry I cannot understand your phrase, please correct.
I was answering to your this question
Originally Posted by guitz
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???
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
|