home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
tool
/
various
/
iniwiz
/
iniwiz.h
< prev
next >
Wrap
Text File
|
1994-04-05
|
3KB
|
66 lines
typedef char typBUFF[80];
//---------------------------------------------------------------------------
// Control Procedure
//---------------------------------------------------------------------------
LONG FAR PASCAL _export INIWIZCtlProc(HCTL, HWND, USHORT, USHORT, LONG);
//---------------------------------------------------------------------------
// Declare the subclass procedure.
//---------------------------------------------------------------------------
LONG FAR PASCAL _export SbClsProc(HWND,USHORT,USHORT,LONG);
//---------------------------------------------------------------------------
// Model struct
//---------------------------------------------------------------------------
// Define the control model (using the event and property structures).
//---------------------------------------------------------------------------
MODEL modelINIWIZ =
{
VB_VERSION, // VB version being used
MODEL_fInvisAtRun, // MODEL flags
(PCTLPROC)INIWIZCtlProc, // Control procedure
CS_VREDRAW | CS_HREDRAW, // Class style
0, // Default Windows style
sizeof(INIWIZINFO), // Size of INIWIZ structure
IDBMP_INIWIZ, // Palette bitmap ID
"IniWizard", // Default control name
"INIWIZ", // Visual Basic class name
NULL, // Parent class name
INIWIZ_Properties, // Property information table
INIWIZ_Events, // Event information table
IPROP_INIWIZ_CTLNAME, // Default property
IEVENT_INIWIZ_CHANGE, // Default event
IPROP_INIWIZ_ACTION // Property representing value of ctl
};
//---------------------------------------------------------------------------
// Global Info Common to all instances of this control
//---------------------------------------------------------------------------
typedef struct tagVBXINFO{
FARPROC lpfnOldProc; //Far Procedure of the Parent Window Proc
HCTL hctl; //Control Handle
HWND hControl; //Window Handle of the Control
HWND hParent; //Window Handle of the Parent
}VBXINFO;
typedef VBXINFO FAR * LPVBXINFO;
//---------------------------------------------------------------------------
// Systemwide limit of the maximum number of INIWIZ VBX's Allowed
//---------------------------------------------------------------------------
#define MAX_VBXS 10
#define CLASS_ABOUTPOPUP "IniVBXAbout"
#define CM_OPENABOUTDLG WM_USER
LONG FAR PASCAL _export AboutPopupWndProc(HWND,USHORT ,USHORT ,LONG );
BOOL FAR PASCAL _export AboutDlgProc (HWND ,USHORT ,USHORT ,LONG );