#if !defined(AFX_FINDPKIDLG_H__68AD20CC_A8D5_458D_A715_C6D45A627267__INCLUDED_)
#define AFX_FINDPKIDLG_H__68AD20CC_A8D5_458D_A715_C6D45A627267__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CFindPKIDlg dialog
#include "apl_api.h"
#include "apl_gui.h"
#include "resource.h"


#define APL_SELECT_PDF		1
#define APL_SELECT_PRDINST	2

class CFindPKIDlg : public CaplResizableDialog
{
// Construction
public:
	CaplAPI*	m_api;
	CaplInstance*	m_Selected;
	bool	m_bFindExecute;//Выполнить поиск
	bool	m_bIfOneSelect;
	aplStringBindMode	m_BindMode;
	
	CFindPKIDlg(CWnd* pParent = NULL);   // standard constructor
	UINT		m_SelectMode;

// Dialog Data
	//{{AFX_DATA(CFindPKIDlg)
	enum { IDD = IDD_FIND_PKI_DLG };
	CaplButton	m_ok_btn;
	CaplButton	m_cancel_btn;
	CSortListCtrl	m_ListCtrl;
	CString	m_sId;
	//}}AFX_DATA


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

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

	// Generated message map functions
	//{{AFX_MSG(CFindPKIDlg)
	afx_msg void OnShowBtn();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_FINDPKIDLG_H__68AD20CC_A8D5_458D_A715_C6D45A627267__INCLUDED_)
