Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

  1. //
  2. // cuishadw.h
  3. // = UI object library - define UIShadow class =
  4. //
  5. #ifndef CUISHADW_H
  6. #define CUISHADW_H
  7. #include "cuiobj.h"
  8. #include "cuiwnd.h"
  9. //
  10. // CUIFShadow
  11. // = shadow window class =
  12. //
  13. class CUIFShadow : public CUIFWindow
  14. {
  15. public:
  16. CUIFShadow( HINSTANCE hInst, DWORD dwStyle, CUIFWindow *pWndOwner );
  17. virtual ~CUIFShadow( void );
  18. //
  19. // CUIFObject methods
  20. //
  21. virtual CUIFObject *Initialize( void );
  22. virtual DWORD GetWndStyleEx( void );
  23. virtual void OnCreate( HWND hWnd );
  24. virtual void OnPaint( HDC hDC );
  25. virtual void Show( BOOL fShow );
  26. virtual LRESULT OnSettingChange( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
  27. virtual LRESULT OnWindowPosChanging(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  28. //
  29. //
  30. //
  31. void OnOwnerWndMoved( BOOL fResized );
  32. void GetShift( SIZE *psize );
  33. protected:
  34. CUIFWindow *m_pWndOwner;
  35. COLORREF m_color;
  36. int m_iGradWidth;
  37. int m_iAlpha;
  38. SIZE m_sizeShift;
  39. BOOL m_fGradient;
  40. void InitSettings( void );
  41. void AdjustWindowPos( void );
  42. void InitShadow( void );
  43. };
  44. #endif /* CUISHADW_H */