| 1 |
// BuildOptionsDlg.cpp : implementation file |
|---|
| 2 |
// |
|---|
| 3 |
|
|---|
| 4 |
#include "stdafx.h" |
|---|
| 5 |
#include "Elephant.h" |
|---|
| 6 |
#include "BuildOptionsDlg.h" |
|---|
| 7 |
#include "GUIComponents\XHyperLink.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 |
// CBuildOptionsDlg dialog |
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
CBuildOptionsDlg::CBuildOptionsDlg(CWnd* pParent /*=NULL*/) |
|---|
| 20 |
|
|---|
| 21 |
{ |
|---|
| 22 |
//{{AFX_DATA_INIT(CBuildOptionsDlg) |
|---|
| 23 |
m_mandatoryChecked = TRUE; |
|---|
| 24 |
//}}AFX_DATA_INIT |
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
} |
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
void CBuildOptionsDlg::DoDataExchange(CDataExchange* pDX) |
|---|
| 31 |
{ |
|---|
| 32 |
CDialog::DoDataExchange(pDX); |
|---|
| 33 |
//{{AFX_DATA_MAP(CBuildOptionsDlg) |
|---|
| 34 |
DDX_Control(pDX, IDC_STATIC2, m_buildLink); |
|---|
| 35 |
DDX_Check(pDX, IDC_CHECK1, m_mandatoryChecked); |
|---|
| 36 |
//}}AFX_DATA_MAP |
|---|
| 37 |
} |
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
BEGIN_MESSAGE_MAP(CBuildOptionsDlg, CRHGenericChildDialog) |
|---|
| 41 |
//{{AFX_MSG_MAP(CBuildOptionsDlg) |
|---|
| 42 |
ON_BN_CLICKED(IDC_CHECK1, OnCheck1) |
|---|
| 43 |
//}}AFX_MSG_MAP |
|---|
| 44 |
END_MESSAGE_MAP() |
|---|
| 45 |
|
|---|
| 46 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 47 |
// CBuildOptionsDlg message handlers |
|---|
| 48 |
|
|---|
| 49 |
BOOL CBuildOptionsDlg::OnInitDialog() |
|---|
| 50 |
{ |
|---|
| 51 |
CRHGenericChildDialog::OnInitDialog(); |
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
m_buildLink.SetUnderline(); |
|---|
| 55 |
m_buildLink.SetURL("http://www.dsource.org/projects/build/"); |
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
return TRUE; // return TRUE unless you set the focus to a control |
|---|
| 60 |
// EXCEPTION: OCX Property Pages should return FALSE |
|---|
| 61 |
} |
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 |
void CBuildOptionsDlg::OnCheck1() |
|---|
| 65 |
{ |
|---|
| 66 |
m_mandatoryChecked = TRUE; |
|---|
| 67 |
UpdateData(FALSE); |
|---|
| 68 |
|
|---|
| 69 |
} |
|---|