-
Notifications
You must be signed in to change notification settings - Fork 0
/
PREFVIEW.H
93 lines (77 loc) · 2.12 KB
/
PREFVIEW.H
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// prefview.h : interface of the CPrefsView class
//
#ifndef __PREFVIEW_H__
#define __PREFVIEW_H__
#include "prefsdoc.h"
/////////////////////////////////////////////////////////////////////////////
class CPrefsView : public CFormView
{
protected: // create from serialization only
CPrefsView();
DECLARE_DYNCREATE(CPrefsView)
public:
//{{AFX_DATA(CPrefsView)
enum { IDD = IDR_PREFERENCES };
CBitmapButton m_btnHelp;
CBitmapButton m_btnAppPrefs;
CBitmapButton m_btnUserInf;
CBitmapButton m_btnInetPrefs;
//}}AFX_DATA
// Attributes
public:
CPrefsDoc* GetDocument();
// Operations
public:
virtual void OnInitialUpdate();
// Implementation
public:
virtual ~CPrefsView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Generated message map functions
protected:
//{{AFX_MSG(CPrefsView)
afx_msg void OnUserInf();
afx_msg void OnAppPrefs();
afx_msg void OnInetPrefs();
afx_msg void OnClickedHelp();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in prefview.cpp
inline CPrefsDoc* CPrefsView::GetDocument()
{ return (CPrefsDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
// CPrefsWnd frame
class CPrefsWnd : public CMDIChildWnd
{
DECLARE_DYNCREATE(CPrefsWnd)
protected:
CPrefsWnd(); // protected constructor used by dynamic creation
// Attributes
public:
CInternetNavApp* m_pApp;
// Operations
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle,
CWnd* pParentWnd, CCreateContext* pContext = NULL);
// 'pParentWnd' parameter is required for MDI Child
// Implementation
protected:
virtual ~CPrefsWnd();
// Generated message map functions
//{{AFX_MSG(CPrefsWnd)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnClose();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
#endif //__PREFVIEW_H__