MainFrm.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:3k
- // MainFrm.h : interface of the CMainFrame class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MAINFRM_H__8F79C405_2FF2_11D4_883D_0000210A0111__INCLUDED_)
- #define AFX_MAINFRM_H__8F79C405_2FF2_11D4_883D_0000210A0111__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include <winsock2.h>
- #define WSA_READ WM_USER+400
- #define WSA_ACCEPT WM_USER+300
- #define WM_VIEW_OUTBAR_NOTIFY WM_USER+500
- #define WM_PREPARE_CLOSE WM_USER+600
- #define BUFSIZE 32768
- extern enum { PLAY, CAPTURE,SEND};
- extern enum { Play_Set,Play_Open,Play_Begin,Play_Pause,Play_Resume,Play_Stop};
- extern enum {Cap_Preview,Cap_Set,Cap_Begin,Cap_Pause,Cap_Resume,Cap_Stop};
- class COutlookBar:public CGfxOutBarCtrl
- {
- protected:
- // Construction
- DECLARE_DYNAMIC(COutlookBar)
- protected:
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- DECLARE_MESSAGE_MAP()
- };
- class CMainFrame : public CFrameWnd
- {
-
- protected: // create from serialization only
-
- DECLARE_DYNCREATE(CMainFrame)
- CMainFrame();
- // Attributes
- public:
- // Operations
- public:
- CStatusBar m_wndStatusBar;
- CToolBar m_wndToolBar;
- CImageList m_ImageLarge;
- COutlookBar m_wndOutlookBar;
- CGfxSplitterWnd m_wndSplitter;
- BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void ActivateFrame(int nCmdShow = -1);
- //}}AFX_VIRTUAL
- // Implementation
- public:
-
- SOCKADDR_IN req_sin;
-
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected: // control bar embedded members
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnViewStatusBar();
- afx_msg void OnUpdateViewStatusBar(CCmdUI* pCmdUI);
- afx_msg void OnClose();
- //}}AFX_MSG
- afx_msg LRESULT OnAccept(WPARAM wParam,LPARAM lParam);
- afx_msg LRESULT OnRead(WPARAM wParam,LPARAM lParam);
- afx_msg LRESULT OnOutbarNotify(WPARAM wParam, LPARAM lParam);
- DECLARE_MESSAGE_MAP()
- private:
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINFRM_H__8F79C405_2FF2_11D4_883D_0000210A0111__INCLUDED_)