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.

77 lines
2.0 KiB

  1. //
  2. // cuitip.h
  3. // = UI object library - define UIToolTip class =
  4. //
  5. #ifndef CUITIP_H
  6. #define CUITIP_H
  7. #include "cuiobj.h"
  8. #include "cuiwnd.h"
  9. //
  10. // CUIFToolTip
  11. // = UI tooltip window class =
  12. //
  13. class CUIFToolTip : public CUIFWindow
  14. {
  15. public:
  16. CUIFToolTip( HINSTANCE hInst, DWORD dwStyle, CUIFWindow *pWndOwner );
  17. virtual ~CUIFToolTip( void );
  18. //
  19. // CUIFObject methods
  20. //
  21. virtual CUIFObject *Initialize( void );
  22. virtual void OnPaint( HDC hDC );
  23. virtual void OnTimer( UINT uiTimerID );
  24. virtual void Enable( BOOL fEnable );
  25. //
  26. //
  27. //
  28. // LRESULT AddTool( CUIFObject *pUIObj );
  29. // LRESULT DelTool( CUIFObject *pUIObj );
  30. LRESULT GetDelayTime( DWORD dwDuration );
  31. LRESULT GetMargin( RECT *prc );
  32. LRESULT GetMaxTipWidth( void );
  33. LRESULT GetTipBkColor( void );
  34. LRESULT GetTipTextColor( void );
  35. LRESULT RelayEvent( MSG *pmsg );
  36. LRESULT Pop( void );
  37. LRESULT SetDelayTime( DWORD dwDuration, INT iTime );
  38. LRESULT SetMargin( RECT *prc );
  39. LRESULT SetMaxTipWidth( INT iWidth );
  40. LRESULT SetTipBkColor( COLORREF col );
  41. LRESULT SetTipTextColor( COLORREF col );
  42. CUIFObject *GetCurrentObj() {return m_pObjCur;}
  43. void ClearCurrentObj() {m_pObjCur = NULL;}
  44. BOOL IsBeingShown() {return m_fBeingShown;}
  45. protected:
  46. CUIFWindow *m_pWndOwner;
  47. CUIFObject *m_pObjCur;
  48. LPWSTR m_pwchToolTip;
  49. BOOL m_fBeingShown;
  50. BOOL m_fIgnore;
  51. INT m_iDelayAutoPop;
  52. INT m_iDelayInitial;
  53. INT m_iDelayReshow;
  54. RECT m_rcMargin;
  55. INT m_iMaxTipWidth;
  56. BOOL m_fColBack;
  57. BOOL m_fColText;
  58. COLORREF m_colBack;
  59. COLORREF m_colText;
  60. CUIFObject *FindObject( HWND hWnd, POINT pt );
  61. void ShowTip( void );
  62. void HideTip( void );
  63. void GetTipWindowSize( SIZE *psize );
  64. void GetTipWindowRect( RECT *prc, SIZE size, RECT *prcExclude);
  65. };
  66. #endif /* CUITIP_H */