outputwindow.h

来自「这个也是我们的毕业设计课题」· C头文件 代码 · 共 59 行

H
59
字号
#if !defined(AFX_OUTPUTWINDOW_H__616F2C45_9817_4059_85FE_6255883E6B98__INCLUDED_)
#define AFX_OUTPUTWINDOW_H__616F2C45_9817_4059_85FE_6255883E6B98__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// OutputWindow.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// COutputWindow frame

class COutputWindow : public CMDIChildWnd
{
	DECLARE_DYNCREATE(COutputWindow)
public:
	COutputWindow();           // protected constructor used by dynamic creation

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(COutputWindow)
	public:
	//}}AFX_VIRTUAL

// Implementation
public:
	void FlushShow();//flush the output window show
	void ResetContent();//reset the show content
	void ShowState(CString strState);//uses to show the state
	virtual ~COutputWindow();

	// Generated message map functions
	//{{AFX_MSG(COutputWindow)
	afx_msg void OnClose();
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int m_nContentNum;//record the contents number
	int m_scrollRange;
	CString m_strContent[200];//used to hold the show content ,max save:200 lines
	int m_nFirstVisualPos;//the position of the first virsual line ,should <200
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_OUTPUTWINDOW_H__616F2C45_9817_4059_85FE_6255883E6B98__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?