home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / mslang / ttips2 / popuptip.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-13  |  1.2 KB  |  53 lines

  1. // popuptip.h : header file
  2. //
  3. #ifndef     _POPUPTIP
  4. #define     _POPUPTIP
  5.  
  6. // Comment the next line to leave out 3D stuff (saves a tiny bit of memory)
  7. #define STYLE3D
  8.  
  9. // UnComment the next line to use the system colors rather than yellow/black
  10. // for the popup tips window
  11.  
  12. //#define USE_APPWORKSPACE_COLORS
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CPopupTip frame
  16.  
  17. class CPopupTip : public CWnd
  18. {
  19.  
  20. public:
  21.     CPopupTip(CString &strClass);   
  22.     virtual ~CPopupTip();
  23.     BOOL PopItUp (POINT pt, UINT bNewStyle);
  24.     UINT m_nStyleFlag;
  25.    
  26. // Attributes
  27. public:
  28.     CFont *m_pFont;
  29.     CString m_strDisplay;      
  30.     CString m_strClass;
  31.  
  32. // Operations
  33. public:
  34.     virtual BOOL PreCreateWindow( CREATESTRUCT& cs );
  35.     void SetDisplay(const CString &strDisplay);
  36.     void SetFont(CFont *pFont) {m_pFont = pFont; };
  37.  
  38. // Implementation
  39. protected:
  40.     virtual void PostNcDestroy( );
  41. #if defined(STYLE3D)
  42.     void Draw3DFrame(CDC* pDC, CRect& rcFrame);
  43. #endif    
  44.     // Generated message map functions
  45.     //{{AFX_MSG(CpopupWnd)
  46.     afx_msg void OnPaint();
  47.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  48.     //}}AFX_MSG
  49.     DECLARE_MESSAGE_MAP()
  50. };
  51. /////////////////////////////////////////////////////////////////////////////
  52. #endif
  53.