borderbar.h

来自「《MFC经典问答》pdf格式 拿出来大家共享一下」· C头文件 代码 · 共 53 行

H
53
字号
#pragma once

// BorderBar.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CBorderBar window

class CBorderBar : public CControlBar
{
// Construction
public:
	CBorderBar();

// Attributes
public:

// Operations
public:
	BOOL Create(	CWnd* pParentWnd, DWORD dwStyle,
					UINT nIDBar, UINT nIDBitmap );

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

// Implementation
public:
	virtual ~CBorderBar();

protected:
	virtual CSize CalcFixedLayout(BOOL bStretch, BOOL bHorz);
	void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);

protected:
	enum { WIDTH = 10, HEIGHT = 10 };
	int	m_nPosition;
	CBitmap m_Bitmap;

	// Generated message map functions
protected:
	//{{AFX_MSG(CBorderBar)
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

⌨️ 快捷键说明

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