summaryrefslogtreecommitdiffabout
path: root/T42View.h
authorMichael Krelin <hacker@klever.net>2004-07-05 01:53:09 (UTC)
committer Michael Krelin <hacker@klever.net>2004-07-05 01:53:09 (UTC)
commit955d4e00adc9f39ab93bf21f07506eb75b013c70 (patch) (unidiff)
tree92493a2c9ac206b822e24a9e5a6f6b1589be6afb /T42View.h
downloadT42-955d4e00adc9f39ab93bf21f07506eb75b013c70.zip
T42-955d4e00adc9f39ab93bf21f07506eb75b013c70.tar.gz
T42-955d4e00adc9f39ab93bf21f07506eb75b013c70.tar.bz2
initial commit into svn repository
git-svn-id: http://svn.klever.net/kin/T42/trunk@1 fe716a7a-6dde-0310-88d9-d003556173a8
Diffstat (limited to 'T42View.h') (more/less context) (ignore whitespace changes)
-rw-r--r--T42View.h220
1 files changed, 220 insertions, 0 deletions
diff --git a/T42View.h b/T42View.h
new file mode 100644
index 0000000..f41fb1e
--- a/dev/null
+++ b/T42View.h
@@ -0,0 +1,220 @@
1// T42View.h : header file
2//
3
4class T42View;
5class T42Frame;
6struct TalkEditChars;
7 class CRichTalkCtl : public CRichEditCtrl{
8public:
9 void SystemMessage(LPCTSTR str);
10 TalkEditChars* m_pInTEC;
11 TalkEditChars* m_pOuTEC;
12 T42View* m_pView;
13 COLORREF m_bgColor;
14 CHARFORMAT m_fmtSystem;
15 CHARFORMAT m_fmtUser;
16 void SetColor();
17 void Setup();
18 void PutString(LPCTSTR str);
19 void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
20 void PutCharacter(CHAR c);
21};
22
23/////////////////////////////////////////////////////////////////////////////
24// CLocalCtl window
25
26class CLocalCtl : public CRichTalkCtl
27{
28// Construction
29public:
30 CLocalCtl();
31
32// Attributes
33public:
34
35// Operations
36public:
37
38// Overrides
39 // ClassWizard generated virtual function overrides
40 //{{AFX_VIRTUAL(CLocalCtl)
41 //}}AFX_VIRTUAL
42
43// Implementation
44public:
45 virtual ~CLocalCtl();
46
47 // Generated message map functions
48protected:
49 //{{AFX_MSG(CLocalCtl)
50 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
51 afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
52 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
53 //}}AFX_MSG
54
55 DECLARE_MESSAGE_MAP()
56};
57
58/////////////////////////////////////////////////////////////////////////////
59
60/////////////////////////////////////////////////////////////////////////////
61// CRemoteCtl window
62
63class CRemoteCtl : public CRichTalkCtl
64{
65// Construction
66public:
67 CRemoteCtl();
68
69// Attributes
70public:
71
72// Operations
73public:
74
75// Overrides
76 // ClassWizard generated virtual function overrides
77 //{{AFX_VIRTUAL(CRemoteCtl)
78 //}}AFX_VIRTUAL
79
80// Implementation
81public:
82 virtual ~CRemoteCtl();
83
84 // Generated message map functions
85protected:
86 //{{AFX_MSG(CRemoteCtl)
87 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
88 afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
89 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
90 //}}AFX_MSG
91
92 DECLARE_MESSAGE_MAP()
93};
94
95/////////////////////////////////////////////////////////////////////////////
96
97/////////////////////////////////////////////////////////////////////////////
98// CSplitBar window
99
100class CSplitBar : public CStatic
101{
102// Construction
103public:
104 CSplitBar();
105
106// Attributes
107public:
108 int m_Ort;
109
110// Operations
111public:
112
113// Overrides
114 // ClassWizard generated virtual function overrides
115 //{{AFX_VIRTUAL(CSplitBar)
116 //}}AFX_VIRTUAL
117
118// Implementation
119public:
120 virtual ~CSplitBar();
121
122 // Generated message map functions
123protected:
124 //{{AFX_MSG(CSplitBar)
125 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
126 afx_msg void OnPaint();
127 //}}AFX_MSG
128
129 DECLARE_MESSAGE_MAP()
130};
131
132/////////////////////////////////////////////////////////////////////////////
133
134/////////////////////////////////////////////////////////////////////////////
135// T42View form view
136
137#ifndef __AFXEXT_H__
138#include <afxext.h>
139#endif
140
141class T42View : public CFormView
142{
143protected:
144 T42View(); // protected constructor used by dynamic creation
145 DECLARE_DYNCREATE(T42View)
146
147// Form Data
148public:
149 static DWORD CALLBACK ESINProc(DWORD dwCookie,LPBYTE pbBuff,LONG cb,LONG FAR *pcb);
150 void SystemMessage(LPCTSTR str);
151 void LoadLayout();
152 void SaveLayout();
153 void SetEnable(BOOL bEnable);
154 BOOL m_bEnabled;
155 HCURSOR m_hHorzCursor;
156 HCURSOR m_hVertCursor;
157 T42Frame* m_pFrame;
158 BOOL m_bTracking;
159 BOOL m_bShown;
160 enum _orientation{
161 ortHorizontal,
162 ortVertical
163 }m_Ort;
164 void RecalcLayout();
165 UINT m_gapSize;
166 UINT m_remoteSize;
167 UINT m_localSize;
168 CRemoteCtl m_remoteCtl;
169 CLocalCtl m_localCtl;
170 //{{AFX_DATA(T42View)
171 enum { IDD = IDD_T42VIEW };
172 CSplitBarm_splitCtl;
173 //}}AFX_DATA
174
175// Attributes
176public:
177
178// Operations
179public:
180
181// Overrides
182 // ClassWizard generated virtual function overrides
183 //{{AFX_VIRTUAL(T42View)
184 public:
185 virtual void OnInitialUpdate();
186 protected:
187 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
188 //}}AFX_VIRTUAL
189
190// Implementation
191protected:
192 virtual ~T42View();
193#ifdef _DEBUG
194 virtual void AssertValid() const;
195 virtual void Dump(CDumpContext& dc) const;
196#endif
197
198 // Generated message map functions
199 //{{AFX_MSG(T42View)
200 afx_msg void OnSize(UINT nType, int cx, int cy);
201 afx_msg LRESULT OnSplitterBDown(WPARAM,LPARAM);
202 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
203 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
204 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
205 afx_msg void OnWindowSplitequally();
206 afx_msg void OnUpdateWindowHorizontalsplit(CCmdUI* pCmdUI);
207 afx_msg void OnUpdateWindowVerticalsplit(CCmdUI* pCmdUI);
208 afx_msg void OnWindowHorizontalsplit();
209 afx_msg void OnWindowVerticalsplit();
210 afx_msg void OnEditCopy();
211 afx_msg void OnEditPaste();
212 afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
213 afx_msg void OnCancelMode();
214 afx_msg void OnUpdateTeaSave(CCmdUI* pCmdUI);
215 afx_msg void OnTeaSave();
216 //}}AFX_MSG
217 DECLARE_MESSAGE_MAP()
218};
219
220/////////////////////////////////////////////////////////////////////////////