⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bank.h

📁 This companion disc contains the source code for the sample programs presented in INSIDE VISUAL C++
💻 H
字号:
#ifndef __BANK_H__
#define __BANK_H__

// Bank.h : header file
//

#define IMPLEMENT_OLECREATE2(class_name, external_name, \
  l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
  AFX_DATADEF COleObjectFactory class_name::factory(class_name::guid, \
  RUNTIME_CLASS(class_name), TRUE, _T(external_name)); \
  const AFX_DATADEF GUID class_name::guid = \
  { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } };


/////////////////////////////////////////////////////////////////////////////
// CBank command target

class CBank : public CCmdTarget
{
	DECLARE_DYNCREATE(CBank)

public:
	double m_dBalance;
	CBank();           // protected constructor used by dynamic creation

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBank)
	public:
	virtual void OnFinalRelease();
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CBank();

	// Generated message map functions
	//{{AFX_MSG(CBank)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
	DECLARE_OLECREATE(CBank)

	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(CBank)
	afx_msg double GetBalance();
	afx_msg void SetBalance(double newValue);
	afx_msg double Withdrawal(double dAount);
	afx_msg void Deposit(double dAmount);
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()
	DECLARE_INTERFACE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // __BANK_H__

⌨️ 快捷键说明

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