#if !defined(AFX_SUBSCRIPTIONDLG_H__89DA9D2E_23DC_4F87_9668_CC8E85DE77C5__INCLUDED_)
#define AFX_SUBSCRIPTIONDLG_H__89DA9D2E_23DC_4F87_9668_CC8E85DE77C5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SubscriptionDlg.h : header file
//
class CaplNetStepData;
class CaplMessageManager;
#include <apl_gui.h>
#include <apl_api.h>	
// Added by ClassView
/////////////////////////////////////////////////////////////////////////////
// CSubscriptionDlg dialog

class CSubscriptionDlg : public CaplResizableDialog
{
// Construction
public:
	CaplAPI *m_api;
	bool ShowSbscrList();
	CSubscriptionDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSubscriptionDlg)
	enum { IDD = IDD_SUBSCRIPTION_LIST_DIALOG };
	CaplButton	m_okBtn;
	CaplButton	m_cancelBtn;
	CaplButton	m_deleteBtn;
	CaplButton	m_addBtn;
	CSortListCtrl	m_list;
	//}}AFX_DATA

	aplExtent m_subscr_items;
	aplExtent m_new_items;
	aplExtent m_del_items;
	
	CaplInstance* m_curItem;	
	int m_index;

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

// Implementation
protected:
	// предотвращаем потерю модальности после диалога с бочками из aplSocketTransport
	CaplParentWndProcesser m_pwp;

	// Generated message map functions
	//{{AFX_MSG(CSubscriptionDlg)
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnItemchangedSubscrList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnAddSubscr();
	afx_msg void OnDeleteSubscr();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SUBSCRIPTIONDLG_H__89DA9D2E_23DC_4F87_9668_CC8E85DE77C5__INCLUDED_)
