summaryrefslogtreecommitdiff
path: root/hammer/strdlg.h
blob: c61e1ea28ee530a402bd53dcff87559757a35782 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//
//=============================================================================//
// StrDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CStrDlg dialog

class CStrDlg : public CDialog
{
// Construction
public:
	CStrDlg(DWORD, LPCTSTR, LPCTSTR, LPCTSTR);   // standard constructor

	enum
	{
		Spin = 0x01
	};

	int iRangeLow, iRangeHigh, iIncrement;
	DWORD dwFlags;
	CString	m_string;
	CString m_strPrompt;
	CString m_strTitle;
	CSpinButtonCtrl	m_cSpin;
	CStatic	m_cPrompt;
	CEdit	m_cEdit;

	void SetRange(int iLow, int iHigh, int iIncrement = 1);

// Dialog Data
	//{{AFX_DATA(CStrDlg)
	enum { IDD = IDD_STRINPUT };
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CStrDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CStrDlg)
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};