displaywindow.h

来自「DRAWYUV程序是用于摄像头的数据回放,用了directshow,可以用在VC」· C头文件 代码 · 共 62 行

H
62
字号
/*
 * DisplayWindow.h
 *
 * Create a window
 *
 * DirectDraw YUV420P project
 *
 * Copyright (c) 2004-2005 for Cyansoft Studio.
 * All Rights Reserved.
 *
 * Contributor(s): ______________________________________.
 *
 * $Log: DisplayWindow.h,v $
 * Revision 1.1  2005/01/17 13:43:00  jin.bai
 * Initial revision
 *
 *
 */
#ifndef _DISPLAY_WINDOW_INC_
#define _DISPLAY_WINDOW_INC_


//
// DisplayWindow class
//
class DisplayWindow
{
public:
	DisplayWindow();
	~DisplayWindow();

	BOOL Create(LPCTSTR lpszWindowName, 
		        DWORD dwStyle, 
				int x, 
				int y, 
				int nWidth, 
				int nHeight, 
				HWND hwndParent = NULL, 
				BOOL bOverlay = FALSE,
				LPDIRECTDRAWSURFACE lpPrimary = NULL,
				LPDIRECTDRAWCLIPPER lpClipper = NULL);
	
	HWND GetHwnd();
	BOOL Close();

protected:
	BOOL RegWindowClass(LPCTSTR lpszClsName, WNDPROC lpfnWndProc);
	static LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
	
private:
	HWND m_hWnd;
	LPCTSTR m_lpszClsName;
	BOOL m_bOverlay;

	LPDIRECTDRAWSURFACE m_lpPrimary;// Pointer to the primary surface 
	LPDIRECTDRAWCLIPPER m_lpClipper;// Pointer to the clipper 
};



#endif // DisplayWindow.h
// End of file ///////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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