欢迎来到天天文库
浏览记录
ID:39556814
大小:60.00 KB
页数:9页
时间:2019-07-06
《客户服务socket程序例子》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、//CClientView.cpp:implementationoftheCCClientViewclass//#include"stdafx.h"#include"CClient.h"#include"CClientDoc.h"#include"CClientView.h"#ifdef_DEBUG#definenewDEBUG_NEW#undefTHIS_FILEstaticcharTHIS_FILE[]=__FILE__;#endif//////////////////////////////////////////
2、/////////////////////////////////////CCClientViewIMPLEMENT_DYNCREATE(CCClientView,CEditView)BEGIN_MESSAGE_MAP(CCClientView,CEditView)//{{AFX_MSG_MAP(CCClientView)ON_COMMAND(ID_BUTTON_CLOSE,OnButtonClose)ON_COMMAND(ID_BUTTON_CONNECT,OnButtonConnect)ON_COMMAND(ID_B
3、UTTON_SEND,OnButtonSend)ON_UPDATE_COMMAND_UI(ID_BUTTON_CLOSE,OnUpdateButtonClose)ON_UPDATE_COMMAND_UI(ID_BUTTON_CONNECT,OnUpdateButtonConnect)ON_UPDATE_COMMAND_UI(ID_BUTTON_SEND,OnUpdateButtonSend)//}}AFX_MSG_MAP//StandardprintingcommandsON_COMMAND(ID_FILE_PRINT,
4、CEditView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_DIRECT,CEditView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_PREVIEW,CEditView::OnFilePrintPreview)END_MESSAGE_MAP()///////////////////////////////////////////////////////////////////////////////CCClientViewconstruction/d
5、estructionCCClientView::CCClientView(){//TODO:addconstructioncodehere}CCClientView::~CCClientView(){}BOOLCCClientView::PreCreateWindow(CREATESTRUCT&cs){//TODO:ModifytheWindowclassorstylesherebymodifying//theCREATESTRUCTcsBOOLbPreCreated=CEditView::PreCreateWindow
6、(cs);cs.style&=~(ES_AUTOHSCROLL
7、WS_HSCROLL);//Enableword-wrappingreturnbPreCreated;}///////////////////////////////////////////////////////////////////////////////CCClientViewdrawingvoidCCClientView::OnDraw(CDC*pDC){CCClientDoc*pDoc=GetDocument();ASSERT_VALID(pDo
8、c);//TODO:adddrawcodefornativedatahere}///////////////////////////////////////////////////////////////////////////////CCClientViewprintingBOOLCCClientView::OnPreparePrinting(CPrintInfo*pInfo){//defaultCEditViewpreparationreturnCEditView::OnPreparePrinting(pInfo);
9、}voidCCClientView::OnBeginPrinting(CDC*pDC,CPrintInfo*pInfo){//DefaultCEditViewbeginprinting.CEditView::OnBeginPrinting(pDC,pInfo);}voidCCClientView::OnEndPrin
此文档下载收益归作者所有