Click here to Skip to main content
15,896,730 members
Articles / Desktop Programming / MFC

Programming Toolbar Chevrons

Rate me:
Please Sign up or sign in to vote.
4.87/5 (18 votes)
8 May 2003 425.8K   6.4K   150  
An introduction to using the cool new toolbar chevrons
#if !defined(AFX_MAINFRM_H__ADA7D7EA_E2C1_11D3_84C7_0080450EA020__INCLUDED_)
#define AFX_MAINFRM_H__ADA7D7EA_E2C1_11D3_84C7_0080450EA020__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ChevBar.h"

class CMainFrame : public CFrameWnd
{
	
protected:
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)


public:

	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

	// Sample toolbars :-)
	CToolBar    m_wndToolBar, m_wndToolBar1;

	// Our chevbar that knows how to handle chevrons when it has a toolbar
	CChevBar      m_wndReBar;

protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
#endif // !defined(AFX_MAINFRM_H__ADA7D7EA_E2C1_11D3_84C7_0080450EA020__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions