Msgman.h
资源名称:(vc).rar [点击查看]
上传用户:wpp2016
上传日期:2010-02-01
资源大小:1250k
文件大小:2k
源码类别:
Telnet服务器
开发平台:
Visual C++
- #if !defined(AFX_MSGMAN_H__58A50E41_F048_11D3_9E45_00A0C936C4B3__INCLUDED_)
- #define AFX_MSGMAN_H__58A50E41_F048_11D3_9E45_00A0C936C4B3__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // Msgman.h : header file
- //
- #include "blocksock.h"
- #include "thread1.h"
- class CMainFrame;
- class CAnywhereDoc;
- /////////////////////////////////////////////////////////////////////////////
- // CMsgman command target
- enum status_type{first,again,done,wait,fail};
- class CMsgman : public CObject
- {
- // Attributes
- public:
- // Operations
- public:
- CMsgman(CAnywhereDoc *pDoc);
- virtual ~CMsgman();
- // Overrides
- public:
- int AddMsg(CString message,CString msg_tip,status_type status,BOOL bEnable,CSockAddr target,int priority);
- void SendMsg(CString order);
- //#ifndef type_msg_list
- //#define type_msg_list
- public:
- void SetActive(int id);
- int Okmsg(CString order,BOOL success);
- void Dispense(CString text);
- int Respones(CString text);
- BOOL CheckMsg(CString message);
- struct Msglist_type:public CObject{
- CString message;
- CString msg_tip;
- status_type status;
- BOOL bEnable;
- CSockAddr target;
- int priority;
- };
- CTypedPtrList<CObList,Msglist_type *>Msglist;
- //#endif
- POSITION msglist_pos;//位置
- //CObList Msglist;//消息联表
- CAnywhereDoc *m_pDoc;
- HWND m_hFrame;
- void init(HWND hFrame);
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMsgman)
- //}}AFX_VIRTUAL
- // Generated message map functions
- //{{AFX_MSG(CMsgman)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}AFX_MSG
- // Implementation
- protected:
- private:
- BOOL CheckConnect();
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MSGMAN_H__58A50E41_F048_11D3_9E45_00A0C936C4B3__INCLUDED_)