summaryrefslogtreecommitdiff
path: root/win/EdGrpDlg.cpp
blob: c1b9b19a72dc2f7148ae94e7ae7f4f849b0d8617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// EdGrpDlg.cpp : implementation file
//

#include "stdafx.h"
#include "leocad.h"
#include "EdGrpDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CEditGroupsDlg dialog


CEditGroupsDlg::CEditGroupsDlg(void* param, CWnd* pParent /*=NULL*/)
	: CDialog(CEditGroupsDlg::IDD, pParent)
{
	m_Tree.opts = (LC_GROUPEDITDLG_OPTS*)param;

	//{{AFX_DATA_INIT(CEditGroupsDlg)
	//}}AFX_DATA_INIT
}


void CEditGroupsDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CEditGroupsDlg)
	DDX_Control(pDX, IDC_TREE, m_Tree);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CEditGroupsDlg, CDialog)
	//{{AFX_MSG_MAP(CEditGroupsDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEditGroupsDlg message handlers


BOOL CEditGroupsDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();

	m_TreeImages.Create(IDB_PARTICONS, 16, 0, RGB (0,128,128));
	m_Tree.SetImageList(&m_TreeImages, TVSIL_NORMAL);

	m_Tree.DeleteAllItems();
	m_Tree.AddChildren(NULL, NULL);
	
	return TRUE;
}