- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
MainFrm.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:3k
源码类别:
VC书籍
开发平台:
Visual C++
- // 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_)