-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAINFRM.H
74 lines (63 loc) · 2 KB
/
MAINFRM.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
// mainfrm.h : interface of the CMainFrame class
//
#ifndef __MAINFRM_H__
#define __MAINFRM_H__
#include "statbar.h"
#include "tooltipb.h"
/////////////////////////////////////////////////////////////////////////////
class CMainFrame : public CMDIFrameWnd
{
friend class CInternetNavApp;
DECLARE_DYNAMIC(CMainFrame)
public:
CMainFrame();
// Attributes
public:
CInternetNavApp* m_pApp;
BOOL m_bCreateToolBar, m_bCreateStatBar;
// IRC Functions and Helpers:
private:
void AddToReceive(const char* pszBuffer, int nAmt);
CStringList m_ReceiveLines;
CString m_strRemainingReceive;
// Operations
public:
// for resetting the Places toolbar after documents and clients and
// windows have changed the toolbar to suit their own needs
void ResetToolBar();
// for putting IRC messages in the appropriate windows
void PutInActive(CString& strResponse);
void PutInChanWindow(const CString& strChannel, CString& strMessage);
// Other IRC Operations
void IRCBeginChat();
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
void IRCParseResponse(); // parses responses from IRC server
protected: // control bar embedded members
CInetnavStatusBar m_wndStatusBar;
CToolTipBar m_wndToolBar;
public:
CInetnavStatusBar* GetStatusBar() { return &m_wndStatusBar; }
CToolTipBar* GetToolBar() { return &m_wndToolBar; }
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSysColorChange();
afx_msg void OnClose();
afx_msg void OnWindowCloseAll();
afx_msg void OnUpdateIndicatorOffline(CCmdUI* pCmdUI);
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnHelpSearch();
//}}AFX_MSG
afx_msg void OnDefaultHelp();
afx_msg LRESULT OnIRCSocketResponse(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
#endif //__MAINFRM_H__