home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / LISTBOX / ALISTBOX.RC < prev    next >
Text File  |  1995-05-01  |  4KB  |  71 lines

  1. /******************************************************************************/
  2. /* List Box Sample Program                                                    */
  3. /*                                                                            */
  4. /* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. */
  5. /*                                                                            */
  6. /* DISCLAIMER OF WARRANTIES:                                                  */
  7. /*   The following [enclosed] code is sample code created by IBM              */
  8. /*   Corporation.  This sample code is not part of any standard IBM product   */
  9. /*   and is provided to you solely for the purpose of assisting you in the    */
  10. /*   development of your applications.  The code is provided "AS IS",         */
  11. /*   without warranty of any kind.  IBM shall not be liable for any damages   */
  12. /*   arising out of your use of the sample code, even if they have been       */
  13. /*   advised of the possibility of such damages.                              */
  14. /******************************************************************************/
  15.  
  16. #include "alistbox.h"                           //Symbolic Definitions
  17.  
  18. ICON WND_MAIN alistbox.ico
  19.  
  20. /******************************************************************************/
  21. /* string table                                                               */
  22. /******************************************************************************/
  23. STRINGTABLE
  24.   BEGIN
  25.     WND_MAIN          , "List Box Sample"
  26.     STR_INFO          , "multiple selection list box item count = "
  27.     MI_LISTBOX        , "listbox menu"
  28.     MI_ADD_ITEMS      , "add items to listbox"
  29.     MI_READ_SEL_ITEMS , "read selected items and write to trace"
  30.     MI_READ_ALL_ITEMS , "read all items and write to trace"
  31.     MI_EDIT           , "edit memu"
  32.     MI_SELECT_ALL     , "select all items in listbox"
  33.     MI_DESELECT_ALL   , "deselect all items in listbox"
  34.     MI_EXCEPTION      , "generate exception"
  35.     MI_GEN_EXCPT      , "catch exception and write to listbox"
  36.     MI_GEN_EXCPT_UNH  , "catch using window exception handler"
  37.     MI_MSGBOX_TITLE   , "Successful exception handling"
  38. END
  39.  
  40. /******************************************************************************/
  41. /* menu bar                                                                   */
  42. /******************************************************************************/
  43. MENU WND_MAIN
  44.   BEGIN
  45.     SUBMENU "~List Box"                 ,  MI_LISTBOX
  46.       BEGIN
  47.         MENUITEM "~Add items"           ,  MI_ADD_ITEMS
  48.         MENUITEM "Read selected items"  ,  MI_READ_SEL_ITEMS
  49.         MENUITEM "Read all items"       ,  MI_READ_ALL_ITEMS
  50.       END
  51.     SUBMENU "~Edit"                     ,  MI_EDIT
  52.       BEGIN
  53.         MENUITEM "~Select all\tCtrl+/"      ,  MI_SELECT_ALL
  54.         MENUITEM "~Deselect all\tCtrl+\\"   ,  MI_DESELECT_ALL
  55.       END
  56.     SUBMENU "E~xceptions"               ,  MI_EXCEPTION
  57.       BEGIN
  58.         MENUITEM "~Handled"             ,  MI_GEN_EXCPT
  59.         MENUITEM "~Unhandled"           ,  MI_GEN_EXCPT_UNH
  60.       END
  61.   END
  62.  
  63. /******************************************************************************/
  64. /* accelerator keys                                                           */
  65. /******************************************************************************/
  66. ACCELTABLE WND_MAIN
  67.   BEGIN
  68.     "/"     , MI_SELECT_ALL     , CONTROL
  69.     "\\"    , MI_DESELECT_ALL   , CONTROL
  70.   END
  71.