mybar.h

来自「Visual C++下的界面设计」· C头文件 代码 · 共 57 行

H
57
字号
#if !defined(MYBAR_H_INCLUDED)
#define MYBAR_H_INCLUDED

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// mybar.h : header file
//

#include <afxole.h>
#include "sizecbar.h"
/////////////////////////////////////////////////////////////////////////////
// CMyBar window

class CMyBar : public CSizingControlBar
{
// Construction
public:
    CMyBar();

// Attributes
public:
protected:
    CButton m_wndButton;
    CFont   m_font;

// Overridables
    virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);

// Operations
public:

// Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CMyBar)
    //}}AFX_VIRTUAL

// Implementation
public:
    virtual ~CMyBar();

    // Generated message map functions
protected:
    //{{AFX_MSG(CMyBar)
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
    afx_msg void OnSize(UINT nType, int cx, int cy);
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYBAR_H__3FE34D81_820A_11D1_88BD_AE3AF0BB8026__INCLUDED_)

⌨️ 快捷键说明

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