www.pudn.com > VideoCapture.rar > ShowStreamDlg.h


#if !defined(AFX_SHOWSTREAMDLG_H__3ABCE5A6_9888_4CA6_8562_0B315B9B04A3__INCLUDED_) 
#define AFX_SHOWSTREAMDLG_H__3ABCE5A6_9888_4CA6_8562_0B315B9B04A3__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// ShowStreamDlg.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CShowStreamDlg dialog 
 
class CShowStreamDlg : public CDialog 
{ 
	// Construction 
public: 
	void NewSize(); 
	UINT m_StreamWidth; 
	UINT m_StreamHeigth; 
    LPSTR TemplateOperation(const BITMAPINFO *pInfo, const BYTE *pBits, char*lpTempImgData , int Width, int Height,int LineBytes,int TemplateType); 
    LPSTR CompoundDIB(HANDLE hDIB,const BITMAPINFO * pInfo,const BYTE * pBits,int alpha); 
	void SetShowWay(int iCardID, bool bIs4WayCard, int iWay=0); 
	int m_iCardID; 
	LPSTR m_pDIB;       //内存位图数据(包括信息头,位图位) 
	LPBITMAPINFO m_pBitmapInfo; 
    LPBYTE m_pBitmapBits; 
	HANDLE m_hDIB, m_hDIBSrc; 
	CBitmap * m_pBitmap; 
	CDC* m_pdcMemory; 
	 
	void ShowStream(const BITMAPINFO * pInfo, const BYTE * pBits); 
	CShowStreamDlg(CWnd* pParent = NULL);   // standard constructor 
	 
	// Dialog Data 
	//{{AFX_DATA(CShowStreamDlg) 
	enum { IDD = IDD_SHOWSTREAM }; 
	// NOTE: the ClassWizard will add data members here 
	//}}AFX_DATA 
	 
	 
	// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CShowStreamDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	//}}AFX_VIRTUAL 
	 
	// Implementation 
protected: 
	bool m_bIs4WayCard;	//是否是四路实时卡 
	int  m_iShowWay;	//如果是四路实时卡,显示第几路图像 
	 
	// Generated message map functions 
	//{{AFX_MSG(CShowStreamDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnDestroy(); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	long m_ClientRect_High; 
	long m_ClientRect_width; 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_SHOWSTREAMDLG_H__3ABCE5A6_9888_4CA6_8562_0B315B9B04A3__INCLUDED_)