📄 hotspot.h
字号:
// HotSpot.h: interface for the CHotSpot class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_HOTSPOT_H__40479C60_872D_11D4_8633_A1F734F3A07D__INCLUDED_)
#define AFX_HOTSPOT_H__40479C60_872D_11D4_8633_A1F734F3A07D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//DEFINE FOR THE RECT ARRAY
#define MAXHOTSPOTS 36
//these are the defines for the particle system parameter hotspots
#define HS_ALPHA_START 0
#define HS_ALPHA_END 1
#define HS_GRAV_START_X 2
#define HS_GRAV_END_X 3
#define HS_RED_START 4
#define HS_RED_END 5
#define HS_GREEN_START 6
#define HS_GREEN_END 7
#define HS_BLUE_START 8
#define HS_BLUE_END 9
#define HS_THETA 10
#define HS_SIZE_START 11
#define HS_SIZE_END 12
#define HS_SPEED 13
#define HS_LIFE 14
#define HS_EMMISION 15
#define HS_FLOOR 18
#define HS_GRAV_END_Y 19
#define HS_GRAV_START_Z 20
#define HS_MOVING 22
#define HS_BOING 23
#define HS_GRAV_START_Y 25
#define HS_GRAV_END_Z 28
#define HS_VAR_ALPHA 29
#define HS_VAR_COLOR 30
#define HS_VAR_SIZE 31
#define HS_VAR_LIFE 32
#define HS_VAR_SPEED 33
//INTERFACE SPECIFIC HOTSPOTS
#define HS_ON_PAD 16
#define HS_BURST 17
#define HS_TEXTURE 21
#define HS_CAMERA 24
#define HS_HIDE_KEYPAD 26
#define HS_EXIT 27
#define HS_PRESETS 35
//JUST AN INTEGER TO SAY MOUSE NOT ON A HOTSPOT
#define HS_NOT_ON_SPOT 100
#include <windows.h>
class CHotSpot
{
public:
//Is the mouse on a hotspot
int OnHotSpot(POINT m_pt);
//Constructor defines the RECT coordinates of the hotspots
CHotSpot();
//destructor
virtual ~CHotSpot();
// member variables
//set up an array of 36 hotspots with a RECT (defined in windows.h) structure
RECT m_RectHotSpot[MAXHOTSPOTS];
};
#endif // !defined(AFX_HOTSPOT_H__40479C60_872D_11D4_8633_A1F734F3A07D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -