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 |
---|
12 | static char THIS_FILE[] = __FILE__; |
---|
13 | #endif |
---|
14 | |
---|
15 | ///////////////////////////////////////////////////////////////////////////// |
---|
16 | // CMainDlg |
---|
17 | |
---|
18 | IMPLEMENT_DYNAMIC(CMainDlg, CPropertySheet) |
---|
19 | |
---|
20 | CMainDlg::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 | |
---|
30 | CMainDlg::~CMainDlg() |
---|
31 | { |
---|
32 | } |
---|
33 | |
---|
34 | |
---|
35 | BEGIN_MESSAGE_MAP(CMainDlg, CPropertySheet) |
---|
36 | //{{AFX_MSG_MAP(CMainDlg) |
---|
37 | ON_WM_CLOSE() |
---|
38 | //}}AFX_MSG_MAP |
---|
39 | ON_BN_CLICKED(IDOK, OnOK) |
---|
40 | END_MESSAGE_MAP() |
---|
41 | |
---|
42 | ///////////////////////////////////////////////////////////////////////////// |
---|
43 | // CMainDlg message handlers |
---|
44 | |
---|
45 | BOOL 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 | |
---|
61 | void CMainDlg::OnOK() |
---|
62 | { |
---|
63 | PressButton(PSBTN_APPLYNOW); |
---|
64 | ShowWindow(SW_HIDE); |
---|
65 | } |
---|
66 | |
---|
67 | |
---|
68 | void CMainDlg::OnClose() |
---|
69 | { |
---|
70 | ShowWindow(SW_HIDE); |
---|
71 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.