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

📄 ccreditsscroller.h

📁 camera 驱动源码
💻 H
字号:

//
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -