#pragma once

/////////////////////////////////////////////////////////////////////////////
// CChangeMkStateDlg dialog

class CChangeMkStateDlg : public CaplResizableDialog
{
// Construction
public:
	CChangeMkStateDlg(CaplAPI *api, aplExtent &pdfs, CWnd* pParent = NULL);   // standard constructor

	CaplAPI *m_api;
	aplExtent &m_pdfs;
	std::map<CButton*, CString> m_btnToState;

	enum { IDD = IDD_CHANGE_MK_STATE };

	CaplButton m_okBtn;
	CaplButton m_cancelBtn;

	CButton m_dataInputBtn;
	CButton m_dataCheckBtn;
	CButton m_dataLimitBtn;
	CButton m_nullStateBtn;	

	void SetEnable();
	void CanChangeMkState();

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

	virtual void OnOK();
	virtual BOOL OnInitDialog();
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

	afx_msg void OnBnClickedState();	
};
