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 >
Wrap
Text File
|
1995-05-01
|
4KB
|
71 lines
/******************************************************************************/
/* List Box Sample Program */
/* */
/* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. */
/* */
/* DISCLAIMER OF WARRANTIES: */
/* The following [enclosed] code is sample code created by IBM */
/* Corporation. This sample code is not part of any standard IBM product */
/* and is provided to you solely for the purpose of assisting you in the */
/* development of your applications. The code is provided "AS IS", */
/* without warranty of any kind. IBM shall not be liable for any damages */
/* arising out of your use of the sample code, even if they have been */
/* advised of the possibility of such damages. */
/******************************************************************************/
#include "alistbox.h" //Symbolic Definitions
ICON WND_MAIN alistbox.ico
/******************************************************************************/
/* string table */
/******************************************************************************/
STRINGTABLE
BEGIN
WND_MAIN , "List Box Sample"
STR_INFO , "multiple selection list box item count = "
MI_LISTBOX , "listbox menu"
MI_ADD_ITEMS , "add items to listbox"
MI_READ_SEL_ITEMS , "read selected items and write to trace"
MI_READ_ALL_ITEMS , "read all items and write to trace"
MI_EDIT , "edit memu"
MI_SELECT_ALL , "select all items in listbox"
MI_DESELECT_ALL , "deselect all items in listbox"
MI_EXCEPTION , "generate exception"
MI_GEN_EXCPT , "catch exception and write to listbox"
MI_GEN_EXCPT_UNH , "catch using window exception handler"
MI_MSGBOX_TITLE , "Successful exception handling"
END
/******************************************************************************/
/* menu bar */
/******************************************************************************/
MENU WND_MAIN
BEGIN
SUBMENU "~List Box" , MI_LISTBOX
BEGIN
MENUITEM "~Add items" , MI_ADD_ITEMS
MENUITEM "Read selected items" , MI_READ_SEL_ITEMS
MENUITEM "Read all items" , MI_READ_ALL_ITEMS
END
SUBMENU "~Edit" , MI_EDIT
BEGIN
MENUITEM "~Select all\tCtrl+/" , MI_SELECT_ALL
MENUITEM "~Deselect all\tCtrl+\\" , MI_DESELECT_ALL
END
SUBMENU "E~xceptions" , MI_EXCEPTION
BEGIN
MENUITEM "~Handled" , MI_GEN_EXCPT
MENUITEM "~Unhandled" , MI_GEN_EXCPT_UNH
END
END
/******************************************************************************/
/* accelerator keys */
/******************************************************************************/
ACCELTABLE WND_MAIN
BEGIN
"/" , MI_SELECT_ALL , CONTROL
"\\" , MI_DESELECT_ALL , CONTROL
END