This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
channelbar.h
117 lines (96 loc) · 3 KB
/
channelbar.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
#if !defined(AFX_CHANNELBAR_H__770F7FC3_7EA7_43AC_AEFC_3F090E0A40FE__INCLUDED_)
#define AFX_CHANNELBAR_H__770F7FC3_7EA7_43AC_AEFC_3F090E0A40FE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChannelBar.h : header file
//
#include "DynArray.h"
#include "zsIRC_Wnd.h"
#include "zsIRC_Socket.h"
#include "zsIRC_Wnd_Query.h"
#include "zsIRC_EventHandler.h"
/////////////////////////////////////////////////////////////////////////////
// CChannelBar window
#define WM_CBAR_CHECKQUEUE (WM_USER+303)
#define WM_CBAR_DISCONNECT (WM_USER+304)
class CChannelBar : public CWnd
{
// Construction
public:
CChannelBar();
virtual ~CChannelBar();
// Attributes
public:
int nSelected;
CDynArray daWindows;
CDynArray daMessages;
zsIRC_Socket scSocket;
HANDLE hThread;
DWORD hThreadID;
CString sNick;
int nAltNickNumber;
CString sChanTypes;
CString sPrefixes;
CString sPrefixReadables;
CString sNetwork;
int nPackets;
CString sSocketLeftover;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChannelBar)
public:
virtual void OnFinalRelease();
//}}AFX_VIRTUAL
// Implementation
public:
void CheckNotify();
void FocusWindow(int i);
zsIRC_Wnd * AddWindow(ZSIRC_WND_TYPE nType,TCHAR * szCaption);
void CloseWindow(TCHAR * szCaption);
zsIRC_Wnd * FindWindow(TCHAR * szName);
void HideAllWindows();
void HandleIncoming();
int nThreadActive;
int nThreadRunning;
int nDisconnect;
void Connect();
void Disconnect();
int Handshake();
void ParseCommand(TCHAR*,int nForce = 0);
void SendIRCMessage(TCHAR*);
void ParseIRCMessage(TCHAR*msg);
zsIRC_Wnd_Query * wndStatus;
zsIRC_Wnd_Query * wndDebug;
CDynArray daNotify;
zsIRC_EventHandler EVENTS;
// Generated message map functions
protected:
//{{AFX_MSG(CChannelBar)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnPaint();
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDestroy();
afx_msg void OnCheckQueue(WPARAM, LPARAM);
afx_msg void OnDisconnect(WPARAM, LPARAM);
afx_msg void OnCbarClose();
afx_msg void OnWTF();
afx_msg void OnChannelBarSwitch( UINT nID );
afx_msg LRESULT CChannelBar::OnNotification(WPARAM wParam, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Generated OLE dispatch map functions
//{{AFX_DISPATCH(CChannelBar)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_DISPATCH
//DECLARE_DISPATCH_MAP()
//DECLARE_INTERFACE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHANNELBAR_H__770F7FC3_7EA7_43AC_AEFC_3F090E0A40FE__INCLUDED_)