ctoobardemoview.h

来自「精通MFC原书的所有代码打包成5个文件(由于一共太大,多次上传都失败了),这里是」· C头文件 代码 · 共 69 行

H
69
字号
// CToobarDemoView.h : interface of the CCToobarDemoView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CTOOBARDEMOVIEW_H__DA349BC4_8002_4C2F_90AF_6B611DF14901__INCLUDED_)
#define AFX_CTOOBARDEMOVIEW_H__DA349BC4_8002_4C2F_90AF_6B611DF14901__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CCToobarDemoView : public CView
{
protected: // create from serialization only
	CCToobarDemoView();
	DECLARE_DYNCREATE(CCToobarDemoView)

// Attributes
public:
	CCToobarDemoDoc* GetDocument();
	afx_msg void OnSelchangeCombo();//响应CBN_SELCHANGE消息的函数

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCToobarDemoView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CCToobarDemoView)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in CToobarDemoView.cpp
inline CCToobarDemoDoc* CCToobarDemoView::GetDocument()
   { return (CCToobarDemoDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_CTOOBARDEMOVIEW_H__DA349BC4_8002_4C2F_90AF_6B611DF14901__INCLUDED_)

⌨️ 快捷键说明

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