亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ddbutton.h

?? 赤壁之戰的游戲源代碼
?? H
字號:
/////////////////////////
// 	DDButton.h		:	v0010
//	Written by 	:	Li	Haijun
//	Compiler	:	Microsoft Visual C++ 4.2
//	v0010		:	Oct.25.1996
/////////////////////////

/////////////////////////////////////////////////////////////////////////////
// CDButton class
#ifndef __DDBUTTON_H__
#define __DDBUTTON_H__

#include	"stdafx.h"
#include	"ddapi.h"
#include	"marco.h"

/////////////////////////////////////////
// to test whether a button is clicked
/////////////////////////////////////////
BOOL	LeftButtonDownOnButton(int xPos, int yPos);
// to test whether cursor is on current button when left button up
BOOL	LeftButtonUpOnButton(int xPos, int yPos);
// to test whether cursor is moved on a button
BOOL	MouseMoveOnButton(int xPos, int yPos);
/////////////////////////////////////////
// to set all button's state when change the command state
void	FACE_SetAllButtonState(int state);
// to restore all button's state when change the command state
void	FACE_RestoreAllButtonState();
// to set pause button active when set program state to pause
void	FACE_SetPauseButtonActive();
//	to release all bitmap when you exit this game
void	FACE_DeleteAllButton();
///////////////////////////////////////////////////////////////////////
// class declear
class CDDButton
{
	//member
private:
// the surface that this button is load on
	CDDSurface	m_BitmapSurface;
// Attributes
private:

	int		m_nFileNameId;	// name of this DIB file name
	char	m_PromptString[256];	// to show this string then you move mouse on this button
	SIZE	m_szOneBitmap;	// the size of one state of a bitmap button
	RECT	m_rTotal;		// there is four state of a bitmap button in a DIB file	
	RECT	m_rCurrent;		// the rectangle of current state bitmap button
	int		m_dwX, m_dwY;		// the position of a bitmap button on the surface

	int  m_nID;		// button id
	int	 m_nPreviousState;	// to store the previous button state
	int  m_nPart;	// how many part should the dib image file be devided
					// that means,how many state image in one dib file

	BOOL m_bEnableSound;	// true for enable sound effects

public:
		int  m_nState;	// button state,0-up,1-down,2-disable,3-focus

public:
	CDDButton();		//constructor
	~CDDButton();		//destructor

// Initialize the data member
public:	
	// initializes
	BOOL PreLoad(int FilenameId, int x, int y, int OneBitmapWidth=0, int OneBitmapHeight=0, int ColorKeyFlag = FALSE ); //, int part);	// always used in the contructor of its parent
	void Release(void);
	void LoadSound(LPCTSTR lpszDown, LPCTSTR lpszUp, LPCTSTR lpszDisable);	// for playing sound

	// attributes
	// set the ID of this bitmap button
	void SetID(int ID);	//to set this button's ID
	// to get the ID of this bitmap button
	int  GetID(void);
	// set the state of this bitmap button
	void SetState(int state);	// let button up or down or ...
	// get the state of this bitmap button
	int GetState(){return m_nState;}	// get button state
	// to get the previous state of this bitmap button
	int GetPreState(){return m_nPreviousState;}
	// to get the size of this button
	SIZE GetSize(){return m_szOneBitmap;}	
	// to set the position of left top corner of this button to show
	void SetPosition(int PosX, int PosY);
	/////////////////////////////////////////
	// to set all button's state when change the command state
	void	SetAllButtonState(int state);
	// to restore all button's state when change the command state
	void	RestoreAllButtonState();
	// to get the name of this button's bitmap file
	int GetNameId(){return m_nFileNameId;}	// get button name id
	// to set the prompt string
	void	SetPromptString( LPCTSTR lpszPromptString );
	// to cat the four data (錢,糧,木,鐵) to the prompt string
	void	CatPromptString( int Money, int Food, int Wood, int Iron );
	// to cat the 所需計謀 value to the prompt string
	void	CatJmString( int Jm );
	// to get the prompt string
	char*	GetPromptString( void ){ return m_PromptString; }
	// to show the prompt string
	void	ShowPromptString();
	// to erase the prompt area when mouse move out the command button or mouse-left-button down on the command button
	void CDDButton::ErasePromptRect();
	// operations
	//to test if the given point on this button
	BOOL OnButton( int x, int y);
	//blit the current part of image to the direct surface
	void Show(BOOL flag = TRUE); // flag = TRUE --> to place bitmap to back buffer and updata the front butter
								 //		   FALSE -> only to place bitmap to back buffer
	// to blit this button to back buffer
	void Blit();
	// to update the area of this button from back buffer to front buffer
	void Update();
	// blit the current part of image to back buffer
	void BlitToBackBuffer( );
	// send a message to the message quene
	LRESULT	SendAMessage( int lParam = 0 );
	// erase the rectangle of this bitmap button used (with black color)
};

