Click here to Skip to main content
15,881,882 members
Articles / Desktop Programming / MFC

Dynamic child window positioning

Rate me:
Please Sign up or sign in to vote.
4.97/5 (24 votes)
22 Feb 2000 379.8K   3.1K   97  
Describes a method to implement resizable child windows.
#if !defined(AFX_MYFORMVIEW_H__82427294_6456_11D3_802D_000000000000__INCLUDED_)
#define AFX_MYFORMVIEW_H__82427294_6456_11D3_802D_000000000000__INCLUDED_

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

#include	"../codex/cdxCDynamicFormView.h"
class CMyPropertySheet;
class CMyDialog;

/////////////////////////////////////////////////////////////////////////////
// CMyFormView form view
/////////////////////////////////////////////////////////////////////////////

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

class CMyFormView : public cdxCDynamicFormView
{
	DECLARE_DYNCREATE(CMyFormView);

private:
	CMyPropertySheet	*m_pSheet;
	CMyDialog			*m_pDlg;

protected:
	CMyFormView();           // protected constructor used by dynamic creation

// Form Data
public:
	//{{AFX_DATA(CMyFormView)
	enum { IDD = IDD_FORMVIEW };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyFormView)
	public:
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

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

	// Generated message map functions
	//{{AFX_MSG(CMyFormView)
	afx_msg void OnDialog();
	afx_msg void OnDialogModeless();
	afx_msg void OnModelessSheet();
	afx_msg void OnSheet();
	afx_msg void OnWizard();
	afx_msg void OnRoberto();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP();
	DECLARE_DYNAMIC_MAP();
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYFORMVIEW_H__82427294_6456_11D3_802D_000000000000__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
Other JP Morgan Chase
Hong Kong Hong Kong
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions