infoview.h

来自「简单的远程控制工具,分为服务器与客户斋,让你了解socket编程的知识.」· C头文件 代码 · 共 77 行

H
77
字号
#if !defined(AFX_INFOVIEW_H__12146CE6_3937_11D4_9F84_8F31438FCE2A__INCLUDED_)
#define AFX_INFOVIEW_H__12146CE6_3937_11D4_9F84_8F31438FCE2A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// InfoView.h : header file
//
#define FILE_FORMAT	0
#define REG_FORMAT	1
#define INFO_FORMAT	2

/////////////////////////////////////////////////////////////////////////////
// CInfoView view
class Ctrl_Clnt9Doc;

class CInfoView : public CCJListView
{
protected:
	CInfoView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CInfoView)

// Attributes
public:

private:
	CListCtrl*	m_pListCtrl;
	CImageList	m_ImageList;
	CImageList	m_ImageListNormal;
	CFont		m_Font;
	CStatic		m_Caption;
	int		m_nIndex;

	int		m_nFormat;

// Operations
public:
	void Insert_Column (int nCols, int nWidth, CString strText);
	void Insert_Item (int nRows, int nSubItem, CString strText);
	void Display_Message (LPCTSTR lpText);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CInfoView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CInfoView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CInfoView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnInfoDelall();
	afx_msg void OnInfoDelitem();
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_INFOVIEW_H__12146CE6_3937_11D4_9F84_8F31438FCE2A__INCLUDED_)

⌨️ 快捷键说明

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