class	CDDButtonUnit
{
	// Data member
	public:
		class CDDButton * m_pButton[MAX_BUTTONINUNIT];

	public:
		//construct
		CDDButtonUnit();
		//to set state to all members that in this button unit
		void	SetMemberState( int state );
		// to show this button unit
		void Show(BOOL flag = TRUE); // flag = TRUE --> to place bitmap to back buffer and updata the front butter
									 //		   FALSE -> only to place bitmap to back buffer
		// to blit every button of this button unit to back buffer
		void Blit();
		// to update the area of every one button in this button unit from back buffer to front buffer
		void Update();
		// to release all button in this button-unit
		void	Release();
};
/////////////////////////////////////////////////////////////////////////////
#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美三级韩国三级日本一级| 不卡在线观看av| 99久久久无码国产精品| 亚洲人123区| 日本韩国欧美在线| 美女高潮久久久| 中文字幕视频一区| 欧美日韩中字一区| 国产精品99久| 亚洲欧美激情视频在线观看一区二区三区| 欧美性xxxxxx少妇| 秋霞午夜av一区二区三区| 国产精品福利影院| 欧美午夜一区二区三区| 国产成人高清在线| 国产精品久久久久久久午夜片| 欧美日韩一区高清| 久久精品国产久精国产爱| 亚洲精品中文字幕乱码三区| 日韩欧美一级二级三级| 91视频一区二区三区| 免费不卡在线视频| 亚洲一区二区黄色| 国产日韩亚洲欧美综合| 4438x成人网最大色成网站| 成人黄色国产精品网站大全在线免费观看| 亚洲欧美一区二区三区国产精品| 欧美色图12p| 国产一区二区三区av电影| 日韩精品国产精品| 伊人色综合久久天天人手人婷| 欧美高清你懂得| 国产精品一区二区在线播放 | 亚洲欧美福利一区二区| 久久夜色精品国产噜噜av| 在线播放日韩导航| 欧美影视一区二区三区| 国产一区二区三区在线观看免费视频| 亚洲成人一区二区| 亚洲免费观看高清完整版在线观看| 久久网站热最新地址| 欧美一区二区在线免费观看| 国产经典欧美精品| 国产一区二区在线看| 亚洲欧洲精品一区二区三区不卡| 在线欧美小视频| www.久久久久久久久| 高清日韩电视剧大全免费| 一区二区三区欧美| 久久久国际精品| 久久麻豆一区二区| 欧美成人激情免费网| 欧美一区二区三区在线观看| 一本久道中文字幕精品亚洲嫩| 国产精品99精品久久免费| 国产麻豆精品一区二区| 国产麻豆精品视频| 国产精品18久久久久久久网站| 蜜乳av一区二区| 亚洲1区2区3区视频| 午夜一区二区三区在线观看| 亚洲国产一区在线观看| 亚洲色图丝袜美腿| 亚洲女厕所小便bbb| 亚洲日本一区二区三区| 亚洲欧美日韩一区| 亚洲一二三四久久| 天天综合色天天综合| 亚洲成在线观看| 亚洲免费av在线| 一区二区三区**美女毛片| 一区二区视频在线看| 亚洲精品少妇30p| 一区二区三国产精华液| 亚洲aaa精品| 精一区二区三区| 成人做爰69片免费看网站| 国产精品综合视频| 奇米色一区二区| 粉嫩久久99精品久久久久久夜| 成人av电影免费在线播放| 精品国产精品网麻豆系列| 日韩三级视频在线看| 在线不卡免费av| 久久影院午夜片一区| 久久美女艺术照精彩视频福利播放| 久久日韩粉嫩一区二区三区 | 成人av免费在线| 国产a久久麻豆| 99国产精品一区| 884aa四虎影成人精品一区| 欧美视频完全免费看| 在线日韩av片| 精品三级在线看| 久久女同互慰一区二区三区| 亚洲欧美激情插| 美女国产一区二区三区| 高清成人免费视频| 欧美日韩一区不卡| 久久亚洲精精品中文字幕早川悠里 | 欧美在线999| 日韩视频永久免费| 国产精品久久久久久久午夜片| 免费不卡在线观看| 在线免费亚洲电影| 久久久91精品国产一区二区三区| 亚洲五码中文字幕| 成人中文字幕电影| 在线综合+亚洲+欧美中文字幕| 亚洲欧洲色图综合| 国产高清精品在线| 精品入口麻豆88视频| 肉丝袜脚交视频一区二区| 91国产丝袜在线播放| 国产精品久久精品日日| 国产成人午夜视频| 精品免费视频.| 美脚の诱脚舐め脚责91| 欧美一区二区三区免费大片 | 欧美日本乱大交xxxxx| 亚洲青青青在线视频| 北岛玲一区二区三区四区| 国产三级久久久| 国产精品一二三| 久久久777精品电影网影网| 国内偷窥港台综合视频在线播放| 91精品欧美一区二区三区综合在 | 国产精品自在在线| 日韩亚洲国产中文字幕欧美| 亚洲免费在线看| 国产精品一区二区久激情瑜伽 | 99国产精品视频免费观看| 91精选在线观看| 国产亚洲一区二区三区| 国产亚洲精品中文字幕| 三级亚洲高清视频| 91福利精品视频| 91国产福利在线| 久久人人爽爽爽人久久久| 亚洲欧美国产77777| 日本高清视频一区二区| 久久久久亚洲综合| 在线观看av一区| 久久在线观看免费| 精品国产不卡一区二区三区| 美国毛片一区二区| 欧美日韩一级二级| 热久久免费视频| 在线不卡中文字幕播放| 椎名由奈av一区二区三区| 色偷偷久久一区二区三区| 久久久久国产一区二区三区四区| 成人小视频在线| 久久精品欧美一区二区三区麻豆| 亚洲成av人**亚洲成av**| 91精品国产高清一区二区三区蜜臀| 国产精品传媒视频| 久久精品av麻豆的观看方式| 欧美日韩国产欧美日美国产精品| 国产精品卡一卡二| 欧美日韩午夜在线| 亚洲激情五月婷婷| 日本一区二区免费在线观看视频| 九九九久久久精品| 日韩视频免费观看高清完整版| 国产电影一区二区三区| 精品美女在线观看| 国内久久婷婷综合| 精品成人佐山爱一区二区| 国产精品狼人久久影院观看方式| 91高清视频免费看| 国产女人水真多18毛片18精品视频| 视频在线观看一区| 3d成人h动漫网站入口| 欧美一区二区播放| 久久青草欧美一区二区三区| 波多野结衣精品在线| 国产精品视频线看| av电影天堂一区二区在线| 五月天亚洲精品| 欧美日本一区二区| 国产精品2024| 中文久久乱码一区二区| 久久精品视频一区二区三区| 色婷婷激情一区二区三区| 亚洲精品少妇30p| 久久久一区二区三区| 国产福利91精品一区| 日韩欧美一区在线观看| 日本伊人色综合网| 日韩精品一区二区三区在线 | 国产成人精品免费| 午夜伦理一区二区| 国产成a人亚洲精| 亚洲日本va在线观看| 色94色欧美sute亚洲线路二| 午夜精品福利一区二区三区av| 91精品国产高清一区二区三区| 亚洲自拍欧美精品| 欧美xxxx老人做受|