#if !defined(AFX_WFSHISTORYDLG_H__FC302EBA_9BA6_46CA_B42F_8ECB7C6A0A5D__INCLUDED_)
#define AFX_WFSHISTORYDLG_H__FC302EBA_9BA6_46CA_B42F_8ECB7C6A0A5D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WFSHistoryDlg.h : header file
//
#include "apl_gui.h"
#include "apl_api.h"	// Added by ClassView
#include "resource.h"
/////////////////////////////////////////////////////////////////////////////
// CWFSHistoryDlg dialog

class CWFSHistoryDlg : public CaplResizableDialog
{
	class ItemData
	{
	public:
		CaplAPI *m_api;
		bool dec;
	};
// Construction
public:
	static int CALLBACK CompareItems(LPARAM lp1, LPARAM lp2, LPARAM lp);
	CaplInstance *m_inst;
	CaplAPI *m_api;
	bool LoadData();
	CWFSHistoryDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CWFSHistoryDlg)
	enum { IDD = IDD_WFS_HISTORY_DLG };
	CaplButton	m_ok_btn;
	CListCtrl	m_list_ctrl;
	//}}AFX_DATA


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

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

	bool m_sort_dec;

	// Generated message map functions
	//{{AFX_MSG(CWFSHistoryDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnColumnclickWfshList(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_WFSHISTORYDLG_H__FC302EBA_9BA6_46CA_B42F_8ECB7C6A0A5D__INCLUDED_)
