summaryrefslogtreecommitdiff
path: root/hammer/processwnd.h
blob: 618dc6dc3f655cefe17d23657cc3e6d8aab018cf (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
58
59
60
61
62
63
64
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//
//=============================================================================//
// ProcessWnd.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CProcessWnd window

class CProcessWnd : public CWnd
{
// Construction
public:
	CProcessWnd();

// Attributes
public:
	// pipes:
	char *pEditBuf;
	UINT uBufLen;

	CEdit Edit;
	CFont Font;

// Operations
public:
	int Execute(LPCTSTR pszCmd, LPCTSTR pszCmdLine);
	int Execute(PRINTF_FORMAT_STRING LPCTSTR pszCmd, ...);

	void Clear();
	void Append(CString str);
	void GetReady();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CProcessWnd)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CProcessWnd();

	// Generated message map functions
protected:

	BOOL PreTranslateMessage(MSG* pMsg);

	CString m_EditText;
	CButton m_btnCopyAll;

	//{{AFX_MSG(CProcessWnd)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void CProcessWnd::OnCopyAll();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////