?? displaywindow.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 + -