useclockview.h

来自「《Visual C++.NET MFC类库应用详解》程序实例」· C头文件 代码 · 共 63 行

H
63
字号
// UseClockView.h : CUseClockView 类的接口
//


#pragma once
#include "richtextctrl.h"
#include "clockctrl.h"


class CUseClockView : public CFormView
{
protected: // 仅从序列化创建
	CUseClockView();
	DECLARE_DYNCREATE(CUseClockView)

public:
	enum{ IDD = IDD_USECLOCK_FORM };

// 属性
public:
	CUseClockDoc* GetDocument() const;

// 操作
public:

// 重写
	public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
	virtual void OnInitialUpdate(); // 构造后第一次调用

// 实现
public:
	virtual ~CUseClockView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// 生成的消息映射函数
protected:
	DECLARE_MESSAGE_MAP()
public:
	CRichtextctrl m_RichTextCtrl;
	afx_msg void OnFileOpen();
	CClockctrl m_ClockCtrl;
	afx_msg void OnViewStarttiming();
	afx_msg void OnViewEndtiming();
	afx_msg void OnViewRemind();
	DECLARE_EVENTSINK_MAP()
	void ActiveWhenClockctrl(short hour, short min, short sec);
	void KeyPressClockctrl(short* KeyAscii);
};

#ifndef _DEBUG  // UseClockView.cpp 的调试版本
inline CUseClockDoc* CUseClockView::GetDocument() const
   { return reinterpret_cast<CUseClockDoc*>(m_pDocument); }
#endif

⌨️ 快捷键说明

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