source: win32/admin/MainDlg.cpp @ abe53d3

Last change on this file since abe53d3 was abe53d3, checked in by Jelmer Vernooij <jelmer@…>, at 2005-11-07T16:42:49Z

More work on config manager

  • Property mode set to 100644
File size: 1.4 KB
Line 
1// MainDlg.cpp : implementation file
2//
3
4#include "PropPaths.h"
5#include "PropAccess.h"
6#include "PropConn.h"
7#include "MainDlg.h"
8
9#ifdef _DEBUG
10#define new DEBUG_NEW
11#undef THIS_FILE
12static char THIS_FILE[] = __FILE__;
13#endif
14
15/////////////////////////////////////////////////////////////////////////////
16// CMainDlg
17
18IMPLEMENT_DYNAMIC(CMainDlg, CPropertySheet)
19
20CMainDlg::CMainDlg() : CPropertySheet("Bitlbee for Windows") 
21{
22        AddPage(new CPropPaths());
23        AddPage(new CPropAccess());
24        AddPage(new CPropertyPage(IDD_PROPPAGE_ABOUT));
25        AddPage(new CPropConn());
26        Create();
27        ShowWindow(SW_HIDE);
28}
29
30CMainDlg::~CMainDlg()
31{
32}
33
34
35BEGIN_MESSAGE_MAP(CMainDlg, CPropertySheet)
36        //{{AFX_MSG_MAP(CMainDlg)
37        ON_WM_CLOSE()
38        //}}AFX_MSG_MAP
39        ON_BN_CLICKED(IDOK, OnOK)
40END_MESSAGE_MAP()
41
42/////////////////////////////////////////////////////////////////////////////
43// CMainDlg message handlers
44
45BOOL CMainDlg::OnInitDialog() 
46{
47        m_bModeless = FALSE;
48        m_nFlags |= WF_CONTINUEMODAL;
49       
50        CPropertySheet::OnInitDialog();
51        GetDlgItem(IDHELP)->ShowWindow(SW_HIDE);
52        GetDlgItem(IDCANCEL)->ShowWindow(SW_HIDE);
53
54        m_bModeless = TRUE;
55        m_nFlags &= WF_CONTINUEMODAL;
56       
57        return TRUE;  // return TRUE unless you set the focus to a control
58                      // EXCEPTION: OCX Property Pages should return FALSE
59}
60
61void CMainDlg::OnOK()
62{
63        PressButton(PSBTN_APPLYNOW);
64        ShowWindow(SW_HIDE);
65}
66
67
68void CMainDlg::OnClose() 
69{
70        ShowWindow(SW_HIDE);
71}
Note: See TracBrowser for help on using the repository browser.