Click here to Skip to main content
15,886,689 members
Articles / Desktop Programming / MFC

A Doc/View Dialog, supports Dynamic Split

Rate me:
Please Sign up or sign in to vote.
3.69/5 (13 votes)
21 Aug 20031 min read 82.9K   3.1K   30  
You can arbitrarily add DOC/View, and all the view can be resized.
#if !defined(AFX_MYDOCUMENT_H__27F2DFC9_D6E6_4038_B1B0_F281EF82C5B3__INCLUDED_)
#define AFX_MYDOCUMENT_H__27F2DFC9_D6E6_4038_B1B0_F281EF82C5B3__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CMyDocument document
class CVwindlgDlg;

class CMyDocument : public CDocument
{
	friend class CVwindlgDlg;
public:
	CMyDocument();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CMyDocument)
	
	CPoint m_point1,m_point2;
// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyDocument)
	public:
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
	protected:
	virtual BOOL OnNewDocument();
	//}}AFX_VIRTUAL

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

	// Generated message map functions
protected:
	//{{AFX_MSG(CMyDocument)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYDOCUMENT_H__27F2DFC9_D6E6_4038_B1B0_F281EF82C5B3__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
Systems Engineer huawei
China China
I do I want to do,and you?

Comments and Discussions