-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCustomizeSheet.cpp
72 lines (55 loc) · 1.76 KB
/
CustomizeSheet.cpp
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
72
// CustomizeSheet.cpp : implementation file
//
// $Id$
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include "CustomizeSheet.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCustomizeSheet
IMPLEMENT_DYNAMIC(CCustomizeSheet, baseCustomizeSheet)
CCustomizeSheet::CCustomizeSheet(CWnd* pWndParent)
: baseCustomizeSheet(IDS_PROPSHT_CAPTION15, pWndParent)
{
// Add all of the property pages here. Note that
// the order that they appear in here will be
// the order they appear in on screen. By default,
// the first page of the set is the active one.
// One way to make a different property page the
// active one is to call SetActivePage().
AddPage(&m_Page1);
// AddPage(&m_Page2);
}
CCustomizeSheet::~CCustomizeSheet()
{
}
BEGIN_MESSAGE_MAP(CCustomizeSheet, baseCustomizeSheet)
//{{AFX_MSG_MAP(CCustomizeSheet)
ON_WM_HELPINFO()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCustomizeSheet message handlers
BOOL CCustomizeSheet::OnInitDialog()
{
baseCustomizeSheet::OnInitDialog();
// Add extra initialization here
LONG style = ::GetWindowLong(m_hWnd, GWL_EXSTYLE);
style |= WS_EX_CONTEXTHELP;
::SetWindowLong(m_hWnd, GWL_EXSTYLE, style);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CCustomizeSheet::OnHelpInfo(HELPINFO* pHelpInfo)
{
if (pHelpInfo->iContextType == HELPINFO_WINDOW)
{
// do nothing for context help
return TRUE;
}
return baseCustomizeSheet::OnHelpInfo(pHelpInfo);
}