menu_controlbarview.h
来自「关于使用VC编程的代码」· C头文件 代码 · 共 81 行
H
81 行
// Menu_ControlBarView.h : interface of the CMenu_ControlBarView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MENU_CONTROLBARVIEW_H__344AF676_CE5B_460A_A74D_B72E8C030646__INCLUDED_)
#define AFX_MENU_CONTROLBARVIEW_H__344AF676_CE5B_460A_A74D_B72E8C030646__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMenu_ControlBarView : public CView
{
protected: // create from serialization only
CMenu_ControlBarView();
DECLARE_DYNCREATE(CMenu_ControlBarView)
// Attributes
public:
CMenu_ControlBarDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMenu_ControlBarView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMenu_ControlBarView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMenu_ControlBarView)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnBeginBounce();
afx_msg void OnUpdateBeginBounce(CCmdUI* pCmdUI);
afx_msg void OnTextOut();
afx_msg void OnUpdateTextOut(CCmdUI* pCmdUI);
afx_msg void OnClearText();
afx_msg void OnUpdateClearText(CCmdUI* pCmdUI);
afx_msg void OnEndBounce();
afx_msg void OnUpdateEndBounce(CCmdUI* pCmdUI);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnSpeedButton();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL m_bBounce;
CRect m_Rect;
int m_nSpeed;
CString m_strData;
BOOL m_bTextOut;
};
#ifndef _DEBUG // debug version in Menu_ControlBarView.cpp
inline CMenu_ControlBarDoc* CMenu_ControlBarView::GetDocument()
{ return (CMenu_ControlBarDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MENU_CONTROLBARVIEW_H__344AF676_CE5B_460A_A74D_B72E8C030646__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?