root/trunk/ThemesPage.cpp

Revision 5, 1.6 kB (checked in by qbert, 6 years ago)

Initial ( and last :( ) commit

Line 
1 // ThemesPage.cpp : implementation file
2 //
3
4 #include "stdafx.h"
5 #include "Elephant.h"
6 #include "ThemesPage.h"
7
8 #ifdef _DEBUG
9 #define new DEBUG_NEW
10 #undef THIS_FILE
11 static char THIS_FILE[] = __FILE__;
12 #endif
13
14 /////////////////////////////////////////////////////////////////////////////
15 // CThemesPage dialog
16
17
18 CThemesPage::CThemesPage(CWnd* pParent /*=NULL*/)
19 {
20     //{{AFX_DATA_INIT(CThemesPage)
21         // NOTE: the ClassWizard will add member initialization here
22     //}}AFX_DATA_INIT
23 }
24
25
26 void CThemesPage::DoDataExchange(CDataExchange* pDX)
27 {
28     CDialog::DoDataExchange(pDX);
29     //{{AFX_DATA_MAP(CThemesPage)
30     DDX_Control(pDX, IDC_BUTTON3, m_activateTheme);
31     DDX_Control(pDX, IDC_BUTTON2, m_saveAsTheme);
32     DDX_Control(pDX, IDC_LIST1, m_listCtrl);
33     //}}AFX_DATA_MAP
34 }
35
36
37 BEGIN_MESSAGE_MAP(CThemesPage, CDialog)
38     //{{AFX_MSG_MAP(CThemesPage)   
39     ON_BN_CLICKED(IDC_BUTTON3, OnActivateTheme)
40     ON_BN_CLICKED(IDC_BUTTON2, OnSaveAsTheme)
41     //}}AFX_MSG_MAP
42 END_MESSAGE_MAP()
43
44 /////////////////////////////////////////////////////////////////////////////
45 // CThemesPage message handlers
46
47 BOOL CThemesPage::OnInitDialog()
48 {
49     CDialog::OnInitDialog();
50    
51
52     SetupButton(&m_activateTheme );
53     SetupButton(&m_saveAsTheme );
54
55     SetupListCtrl(&m_listCtrl );
56
57
58     m_listCtrl.InsertColumn(0,"Name",LVCFMT_LEFT,320);
59
60    
61
62
63     return TRUE;  // return TRUE unless you set the focus to a control
64                   // EXCEPTION: OCX Property Pages should return FALSE
65 }
66
67 void CThemesPage::OnSaveAsTheme()
68 {
69    
70    
71 }
72
73 void CThemesPage::OnActivateTheme()
74 {
75     AfxMessageBox("here");
76 }
Note: See TracBrowser for help on using the browser.