📄 myview.h
字号:
#pragma once
// CMyView 视图
#include "mypanel.h"
class CMyView : public CScrollView
{
DECLARE_DYNCREATE(CMyView)
public:
CMyView();
CMyView(HWND,int,int);
virtual ~CMyView();
protected:
CMyPanel* m_pMyPanel[16];
int m_Width,m_Height;
int m_PanelPos[16];
int m_PanelCount;
HWND m_hMaster;
protected:
void ScalePanel();
public:
int AddPanel(int,LPCTSTR tip[],int,int);
void ResizeView(int,int,int,int);
public:
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
virtual void OnDraw(CDC* pDC); // 重写以绘制此视图
virtual void OnInitialUpdate(); // 构造后的第一次
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnDestroy();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
protected:
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -