MainFrm.h
资源名称:vc_demo.rar [点击查看]
上传用户:zcy791212
上传日期:2013-03-06
资源大小:196k
文件大小:3k
源码类别:
Modem编程
开发平台:
Visual C++
- // MainFrm.h : interface of the CMainFrame class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MAINFRM_H__C433678F_0A4F_4840_87F2_9DA3C23064CD__INCLUDED_)
- #define AFX_MAINFRM_H__C433678F_0A4F_4840_87F2_9DA3C23064CD__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CVc_demoView;
- #include "BottomEditView.h"
- #include "LeftView.h"
- #include "optional.h"
- #include "MyToolBar.h"
- #include "MenuBar.h"
- class CMainFrame : public CFrameWnd
- {
- protected: // create from serialization only
- CMainFrame();
- DECLARE_DYNCREATE(CMainFrame)
- void SetToolBarStyle(void);
- void SetStatusBarStyle(void);
- void init_option(LPOPTION pOption);
- void GetPara(int); //tabctrl
- int CompareDateTimeAndNow(char *);
- // Attributes
- protected:
- CSplitterWnd m_wndSplitter;
- CSplitterWnd m_wndSplitter2;
- //CWinThread *m_thread;
- bool m_bServerRunning;
- bool m_bAnswer;
- OPTION m_option;
- char m_userid[12];
- BOOL m_viewword;
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- public:
- virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMainFrame();
- CVc_demoView* GetRightPane();
- CBottomEditView* GetBottompane();
- CLeftView* GetLeftPane();
- void AddTextToEditView(char *,bool newline=true);
- void AddTextToEditView(int,bool newline=true);
- void RefreshUserTable(int flag=0);
- void PrintData(char *);
- void SetUserId(char *);
- BOOL IsShowToolBarWord();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected: // control bar embedded members
- CStatusBar m_wndStatusBar;
- //CToolBar m_wndToolBar;
- CMyToolBar m_wndToolBar;
- CMenuBar m_wndMenuBar;
- UINT ProcessRvData(LPVOID lparam);
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnMiclear();
- afx_msg void OnMioffline();
- afx_msg void OnMirefreshtable();
- afx_msg void OnMisenddata();
- afx_msg void OnMistartservice();
- afx_msg void OnMistopservice();
- afx_msg void OnQuit();
- afx_msg void OnClose();
- afx_msg void OnMianswer();
- afx_msg void OnMishowdata();
- afx_msg void OnShowmenu();
- afx_msg void OnHelpcontent();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnUpdateMistartservice(CCmdUI* pCmdUI);
- afx_msg void OnUpdateMistopservice(CCmdUI* pCmdUI);
- afx_msg void OnUpdateMianswer(CCmdUI* pCmdUI);
- afx_msg void OnMiserversetting();
- afx_msg void OnUpdateShowmenu(CCmdUI* pCmdUI);
- afx_msg void OnMiofflineall();
- afx_msg void OnMiviewword();
- afx_msg void OnUpdateMiviewword(CCmdUI* pCmdUI);
- //}}AFX_MSG
- afx_msg void OnUpdateViewStyles(CCmdUI* pCmdUI);
- afx_msg void OnViewStyle(UINT nCommandID);
- DECLARE_MESSAGE_MAP()
- private:
- void StopRecvThread(void);
- BOOL StartRecv(void);
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINFRM_H__C433678F_0A4F_4840_87F2_9DA3C23064CD__INCLUDED_)