Rollback from r3608 to r3606
[public/netxms.git] / src / server / tools / nxconfig / IntroPage.cpp
1 // IntroPage.cpp : implementation file
2 //
3
4 #include "stdafx.h"
5 #include "nxconfig.h"
6 #include "IntroPage.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 // CIntroPage property page
16
17 IMPLEMENT_DYNCREATE(CIntroPage, CPropertyPage)
18
19 CIntroPage::CIntroPage() : CPropertyPage(CIntroPage::IDD)
20 {
21 //{{AFX_DATA_INIT(CIntroPage)
22 // NOTE: the ClassWizard will add member initialization here
23 //}}AFX_DATA_INIT
24 }
25
26 CIntroPage::~CIntroPage()
27 {
28 }
29
30 void CIntroPage::DoDataExchange(CDataExchange* pDX)
31 {
32 CPropertyPage::DoDataExchange(pDX);
33 //{{AFX_DATA_MAP(CIntroPage)
34 // NOTE: the ClassWizard will add DDX and DDV calls here
35 //}}AFX_DATA_MAP
36 }
37
38
39 BEGIN_MESSAGE_MAP(CIntroPage, CPropertyPage)
40 //{{AFX_MSG_MAP(CIntroPage)
41 // NOTE: the ClassWizard will add message map macros here
42 //}}AFX_MSG_MAP
43 END_MESSAGE_MAP()
44
45 /////////////////////////////////////////////////////////////////////////////
46 // CIntroPage message handlers
47
48 LRESULT CIntroPage::OnWizardNext()
49 {
50 WIZARD_CFG_INFO *pc = &((CConfigWizard *)GetParent())->m_cfg;
51 return pc->m_bConfigFileDetected ? IDD_SELECT_DB : IDD_CFG_FILE;
52 }
53
54
55 //
56 // Page activation handler
57 //
58
59 BOOL CIntroPage::OnSetActive()
60 {
61 ((CPropertySheet *)GetParent())->SetWizardButtons(PSWIZB_NEXT);
62 return CPropertyPage::OnSetActive();
63 }