www.pudn.com > ballApp.rar > Graph.h
// Graph.h: interface for the CGraph class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GRAPH_H__E27A0A7F_8740_4C44_8232_D67C4D3FE95B__INCLUDED_)
#define AFX_GRAPH_H__E27A0A7F_8740_4C44_8232_D67C4D3FE95B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define SAFE_RELEASE(x) { if (x) x->Release(); x = NULL; }
#define SAFE_DELETE(x) { if (x) delete x; x = NULL; }
class CGraphManager
{
public:
CGraphManager();
virtual ~CGraphManager();
public:
BOOL Create();
BOOL SetVideoWindow(HWND hWnd);
BOOL Run();
void Stop();
void Pause();
protected:
BOOL QueryInterfaces();
private:
IGraphBuilder * m_pGraphBuilder;
IMediaControl * m_pControl;
IVideoWindow * m_pVideoWindow;
};
#endif // !defined(AFX_GRAPH_H__E27A0A7F_8740_4C44_8232_D67C4D3FE95B__INCLUDED_)