home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / tool / various / iniwiz / iniwiz.h < prev    next >
Text File  |  1994-04-05  |  3KB  |  66 lines

  1. typedef char typBUFF[80];
  2.  
  3. //---------------------------------------------------------------------------
  4. // Control Procedure
  5. //---------------------------------------------------------------------------
  6. LONG FAR PASCAL _export INIWIZCtlProc(HCTL, HWND, USHORT, USHORT, LONG);
  7.  
  8. //---------------------------------------------------------------------------
  9. //  Declare the subclass procedure.
  10. //---------------------------------------------------------------------------
  11. LONG FAR PASCAL _export SbClsProc(HWND,USHORT,USHORT,LONG);
  12.  
  13. //---------------------------------------------------------------------------
  14. // Model struct
  15. //---------------------------------------------------------------------------
  16. // Define the control model (using the event and property structures).
  17. //---------------------------------------------------------------------------
  18. MODEL modelINIWIZ =
  19.     {
  20.     VB_VERSION,                     // VB version being used
  21.     MODEL_fInvisAtRun,            // MODEL flags
  22.     (PCTLPROC)INIWIZCtlProc,    // Control procedure
  23.     CS_VREDRAW | CS_HREDRAW,    // Class style
  24.     0,                                // Default Windows style
  25.     sizeof(INIWIZINFO),            // Size of INIWIZ structure
  26.     IDBMP_INIWIZ,                    // Palette bitmap ID
  27.     "IniWizard",                    // Default control name
  28.     "INIWIZ",                        // Visual Basic class name
  29.     NULL,                            // Parent class name
  30.     INIWIZ_Properties,            // Property information table
  31.     INIWIZ_Events,                // Event information table
  32.     IPROP_INIWIZ_CTLNAME,        // Default property
  33.     IEVENT_INIWIZ_CHANGE,        // Default event
  34.     IPROP_INIWIZ_ACTION            // Property representing value of ctl
  35.     };
  36.  
  37.  
  38. //---------------------------------------------------------------------------
  39. // Global Info Common to all instances of this control
  40. //---------------------------------------------------------------------------
  41.  
  42.  
  43. typedef struct tagVBXINFO{
  44.     FARPROC    lpfnOldProc;    //Far Procedure of the Parent Window Proc
  45.     HCTL        hctl;                //Control Handle
  46.     HWND        hControl;        //Window Handle of the Control
  47.     HWND        hParent;            //Window Handle of the Parent
  48. }VBXINFO;
  49.  
  50. typedef VBXINFO FAR * LPVBXINFO;
  51.  
  52. //---------------------------------------------------------------------------
  53. //    Systemwide limit of the maximum number of INIWIZ VBX's Allowed
  54. //---------------------------------------------------------------------------
  55.  
  56. #define MAX_VBXS    10
  57.  
  58.  
  59.  
  60. #define CLASS_ABOUTPOPUP  "IniVBXAbout"
  61.  
  62. #define CM_OPENABOUTDLG WM_USER
  63.  
  64. LONG FAR PASCAL _export AboutPopupWndProc(HWND,USHORT ,USHORT ,LONG );
  65. BOOL FAR PASCAL _export AboutDlgProc (HWND ,USHORT ,USHORT ,LONG   );
  66.