AnyServerView.h
资源名称:anywhere.zip [点击查看]
上传用户:zhenhuadz
上传日期:2007-01-07
资源大小:1511k
文件大小:2k
源码类别:
远程控制编程
开发平台:
Visual C++
- // AnyServerView.h : interface of the CAnyServerView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_ANYSERVERVIEW_H__206A9D8C_F69E_11D3_8A76_00E04CDD95C8__INCLUDED_)
- #define AFX_ANYSERVERVIEW_H__206A9D8C_F69E_11D3_8A76_00E04CDD95C8__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "AnyServerDoc.h"
- class CAnyServerView : public CFormView
- {
- protected: // create from serialization only
- CAnyServerView();
- DECLARE_DYNCREATE(CAnyServerView)
- public:
- CString DataBuf;
- public:
- //{{AFX_DATA(CAnyServerView)
- enum { IDD = IDD_ANYSERVER_FORM };
- CIPAddressCtrl m_IPAddr;
- CButton m_CloseChat;
- CButton m_Stopbtn;
- CButton m_Startbtn;
- //}}AFX_DATA
- // Attributes
- public:
- CAnyServerDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CAnyServerView)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnInitialUpdate(); // called first time after construct
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CAnyServerView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(CAnyServerView)
- afx_msg void OnStartbtn();
- afx_msg LRESULT OnSockCommand(WPARAM wParam,LPARAM lParam);
- afx_msg LRESULT OnValid(WPARAM wParam,LPARAM lParam);
- afx_msg LRESULT OnUserName(WPARAM wParam,LPARAM lParam);
- afx_msg LRESULT OnIPAddr(WPARAM wParam,LPARAM lParam);
- afx_msg void OnStartserver();
- afx_msg void OnStopserver();
- afx_msg void OnStopbtn();
- afx_msg void OnUpdateStartserver(CCmdUI* pCmdUI);
- afx_msg void OnUpdateStopserver(CCmdUI* pCmdUI);
- afx_msg void OnClosechat();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in AnyServerView.cpp
- inline CAnyServerDoc* CAnyServerView::GetDocument()
- { return (CAnyServerDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_ANYSERVERVIEW_H__206A9D8C_F69E_11D3_8A76_00E04CDD95C8__INCLUDED_)