ccreditsscroller.h

来自「camera 驱动源码」· C头文件 代码 · 共 54 行

H
54
字号

//
// CCreditsScroller.h
// Definition of CCreditsScroller class
// Ryan Lederman, ryan@winprog.org
//

#include "windows.h"

#ifndef CREDITSCROLLER_H
#define CREDITSCROLLER_H

typedef struct {
	int iPixelStep;
	int iTextOutHeight;
	int *iTextOutY;
	RECT *pRect;
	HWND hHandle;
} SCROLLSTRUCT, *PSCROLLSTRUCT;

class CCreditsScroller
{
public: /* Public Functions */
	CCreditsScroller();
	BOOL Initialize( HWND hWindow, HDC winDC,int iWidth, int iHeight, int iXpos, int iYpos, COLORREF clrBackground, COLORREF clrForeground, char *szFontName );
	void Cleanup( void );
	BOOL SetString( char *szString, int len );
	BOOL TextToScreen( void );
	BOOL Start(HWND hWindow, int iMilliseconds, int iPixelStep );
	static VOID CALLBACK TimerProc( HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime );
public: /* Public Member Variables */

private: /* Private Functions */

private: /* Private Member Variables */
	HDC m_dcMemoryDC;
	HDC m_dcWinDC;
	int m_iDrawHeight;
	int m_iDrawWidth;
	int m_iDrawX;
	int m_iDrawY;
	int m_iTextOutHeight;
	int m_iTextOutY;
	int m_bufferlen;
	HBITMAP m_hMemoryBitmap;
	HBRUSH  m_hBrushBackground;
	HFONT   m_hFont;
	char *m_buffer;
	RECT m_rectangle;
	COLORREF m_clrForeground;
	COLORREF m_clrBackground;
	HWND m_hWindow;
};
#endif /* CREDITSCROLLER_H */

⌨️ 快捷键说明

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