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

Create a Universal Document Template which supports Dynamic Frame Window Layout

Rate me:
Please Sign up or sign in to vote.
3.00/5 (8 votes)
14 Dec 20024 min read 49.4K   668   24  
Introduce a programming technology to design a very complex, rich document type.
// MainFrm.h : interface of the CMainFrame class
//

#include "VisualFrameWorkControlBar.h"

#pragma once

class CMainFrame : public CMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();

// Attributes
public:
	//new variable for docking control bar
	int m_nDockBarBase;
	CVisualFrameWorkControlBar   m_wndSystemBar;
	CObArray    m_DockingWndArray;
	CTangramDoc* m_pDoc;
	//------------------------------------
	CTangramManager* m_pObj;

// Operations
public:

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

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;

// Generated message map functions
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnClose();
	//new function for docking control bar
	void OnToolsViewUserControlbar (UINT id);
	void OnUpdateToolsViewUserControlbar (CCmdUI* pCmdUI);
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnSystemBar();
	afx_msg void OnUpdateViewSystembar(CCmdUI *pCmdUI);
	afx_msg void OnDocProperty();
};


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

Comments and Discussions