📄 dialog~3.h
字号:
// DialogBarView.h : CDialogBarView 类的接口
//
#pragma once
class CDialogBarView : public CView
{
protected: // 仅从序列化创建
CDialogBarView();
DECLARE_DYNCREATE(CDialogBarView)
// 属性
public:
CDialogBarDoc* GetDocument() const;
COLORREF color;
// 操作
public:
// 重写
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
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);
// 实现
public:
virtual ~CDialogBarView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函数
protected:
//单击“红色”单选按钮的消息映射函数
afx_msg void OnRed();
//单击“绿色”单选按钮的消息映射函数
afx_msg void OnGreen();
//单击“黄色”单选按钮的消息映射函数
afx_msg void OnYellow();
//单击“设置背景”按钮的消息映射函数
afx_msg void OnBnClickedBackGround();
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // DialogBarView.cpp 的调试版本
inline CDialogBarDoc* CDialogBarView::GetDocument() const
{ return reinterpret_cast<CDialogBarDoc*>(m_pDocument); }
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -