#if !defined(AFX_CHARACTGROUPDLG_H__C5166AC2_5A22_484D_A8D0_5812CB3D7217__INCLUDED_)
#define AFX_CHARACTGROUPDLG_H__C5166AC2_5A22_484D_A8D0_5812CB3D7217__INCLUDED_

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

#include "resource.h"
#include <apl_gui.h>
#include "ResizableDialog.h" 
#include "apl_api.h"

/////////////////////////////////////////////////////////////////////////////
// CCharactGroupDlg dialog

class CCharactGroupDlg : public CResizableDialog
{
// Construction
public:
	CCharactGroupDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CCharactGroupDlg)
	enum { IDD = IDD_CHARACTERYSTIC_GROUP };
	CButton	m_choose_group_btn;
	CEdit	m_char_group;
	CaplButton	m_save_to_file;
	CStatic	m_tbl_rect;
	CaplButton	m_ok_btn;
	CaplButton	m_cancel_btn;
	CSortListCtrl	m_aggr_val;
	//}}AFX_DATA
	bool m_ReadOnly;
	bool m_no_del_val_if_selchange;
	CString m_group_name;

	CaplAPI *m_api;

	CaplInstance *m_item;
	CaplInstance *m_group;
	CaplInstance *m_union_def;
	aplExtent m_ext_val;

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

// Implementation
protected:
	CBitmap m_logo_bmp,m_name_bmp;
	void PrintValue(CaplInstance *val);
	void UpdateCharacteristicList();

	// Generated message map functions
	//{{AFX_MSG(CCharactGroupDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnSaveToFile();
	afx_msg void OnDblclkList2(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnChooseGroup();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_CHARACTGROUPDLG_H__C5166AC2_5A22_484D_A8D0_5812CB3D7217__INCLUDED_)
