home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
VPR_DATA
/
DOGA
/
SOURCES
/
POLYEDIT.LZH
/
MODEL
/
BUTTON.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-03-11
|
1KB
|
54 lines
/*
* ユーザーボタン制御
*
* Copyright M.Takatsu 1996.1.24
*/
#ifndef BUTTON_H
#define BUTTON_H
#define MAX_BUTTON 40 /* ボタンの最大数 */
#define BUTTON_WIDTH 20 /* ボタンの幅 */
#define BUTTON_HEIGHT 20 /* ボタンの高さ */
#define BUTTON_BITMAP_WIDTH 16
#define BUTTON_BITMAP_HEIGHT 16
#define BUTTON_UNUSED 0
#define BUTTON_STRING 1
#define BUTTON_BITMAP 2
#define BUTTON_DISABLE 0
#define BUTTON_ENABLE 1
#define BUTTON_NOREPEAT 0
#define BUTTON_REPEAT 2
typedef struct {
int type ;
short x, y ;
int exec;
int enable;
unsigned char bitmap[((BUTTON_BITMAP_WIDTH-1)/16+1)*2*BUTTON_BITMAP_HEIGHT];
}
ButtonData ;
extern ButtonData UserButton[MAX_BUTTON];
extern int ButtonClassID;
extern int ButtonAreaWidth;
#ifdef __cplusplus
extern "C" {
#endif
/* button.c */
extern void ButtonInit( void );
extern void DrawUserButtonAll( void );
extern void DrawUserButton( int pos );
extern void CallButton( int, int );
extern int CreateButton(int x, int y, char *bitmap, int type, int exec, int enable);
extern void SetButtonArea(int width);
/* buttlib.c */
extern void ButtonLibInit( void );
#ifdef __cplusplus
}
#endif
#endif