ToolTipWnd.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #if !defined(AFX_TOOLTIPWND_H__93C6AAC8_0090_11D3_8573_004095812ACC__INCLUDED_)
  13. #define AFX_TOOLTIPWND_H__93C6AAC8_0090_11D3_8573_004095812ACC__INCLUDED_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // ToolTipWnd.h : header file
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CToolTipWnd window
  21. class CToolTipWnd : public CWnd
  22. {
  23. // Construction
  24. public:
  25. CToolTipWnd();
  26. // Attributes
  27. public:
  28. POINT m_ptMouse;
  29. BOOL m_bManualControl;
  30. PIX m_pixManualX;
  31. PIX m_pixManualY;
  32. CTString m_strText;
  33. CTString GetLine( INDEX iLine);
  34. INDEX GetLinesCount( void);
  35. void ObtainTextSize(PIX &pixMaxWidth, PIX &pixMaxHeight);
  36. void SetupWindowSizeAndPosition(void);
  37. void ManualUpdate( void);
  38. void ManualOff(void);
  39. // Operations
  40. public:
  41. // Overrides
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(CToolTipWnd)
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. public:
  47. virtual ~CToolTipWnd();
  48. // Generated message map functions
  49. protected:
  50. //{{AFX_MSG(CToolTipWnd)
  51. afx_msg void OnPaint();
  52. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  53. afx_msg void OnSetFocus(CWnd* pOldWnd);
  54. afx_msg void OnTimer(UINT nIDEvent);
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. /////////////////////////////////////////////////////////////////////////////
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_TOOLTIPWND_H__93C6AAC8_0090_11D3_8573_004095812ACC__INCLUDED_)