#if !defined(AFX_PANELHOLDERDLG_H__4AB06E0F_286E_4925_8A5A_F31D58C2E943__INCLUDED_)
#define AFX_PANELHOLDERDLG_H__4AB06E0F_286E_4925_8A5A_F31D58C2E943__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PanelHolderDlg.h : header file
//
#include"PanelDlg.h"
#define MAXPANELS 32

/////////////////////////////////////////////////////////////////////////////
// CPanelHolderDlg dialog

class CPanelHolderDlg : public CDialog
{
// Construction
public:
	CPanelHolderDlg(UINT  nIDTemplate,CWnd* pParent = NULL);   // standard constructor
	void AddPanel(CPanelDlg *dlg);
// Dialog Data
	//{{AFX_DATA(CPanelHolderDlg)
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPanelHolderDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);

	//}}AFX_VIRTUAL

// Implementation
protected:
	CPanelDlg *DlgList[MAXPANELS];
	int PanelCount;
	enum LayOutMode {PDL_FIXHOR,PDL_FIXVERT};
	LayOutMode LMode;

	// Generated message map functions
	//{{AFX_MSG(CPanelHolderDlg)
		// NOTE: the ClassWizard will add 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_PANELHOLDERDLG_H__4AB06E0F_286E_4925_8A5A_F31D58C2E943__INCLUDED_)
