home *** CD-ROM | disk | FTP | other *** search
/ On Hand / On_Hand_From_Softbank_1994_Release_2_Disc_2_1994.iso / 00202 / s / disk3 / xlistvb1.h_ / xlistvb1.bin
Text File  |  1993-04-28  |  3KB  |  89 lines

  1. //---------------------------------------------------------------------------
  2. //        Copyright (C) 1992-93 Microsoft Corporation
  3. //
  4. // You have a royalty-free right to use, modify, reproduce and distribute
  5. // the Sample Custom Control Files (and/or any modified version) in any way
  6. // you find useful, provided that you agree that Microsoft has no warranty,
  7. // obligation or liability for any Custom Control File.
  8. //---------------------------------------------------------------------------
  9. // XListVb1.h
  10. //---------------------------------------------------------------------------
  11. // Compatability file containing model for Vb1.0
  12. //---------------------------------------------------------------------------
  13.  
  14. //---------------------------------------------------------------------------
  15. // Property list
  16. //---------------------------------------------------------------------------
  17. PPROPINFO XList_Properties_Vb1[] =
  18.     {
  19.     PPROPINFO_STD_CTLNAME,
  20.     PPROPINFO_STD_INDEX,
  21.     PPROPINFO_STD_TAG,
  22.     PPROPINFO_STD_LEFT,
  23.     PPROPINFO_STD_TOP,
  24.     PPROPINFO_STD_WIDTH,
  25.     PPROPINFO_STD_HEIGHT,
  26.     PPROPINFO_STD_FONTNAME,
  27.     PPROPINFO_STD_FONTSIZE,
  28.     &Property_ItemBackColor,
  29.     &Property_ItemDefHeight,
  30.     &Property_ItemFontName,
  31.     &Property_ItemFontSize,
  32.     &Property_ItemForeColor,
  33.     &Property_ItemImage,
  34.     &Property_ItemInvert,
  35.     PPROPINFO_STD_HWND,
  36.     NULL
  37.     };
  38.  
  39.  
  40. //---------------------------------------------------------------------------
  41. // Event list
  42. //---------------------------------------------------------------------------
  43. PEVENTINFO XList_Events_Vb1[] =
  44.     {
  45.     PEVENTINFO_STD_CLICK,
  46.     NULL
  47.     };
  48.  
  49.  
  50. //---------------------------------------------------------------------------
  51. // Model struct
  52. //---------------------------------------------------------------------------
  53. // Define the control model (using the event and property structures).
  54. //---------------------------------------------------------------------------
  55. MODEL modelXList_Vb1 =
  56.     {
  57.     VB_VERSION,             // VB version being used
  58.     MODEL_fFocusOk | MODEL_fArrows    // MODEL flags
  59.            | MODEL_fInitMsg,
  60.     (PCTLPROC)XListCtlProc,             // Control procedures
  61.     CS_DBLCLKS | CS_HREDRAW        // Class style
  62.            | CS_VREDRAW,
  63.     WS_VSCROLL | WS_BORDER        // Window style
  64.            | LBS_NOTIFY
  65.            | LBS_OWNERDRAWVARIABLE
  66.            | LBS_HASSTRINGS,
  67.     sizeof(XLIST),            // Size of XLIST structure
  68.     IDBMP_XLISTUP,            // Palette bitmap ID
  69.     "XList",                // Default control name
  70.     "XListBox",             // Visual Basic class name
  71.     "LISTBOX",                // Parent class name
  72.     XList_Properties_Vb1,        // Property information table
  73.     XList_Events_Vb1            // Event information table
  74.     };
  75.  
  76. LPMODEL modelListXList_Vb1[] =
  77.     {
  78.     &modelXList_Vb1,
  79.     NULL
  80.     };
  81.  
  82. MODELINFO modelInfoXList_Vb1 =
  83.     {
  84.     VB100_VERSION,              // VB version being used
  85.     modelListXList_Vb1              // MODEL list
  86.     };
  87.  
  88. //---------------------------------------------------------------------------
  89.