blob: e9ecda34dde8adbc8ea15a32109e22eb7896c955 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
// MainDlg.cpp : implementation file
//
#include "PropPaths.h"
#include "PropAccess.h"
#include "PropConn.h"
#include "MainDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainDlg
IMPLEMENT_DYNAMIC(CMainDlg, CPropertySheet)
CMainDlg::CMainDlg() : CPropertySheet("Bitlbee for Windows")
{
AddPage(new CPropPaths());
AddPage(new CPropAccess());
AddPage(new CPropertyPage(IDD_PROPPAGE_ABOUT));
AddPage(new CPropConn());
Create();
ShowWindow(SW_HIDE);
}
CMainDlg::~CMainDlg()
{
}
BEGIN_MESSAGE_MAP(CMainDlg, CPropertySheet)
//{{AFX_MSG_MAP(CMainDlg)
ON_WM_CLOSE()
//}}AFX_MSG_MAP
ON_BN_CLICKED(IDOK, OnOK)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMainDlg message handlers
BOOL CMainDlg::OnInitDialog()
{
m_bModeless = FALSE;
m_nFlags |= WF_CONTINUEMODAL;
CPropertySheet::OnInitDialog();
GetDlgItem(IDHELP)->ShowWindow(SW_HIDE);
GetDlgItem(IDCANCEL)->ShowWindow(SW_HIDE);
m_bModeless = TRUE;
m_nFlags &= WF_CONTINUEMODAL;
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CMainDlg::OnOK()
{
PressButton(PSBTN_APPLYNOW);
ShowWindow(SW_HIDE);
}
void CMainDlg::OnClose()
{
ShowWindow(SW_HIDE);
}
|