Counter Strike : Global Offensive Source Code
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.

64 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ENTITYHELPDLG_H
  8. #define ENTITYHELPDLG_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "Resource.h"
  13. class GDclass;
  14. class CRichEditCtrlEx;
  15. class CEntityHelpDlg : public CDialog
  16. {
  17. public:
  18. // Construction
  19. CEntityHelpDlg(CWnd *pwndParent = NULL);
  20. ~CEntityHelpDlg(void);
  21. //{{AFX_DATA(CEntityHelpDlg)
  22. enum { IDD = IDD_ENTITY_HELP };
  23. CRichEditCtrlEx *m_pHelpText;
  24. //}}AFX_DATA
  25. static void ShowEntityHelpDialog(void);
  26. static void SetEditGameClass(GDclass *pClass);
  27. protected:
  28. void UpdateClass(GDclass *pClass);
  29. int GetTextWidth(const char *pszText, CDC *pDC = NULL);
  30. int GetMaxVariableWidth(GDclass *pClass);
  31. void UpdateHelp(void);
  32. // ClassWizard generate virtual function overrides
  33. //{{AFX_VIRTUAL(CEntityHelpDlg)
  34. virtual void DoDataExchange(CDataExchange *pDX);
  35. //}}AFX_VIRTUAL
  36. // Generated message map functions
  37. //{{AFX_MSG(CEntityHelpDlg)
  38. virtual BOOL OnInitDialog(void);
  39. virtual void OnDestroy(void);
  40. virtual void OnClose(void);
  41. afx_msg void OnSize( UINT nType, int cx, int cy );
  42. //}}AFX_MSG
  43. GDclass *m_pClass;
  44. DECLARE_MESSAGE_MAP()
  45. };
  46. #endif // ENTITYHELPDLG_H