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

📄 wpig.h

📁 Programs in the irregular grid design package described in this manual are used to carry out five ma
💻 H
字号:
// File: Wpig.h         Contains ID values used by wpig.cpp

#define MENU_QUIT           -1
#define MENU_POP            -2
#define SCREENWIN            0L
#define MAINWIN              1L
#define CONTROLWIN           2L
long const STATUSWIN         = 3L;
#define PROFILEWIN           4L
#define REPAINT             5050
#define QUIT_EVENT          -5000
#define MOUSE_EVENT         -5001
#define NULL_EVENT          -5002
#define MENU_EVENT          -5003
#define KEYBOARD_EVENT      -5004
#define STRING_EVENT        -5005
#define PRINT_EVENT         -5006
#define DEBUGTOGGLE         5055

// colours passed to pigs by the applications

#define BLACK               0
#define WHITE               1
#define RED                 2
#define GREEN               3
#define BLUE                4
#define YELLOW              5
#define CYAN                6
#define VIOLET              7
#define DKGRAY              8
#define LTGRAY              9
#define DKRED               10
#define DKGREEN             11
#define DKBLUE              12
#define ORANGE              13
#define DKCYAN              14
#define VIOBLUE             15

// colours recognized by Windows

#define WBLACK          RGB(0,0,0)
#define WWHITE          RGB(255,255,255)
#define WRED            RGB(255,0,0)
#define WGREEN          RGB(0,255,0)
#define WBLUE           RGB(0,0,255)
#define WYELLOW         RGB(255,255,64)
#define WCYAN           RGB(0,255,255)
#define WVIOLET         RGB(255,0,255)
#define WDKGRAY         RGB(64,64,64)
#define WLTGRAY         RGB(128,128,128)
#define WDKRED          RGB(128,0,0)
#define WDKGREEN        RGB(0,128,0)
#define WDKBLUE         RGB(0,0,128)
#define WORANGE         RGB(255,64,0)
#define WDKCYAN         RGB(32,200,200)
#define WVIOBLUE        RGB(128,32,128)

// Symbol definitions

#define WPPOINT   1
#define WPCROSS   2
#define WPSPLAT   3
#define WPSQUARE  4
#define WPEX      5
#define WPDIAMOND 6
#define WPCIRCLE  7

#define ZOOM_ON         50
#define ZOOM_OFF        51

#define RUBBER_ON       60
#define RUBBER_OFF      61

#define LEFT_ALIGN      1
#define CENTRE_ALIGN    2
#define RIGHT_ALIGN     3
#define BASE_ALIGN      4
#define TOP_ALIGN       5
#define BOTTOM_ALIGN    6

#define LBUTTON         0
#define RBUTTON         1
#define MBUTTON         2

⌨️ 快捷键说明

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