📄 uitemplateview.h
字号:
// UITemplateView.h : interface of the CUITemplateView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_UITEMPLATEVIEW_H__692BEF54_D5AE_4363_9B13_8C8DB0F6F7CE__INCLUDED_)
#define AFX_UITEMPLATEVIEW_H__692BEF54_D5AE_4363_9B13_8C8DB0F6F7CE__INCLUDED_
#include "StdAfx.h" // Added by ClassView
#include "Afxtempl.h"
#include "CPITFileList.h"
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CUITemplateView : public CView
{
protected: // create from serialization only
CUITemplateView();
DECLARE_DYNCREATE(CUITemplateView)
// Attributes
public:
CUITemplateDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUITemplateView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
bool m_bDrawBasicBtn;//是否要画按钮
void AddBasicBtn();
void DeleteAllBmpBtn();
void AddFileItemBtn();
void PreFilePage();
void NextFilePage();
CCPITFileList * ImportFileItems();
CCPITFileList * m_pTxtFileList;
int GetCurPressBtnID(CPoint pt);
void InitControls();
void ReDrawBmpButton(int BtnIndex);
void DeleteBmpButton(int BtnIndex);
int m_nPreBtnIndex;
void AddBmpButton(int BtnID,CRect rc, int UpBmpID, int DownBmpID,CString sText=_T(""));
CArray<WIDGET_NODE,WIDGET_NODE> m_WidgetNode;
int GetCurPrsBtnIndex(CPoint pt);
virtual ~CUITemplateView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CUITemplateView)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
int m_nBtnCount;
CFont* pFont;
};
#ifndef _DEBUG // debug version in UITemplateView.cpp
inline CUITemplateDoc* CUITemplateView::GetDocument()
{ return (CUITemplateDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_UITEMPLATEVIEW_H__692BEF54_D5AE_4363_9B13_8C8DB0F6F7CE__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -