Click here to Skip to main content
15,895,777 members
Articles / Desktop Programming / MFC

SDI with split window

Rate me:
Please Sign up or sign in to vote.
4.85/5 (67 votes)
1 Jan 2007CPOL7 min read 330.8K   4.4K   106  
Create an SDI with split window without all the extra garbage of the Doc/View architecture.
#pragma once



// CFormLeft form view

class CFormLeft : public CFormView
{
	DECLARE_DYNCREATE(CFormLeft)

protected:
	CFormLeft();           // protected constructor used by dynamic creation
	virtual ~CFormLeft();

public:
	enum { IDD = IDD_FORM_LEFT };
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

protected:
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
	CWnd* m_target;
public:
	void SetTarget(CWnd* m_cwnd);
};


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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
I am a contract developer of windows based software written in C++.

Comments and Discussions