home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
MAGAZINE
/
MSJOURNA
/
MSJV5_4.ZIP
/
CONTROL.ZIP
/
CONTROL.H
next >
Wrap
Text File
|
1990-07-01
|
4KB
|
110 lines
/*
* CONTROL LIBRARY - GENERAL HEADER FILE
*
* LANGUAGE : Microsoft C5.1
* MODEL : small or medium
* ENVIRONMENT : Microsoft Windows 3.0 SDK
* STATUS : operational
*
* This header file defines the various identifiers and structures
* necessary to create controls for use with the dialog box editor.
*
* Note that this header file assumes that it is listed after
* the windows include file - windows.h.
*
* Eikon Systems, Inc.
* 989 East Hillsdale Blvd, Suite 260
* Foster City, California 94404
* 415-349-4664
*
* 07/21/89 1.00 - Kevin P. Welch - initial creation.
*
*/
/* general size definitions */
#define CTLTYPES 12 /* number of control types */
#define CTLDESCR 22 /* size of control menu name */
#define CTLCLASS 20 /* max size of class name */
#define CTLTITLE 94 /* max size of control text */
/* ordinal values for functions */
#define ORDWEP 1 /* window exit function */
#define ORDINFO 2 /* information function */
#define ORDSTYLE 3 /* style function */
#define ORDFLAGS 4 /* control flags function */
#define ORDWNDFN 5 /* window function */
#define ORDDLGFN 6 /* style dialog function */
/**/
/*
* CONTROL STYLE DATA STRUCTURE
*
* This data structure is used by the class style dialog function
* to set and/or reset various control attributes.
*
*/
typedef struct {
WORD wX; /* control x origin */
WORD wY; /* control y origin */
WORD wCx; /* control width */
WORD wCy; /* control height */
WORD wId; /* control id */
DWORD dwStyle; /* control style */
char szClass[CTLCLASS]; /* control class name */
char szTitle[CTLTITLE]; /* control text */
} CTLSTYLE;
typedef CTLSTYLE * PCTLSTYLE;
typedef CTLSTYLE FAR * LPCTLSTYLE;
/**/
/*
* CONTROL DATA STRUCTURE
*
* This data structure is returned by the control options function
* when enquiring about the capabilities of a particular control.
* Each control may contain various types (with predefined style
* bits) under one general class.
*
* The width and height fields are used to provide the host
* application with a suggested size. The values in these fields
* reference particular system metric calls.
*
* The cursor and bitmap handles reference objects which can be
* used by the dialog editor in the placement and definition of
* new, user-defined control classes. However, the current version
* does not use these fields.
*
*/
/* control type definitions */
#define CT_STD 0x0000
typedef struct {
WORD wType; /* control type */
WORD wWidth; /* sample width (RC units) */
WORD wHeight; /* sample height (RC units) */
DWORD dwStyle; /* default style */
char szDescr[CTLDESCR]; /* menu name */
} CTLTYPE;
typedef struct {
WORD wVersion; /* control version */
WORD wCtlTypes; /* control types */
char szClass[CTLCLASS]; /* control class name */
char szTitle[CTLTITLE]; /* control title */
char szReserved[10]; /* reserved for future use */
CTLTYPE Type[CTLTYPES]; /* control type list */
} CTLINFO;
typedef CTLINFO * PCTLINFO;
typedef CTLINFO FAR * LPCTLINFO;
/* id to string translation function prototypes */
typedef DWORD (FAR PASCAL *LPFNSTRTOID)( LPSTR );
typedef WORD (FAR PASCAL *LPFNIDTOSTR)( WORD, LPSTR, WORD );
/