?? client1view.h
字號:
// client1View.h : interface of the CClient1View class
//
/////////////////////////////////////////////////////////////////////////////
//*************************************************************
//作者:趙明
//EMAIL:zmpapaya@hotmail.com;papaya_zm@sina.com
//主頁:http://h2osky.126.com
/********************************************************/
#if !defined(AFX_CLIENT1VIEW_H__FD5BCE7E_8202_430D_BB49_CAB1CD2B5946__INCLUDED_)
#define AFX_CLIENT1VIEW_H__FD5BCE7E_8202_430D_BB49_CAB1CD2B5946__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "cdownload.h"
#include "mysocket.h"
#include "client1Doc.h"
class CClient1CntrItem;
class CClient1View : public CRichEditView
{
protected: // create from serialization only
CClient1View();
DECLARE_DYNCREATE(CClient1View)
// Attributes
public:
CHARFORMAT cfm;
void Message(LPCTSTR lpszMessage,COLORREF clr);
CClient1Doc* GetDocument();
CString m_csIP;//IP地址
cdownload* m_down[1];//只有一個元素,何必要定義成數組呢?
mysocket* m_chatsocket;
BOOL chattrue;//此變量的值為true的時候,表示:聊天socket還沒有接好;這種設計方法是反著的。
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CClient1View)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CClient1View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CClient1View)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
afx_msg void OnDestroy();
afx_msg void OnConnect();
afx_msg void OnSend();
afx_msg LRESULT OnKSend(WPARAM wParam,LPARAM lParam);
afx_msg LRESULT addmessage(WPARAM wParam, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in client1View.cpp
inline CClient1Doc* CClient1View::GetDocument()
{ return (CClient1Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CLIENT1VIEW_H__FD5BCE7E_8202_430D_BB49_CAB1CD2B5946__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -