⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainfrm.h

📁 VC++视频开发实例集锦(包括“远程视频监控”"语音识别系统"等13个经典例子)
💻 H
字号:
// 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_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -