CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 1999
    Posts
    66

    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

  2. #2
    Join Date
    Jul 2005
    Posts
    767

    Re: SysShadow - own class?

    I am not sure but did you try MoveWindow/SetWindowPos on WM_ENTERSIZEMOVE/WM_EXITSIZEMOVE.

  3. #3
    Join Date
    Sep 1999
    Posts
    66

    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

  4. #4
    Join Date
    Jul 2005
    Posts
    767

    Re: SysShadow - own class?

    I am sorry I cannot understand your phrase, please correct.

    I was answering to your this question
    Quote 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
  •  





Click Here to Expand Forum to Full Width

Featured