////////////////////////////////////////////////////
//      //
// .                                        //
// ---------------------------------------------- //
//                          //
////////////////////////////////////////////////////

#if !defined(AFX_SAMPLEPDXDLG_H__70F269EE_19A2_4DCD_9EBD_E8EA6582CE05__INCLUDED_)
#define AFX_SAMPLEPDXDLG_H__70F269EE_19A2_4DCD_9EBD_E8EA6582CE05__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CSamplePDXDlg dialog

class CSamplePDXDlg : public CDialog
{
// Construction
public:
	CSamplePDXDlg(CWnd* pParent = NULL);	// standard constructor
		
	// Dialog Data
	//{{AFX_DATA(CSamplePDXDlg)
	enum { IDD = IDD_SAMPLEPDX_DIALOG };
	CButton	WriteData;
	CComboBox	NumberOfForm;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON			m_hIcon;
	CListCtrl		list;
	CButton			bEnable;
	IPDX51Ptr		fPDX;
	long			nFields;

	BOOL			GetRecord ();
	void			UpdateForm();

	// Generated message map functions
	//{{AFX_MSG(CSamplePDXDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnShowProperties();
	virtual void OnOK();
	afx_msg void OnClose();
	afx_msg void OnReadData();
	afx_msg void OnEnable();
	afx_msg void OnWritedata();
	afx_msg void OnSelchangeNumberofform();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SAMPLEPDXDLG_H__70F269EE_19A2_4DCD_9EBD_E8EA6582CE05__INCLUDED_)
