home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / COMBO.ZIP / COMBOSUP.DOC < prev    next >
Text File  |  1990-01-28  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                            Combo Box Support Routines
  8.                            Dave Briccetti, 74475,1072
  9.                                 January 28, 1990
  10.  
  11.  
  12.  
  13.      The routines in COMBOSUP.C are used to  help set up combo boxes.  They
  14.      make it easy to add strings to the combo box's listbox,  and to select
  15.      the initial listbox item.
  16.  
  17.      There are two routines provided:
  18.  
  19.           InitComboBox -                takes  an  array  of   pointers  to
  20.                                         strings,  and  adds each  string to
  21.                                         the listbox
  22.  
  23.           InitComboBoxFromRcStrings -   takes an array  of resource  string
  24.                                         identifiers,   loads  the   strings
  25.                                         corresponding  to  the identifiers,
  26.                                         and adds the strings to the listbox
  27.  
  28.      Both of these  routines also  take a parameter  which specifies  which
  29.      listbox entry, if any, is to be selected initially.
  30.  
  31.      These routines come compiled and linked into a DLL file, COMBOSUP.DLL.
  32.      Library  COMBOSUP.LIB  can  be  used  for  linking,  to   establish  a
  33.      connection to the routines in the DLL.
  34.  
  35.      COMBOSMP.C  is a sample  program which uses the  two combo box support
  36.      routines.  It creates a standard window containing two combo boxes. It
  37.      initializes  one combo  box  with  InitComboBox,  and the  other  with
  38.      InitComboBoxFromRcStrings.
  39.  
  40.      COMBOSMP comes compiled and  linked into COMBOSMP.EXE.  It  expects to
  41.      find COMBOSUP.DLL in the LIBPATH.
  42.  
  43.      These programs may be used without any restrictions.
  44.  
  45.      Dave Briccetti
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.