www.pudn.com > GDIyuvplayer.rar > DisplayWin.h


#if !defined(AFX_DISPLAYWIN_H__3A7D468A_84C6_45CA_9ECA_AFF3A5F35145__INCLUDED_) 
#define AFX_DISPLAYWIN_H__3A7D468A_84C6_45CA_9ECA_AFF3A5F35145__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// DisplayWin.h : header file 
// 
///////////////////////////////////////////////////////////////////////////// 
// DisplayWin frame 
 
class DisplayWin : public CFrameWnd 
{ 
	DECLARE_DYNCREATE(DisplayWin) 
protected: 
	DisplayWin();  // protected constructor used by dynamic creation 
 
// Attributes 
public: 
	unsigned char *RGBbuf;//*yBuf, *uBuf, *vBuf,  
	int dWidth, dHeight; 
	LPBITMAPINFO bmpInfo; 
    HANDLE bmpHeap;  
	WINDOWPLACEMENT m_OldWndPlacement; 
	BOOL m_FullScreen; 
	RECT rcFlScreen; 
	RECT rcClient; 
	RECT r; 
	DisplayWin **m_pPointToMe; 
	char seqName[100]; 
// Operations 
public: 
    	 DisplayWin(CFrameWnd* pParentWnd,int Width,int Height); 
	void ShowImage(CDC *pdc,unsigned char *pImage); 
	void Endfullscreen(); 
	void FullScreen(); 
	void CenterWindow(int width,int height); 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(DisplayWin) 
	protected: 
	virtual void PostNcDestroy(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	virtual ~DisplayWin(); 
	// Generated message map functions 
	//{{AFX_MSG(DisplayWin) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnPaint(); 
	afx_msg void OnClose(); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); 
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DISPLAYWIN_H__3A7D468A_84C6_45CA_9ECA_AFF3A5F35145__INCLUDED_)