-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAINMENU.H
121 lines (99 loc) · 2.92 KB
/
MAINMENU.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// mainmenu.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMainMenuView form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
class CMainMenuView : public CFormView
{
DECLARE_DYNCREATE(CMainMenuView)
protected:
CMainMenuView(); // protected constructor used by dynamic creation
// Form Data
public:
//{{AFX_DATA(CMainMenuView)
enum { IDD = IDR_MAINMENUTYPE };
//}}AFX_DATA
CBitmapButton m_btnPOFFICE, m_btnHelpInfo, m_btnFinger, m_btnFTP;
CBitmapButton m_btnChat, m_btnNews, m_btnGopher, m_btnPrefs, m_btnWhois;
// Attributes
public:
CInternetNavApp* m_pApp;
// Operations
public:
void OnInitialUpdate();
// Implementation
protected:
virtual ~CMainMenuView();
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Generated message map functions
//{{AFX_MSG(CMainMenuView)
afx_msg void OnFinger();
afx_msg void OnFtp();
afx_msg void OnGopher();
afx_msg void OnHelpAndInfo();
afx_msg void OnIRC();
afx_msg void OnMailManager();
afx_msg void OnUsenetNews();
afx_msg void OnWhois();
afx_msg void OnPrefs();
afx_msg void OnWindowRemember();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CMainMenuDoc document
class CMainMenuDoc : public CDocument
{
DECLARE_SERIAL(CMainMenuDoc)
protected:
CMainMenuDoc(); // protected constructor used by dynamic creation
// Attributes
public:
// Operations
public:
virtual void SetTitle(const char* pszTitle);
// Implementation
protected:
virtual ~CMainMenuDoc();
virtual void Serialize(CArchive& ar); // overridden for document i/o
virtual BOOL OnNewDocument();
// Generated message map functions
protected:
//{{AFX_MSG(CMainMenuDoc)
afx_msg void OnUpdateFileNew(CCmdUI* pCmdUI);
afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI);
afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CMainMenuFrm frame
class CMainMenuFrm : public CMDIChildWnd
{
DECLARE_DYNCREATE(CMainMenuFrm)
protected:
CMainMenuFrm(); // protected constructor used by dynamic creation
// Attributes
public:
// 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 ~CMainMenuFrm();
// Generated message map functions
//{{AFX_MSG(CMainMenuFrm)
afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Global Windows Sockets cleanup function
void FAR AfxSocketTerm();