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

📄 cardlib.h

📁 ReactOS是一些高手根据Windows XP的内核编写出的类XP。内核实现机理和API函数调用几乎相同。甚至可以兼容XP的程序。喜欢研究系统内核的人可以看一看。
💻 H
字号:
#ifndef CARDLIB_INCLUDED
#define CARDLIB_INCLUDED

#define CARDLIBPROC __stdcall

void CardBlt(HDC hdc, int x, int y, int nCardNum);
void CardLib_SetZoomSpeed(int);

#define CS_EI_NONE	0
#define CS_EI_SUNK	1

#define CS_DEFXOFF			12		//x-offset
#define CS_DEFYOFF			18		//y-offset
#define CS_NO3D				1		//default 3d counts (recommened)
#define CS_DEF3D			10		//(best for decks)

//#define CS_EI_CIRC	2
//#define CS_EI_X		3

#define CS_DRAG_NONE		0
#define CS_DRAG_TOP			1
#define CS_DRAG_ALL			2
#define CS_DRAG_CALLBACK	3

#define CS_DROP_NONE		0
#define CS_DROP_ALL			1
#define	CS_DROP_CALLBACK	2

#define CS_XJUST_NONE		0
#define CS_XJUST_RIGHT		1
#define CS_XJUST_CENTER		2

#define CS_YJUST_NONE		0
#define CS_YJUST_BOTTOM		1
#define CS_YJUST_CENTER		2

#define CB_STATIC			0		//static text label
#define CB_PUSHBUTTON		1		//normal button
#define CB_ALIGN_CENTER		0		//centered is default
#define CB_ALIGN_LEFT		2
#define CB_ALIGN_RIGHT		4

#define CS_FACE_UP		 0	//all cards face-up
#define CS_FACE_DOWN	 1	//all cards face-down
#define CS_FACE_DOWNUP	 2	//bottom X cards down, top-most face-up
#define CS_FACE_UPDOWN	 3	//bottom X cards up, top-most face-down
#define CS_FACE_ANY		 4	//cards can be any orientation

#define CS_DROPZONE_NODROP	-1

//
//	Define the standard card-back indices
//
#define ecbCROSSHATCH	53
#define ecbWEAVE1		54
#define ecbWEAVE2		55
#define ecbROBOT		56
#define ecbFLOWERS		57
#define ecbVINE1		58
#define ecbVINE2		59
#define ecbFISH1		60
#define ecbFISH2		61
#define ecbSHELLS		62
#define ecbCASTLE		63
#define ecbISLAND		64
#define ecbCARDHAND		65
#define ecbUNUSED		66
#define ecbTHE_X		67
#define ecbTHE_O		68


class CardRegion;
class CardButton;
class CardStack;
class CardWindow;

typedef bool (CARDLIBPROC *pCanDragProc)    (CardRegion &stackobj, int iNumDragging);
typedef bool (CARDLIBPROC *pCanDropProc)    (CardRegion &stackobj, const CardStack &cards);
typedef void (CARDLIBPROC *pClickProc)      (CardRegion &stackobj, int iNumCards);
typedef void (CARDLIBPROC *pAddProc)        (CardRegion &stackobj, const CardStack &cards);
typedef void (CARDLIBPROC *pRemoveProc)     (CardRegion &stackobj, int iNumRemoved);

typedef void (CARDLIBPROC *pResizeWndProc)  (int width, int height);
typedef int  (CARDLIBPROC *pDropZoneProc)   (int dzid, const CardStack &cards);

typedef void (CARDLIBPROC *pButtonProc)		(CardButton &pButton);


#include "card.h"
#include "cardbutton.h"
#include "cardstack.h"
#include "cardregion.h"
#include "cardcount.h"
#include "cardwindow.h"

#ifdef _DEBUG
typedef bool (CARDLIBPROC *pDebugClickProc) (CardRegion &stackobj);
void CardLib_SetStackClickProc(pDebugClickProc proc);
#endif


#endif

⌨️ 快捷键说明

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