📄 fortune3.h
字号:
#ifndef FORTUNE_H
#define FORTUNE_H
// Get needed include files
#include "IFortune.h"
#include "IQuote.h"
class ComFortuneTeller : public CCmdTarget
{
public:
// Constructor and destructor
ComFortuneTeller();
virtual ~ComFortuneTeller();
protected:
// IFortuneTeller members
BEGIN_INTERFACE_PART(CInnerFortune, IFortuneTeller)
STDMETHOD(GetFortune)(PBSTR);
END_INTERFACE_PART(CInnerFortune)
// IQuotation members
BEGIN_INTERFACE_PART(CInnerQuote, IQuotation)
STDMETHOD(GetQuotation)(PBSTR, PBSTR);
END_INTERFACE_PART(CInnerQuote)
DECLARE_INTERFACE_MAP()
DECLARE_OLECREATE(ComFortuneTeller)
DECLARE_DYNCREATE(ComFortuneTeller)
};
typedef ComFortuneTeller* PComFortuneTeller;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -