home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
VPR_DATA
/
DOGA
/
SOURCES
/
POLYEDIT.LZH
/
MODEL
/
DLOG.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-29
|
2KB
|
93 lines
/*
* ダイヤログボックス制御
*
* Copyright T.Kobayashi 1994.7.24
*/
#ifndef DLOG
#define DLOG
#define DLOG_STRING 1
#define DLOG_TOGGLE 2
#define DLOG_SELECT 3
#define DLOG_SLIDER 4
#define DLOG_MAX_BUTTON 5
typedef struct {
int type ;
void (*func)();
int x1, y1, x2, y2 ;
}
EventData ;
typedef struct {
int type ;
void (*func)();
int x1, y1, x2, y2 ;
int max ;
char str[96] ;
}
StringData ;
typedef struct {
int type ;
void (*func)();
int x1, y1, x2, y2 ;
int stat ;
}
ToggleData ;
typedef struct {
int type ;
void (*func)();
int x1, y1, x2, y2 ;
int step, sels ;
int stat ;
}
SelectData ;
typedef struct {
int type ;
void (*func)();
int x1, y1, x2, y2 ;
int size ;
int step ;
int count ;
int ident ;
}
SliderData ;
typedef union {
int type ;
EventData event ;
StringData str ;
ToggleData toggle ;
SelectData select ;
SliderData slider ;
}
DlogData ;
/* dlog.c */
#ifdef __cplusplus
extern "C" {
#endif
#if 0
extern void DlogOpen( char*, int, int );
#endif
extern void DlogOpen( char*, int, char *[] );
extern int DlogMessage( int, char* );
extern void DlogString( int, char*, char*, int, char * );
extern void DlogToggle( int, char*, char*, int );
extern void DlogSelect( int, char*, char**, int );
extern void DlogSlider( int, char*, int, int, int, int );
extern int DlogWait( void );
extern int DlogAnswer( int, char*, int* );
extern int DlogFileOpen(char *str, int n, char *title, char *def, char *defext, char *selext);
/* dloglib.c */
extern void DlogLibInit( void );
#ifdef __cplusplus
}
#endif
#endif