Team Fortress 2 Source Code as on 22/4/2020
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.

57 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // StrDlg.h : header file
  9. //
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CStrDlg dialog
  12. class CStrDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CStrDlg(DWORD, LPCTSTR, LPCTSTR, LPCTSTR); // standard constructor
  17. enum
  18. {
  19. Spin = 0x01
  20. };
  21. int iRangeLow, iRangeHigh, iIncrement;
  22. DWORD dwFlags;
  23. CString m_string;
  24. CString m_strPrompt;
  25. CString m_strTitle;
  26. CSpinButtonCtrl m_cSpin;
  27. CStatic m_cPrompt;
  28. CEdit m_cEdit;
  29. void SetRange(int iLow, int iHigh, int iIncrement = 1);
  30. // Dialog Data
  31. //{{AFX_DATA(CStrDlg)
  32. enum { IDD = IDD_STRINPUT };
  33. //}}AFX_DATA
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CStrDlg)
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. protected:
  42. // Generated message map functions
  43. //{{AFX_MSG(CStrDlg)
  44. virtual BOOL OnInitDialog();
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. };