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

📄 displaywindow.h

📁 DRAWYUV程序是用于摄像头的数据回放,用了directshow,可以用在VC和wince都可
💻 H
字号:
/*
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -