Click here to Skip to main content
15,892,697 members
Articles / Desktop Programming / MFC

Outlookbar-style menu interface

Rate me:
Please Sign up or sign in to vote.
4.84/5 (57 votes)
22 Jul 20035 min read 202.7K   9.5K   132  
A control bar outlook-style that integrates with the standard menu command's framework.
// ChildView.h : interface of the CChildView class
//


#pragma once


// CChildView window

class CChildView : public CWnd
{
// Construction
public:
	CChildView();

// Attributes
public:
	int iCategory, iView;
	DWORD dwField;

// Operations
public:

// Overrides
	protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

// Implementation
public:
	virtual ~CChildView();

	// Generated message map functions
protected:
	afx_msg void OnPaint();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnCategoriesFriend();
	afx_msg void OnUpdateCategoriesFriend(CCmdUI *pCmdUI);
	afx_msg void OnCategoriesPrivate();
	afx_msg void OnUpdateCategoriesPrivate(CCmdUI *pCmdUI);
	afx_msg void OnCategoriesWork();
	afx_msg void OnUpdateCategoriesWork(CCmdUI *pCmdUI);
	afx_msg void OnFieldsAddress();
	afx_msg void OnUpdateFieldsAddress(CCmdUI *pCmdUI);
	afx_msg void OnFieldsName();
	afx_msg void OnUpdateFieldsName(CCmdUI *pCmdUI);
	afx_msg void OnFieldsPhone();
	afx_msg void OnUpdateFieldsPhone(CCmdUI *pCmdUI);
	afx_msg void OnTestCreatenewcontact();
	afx_msg void OnTestImportcontact();
	afx_msg void OnViewCards();
	afx_msg void OnViewGrid();
	afx_msg void OnViewList();
	afx_msg void OnUpdateViewList(CCmdUI *pCmdUI);
	afx_msg void OnUpdateViewCards(CCmdUI *pCmdUI);
	afx_msg void OnUpdateViewGrid(CCmdUI *pCmdUI);
};

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
Web Developer
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions