home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
IOC
/
HELLO5
/
AHELLOW5.RC
< prev
next >
Wrap
Text File
|
1995-04-14
|
10KB
|
137 lines
/******************************************************************************/
/* HELLO WORLD SAMPLE PROGRAM - Version 5: Resource Definitions (ahellow5.rc) */
/* */
/* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1995. */
/* */
/* 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. */
/******************************************************************************/
#ifdef IC_PM
#include <os2.h> //Include os2.h V4
#endif
#include "ahellow5.h" //Symbolic definitions v5
//************************************************************************** V2
// icon and bitmap resources * V2
// Relate symbolic name to file containing main window icon. * V2
//************************************************************************** V2
ICON WND_MAIN ahellow5.ico //Application icon v5
//************************************************************************** V2
// string resources * V2
// Relate symbolic names to literal text strings. * V2
//************************************************************************** V2
STRINGTABLE
BEGIN
STR_HELLO, "Hello, World!!!" //Hello World string V2
WND_MAIN, "Hello World Sample - Version 5" //Main window title string v5
WND_TEXTDIALOG, "Hello World Edit Dialog" //Dialog window title string V4
STR_INFO, "Use Alt-F4 to Close Window" //Information area string V2
MI_EDIT, "Edit Menu" //InfoArea - Edit menu V4
MI_ALIGNMENT,"Alignment Menu" //InfoArea - Alignment menu V3
MI_CENTER, "Set Center Alignment" //InfoArea - Center menu item V3
MI_LEFT, "Set Left Alignment" //InfoArea - Left menu item V3
MI_RIGHT, "Set Right Alignment" //InfoArea - Right menu item V3
MI_TEXT, "Display Edit Dialog" //InfoArea - Text menu item V4
MI_HELP, "Help for Selected Item" //InfoArea - Help menu item V5
SC_HELPEXTENDED, "Display General Help" //InfoArea - Extended Help V5
SC_HELPKEYS,"Display Keys Help" //InfoArea - Keys Help V5
SC_HELPINDEX,"Display Help Index" //InfoArea - Help Index V5
STR_INFODLG,"Modal Edit Text Dialog Active" //InfoArea - Text dialog V4
STR_CENTER, "Center Alignment" //Status line text - Center V3
STR_LEFT, "Left Alignment" //Status line text - Left V3
STR_RIGHT, "Right Alignment" //Status line text - Right V3
STR_LEFTB, "Left" //String for Left Button V4
STR_CENTERB,"Center" //String for Center Button V4
STR_RIGHTB, "Right" //String for Right Button V4
STR_HELPB, "Help" //String for Help Button V5
STR_HTITLE, "C++ Hello World - Help Window" //Help window title string V5
STR_HELP_NOT_FOUND, "Help file not found. Help is not available." //V5
DID_OK, "OK" //Text dialog - OK button V4
DID_CANCEL, "Cancel" //Text dialog - Cancel button V4
DID_STATIC, "Edit Text:" //Text dialog - Prompt V4
DID_ENTRY, "" //Text dialog - Entry field V4
// Change HI_COUNT in ahellow5.h to change number of HIs used. V5
HI_WORLD, "Hello, World!" //English V5
HI_WORLD+1, "Hi, World!" //American V5
HI_WORLD+2, "Howdy, World!" //Southern American V5
HI_WORLD+3, "Alo, Mundo!" //Portuguese V5
HI_WORLD+4, "Ola, Mondo!" //Spanish V5
HI_WORLD+5, "Hallo wereld!" //Dutch V5
HI_WORLD+6, "Hallo Welt!" //German V5
HI_WORLD+7, "Bonjour le monde!" //French V5
HI_WORLD+8, "Put your language here!" //Add more items, too! V5
// Change HI_COUNT in ahellow5.h to change number of HIs used. V5
END
//************************************************************************** V3
// Menu bar for main window - used by IMenuBar Class * V3
// Define menu bar layout and relate symbolic names to menu item strings.* V3
//************************************************************************** V3
MENU WND_MAIN //Main window menu bar V3
BEGIN
SUBMENU "~Edit", MI_EDIT //Edit submenu V4
BEGIN
SUBMENU "~Alignment", MI_ALIGNMENT //Alignment submenu V3
BEGIN
MENUITEM "~Left\tF7", MI_LEFT //Left menu item - F7 Key V4
MENUITEM "~Center\tF8", MI_CENTER //Center menu item - F8 Key V4
MENUITEM "~Right\tF9", MI_RIGHT //Right menu item - F9 Key V4
END
MENUITEM "~Text...", MI_TEXT //Text dialog menu item V4
END
SUBMENU "~Help", MI_HELP, MIS_HELP //Help submenu V5
BEGIN //V5
MENUITEM "~General help...", SC_HELPEXTENDED, MIS_SYSCOMMAND //V5
MENUITEM "~Keys help...", SC_HELPKEYS, MIS_SYSCOMMAND //V5
MENUITEM "Help ~index...", SC_HELPINDEX, MIS_SYSCOMMAND //V5
END //V5
END
//************************************************************************** V4
// Accelerator (key) table resources * V4
// Relate accelerator keys to command IDs. * V4
//************************************************************************** V4
ACCELTABLE WND_MAIN //Main window accelerators V4
BEGIN // V4
VK_F7, MI_LEFT, VIRTUALKEY //F7 - Left command V4
VK_F8, MI_CENTER, VIRTUALKEY //F8 - Center command V4
VK_F9, MI_RIGHT, VIRTUALKEY //F9 - Right command V4
END // V4
//************************************************************************** V5
// Help table resources - used by IHelpWindow class * V5
// Relate window IDs to help file IDs. * V5
//************************************************************************** V5
HELPTABLE HELP_TABLE //V5
BEGIN //V5
HELPITEM WND_MAIN, SUBTABLE_MAIN, 100 //V5
HELPITEM WND_TEXTDIALOG, SUBTABLE_DIALOG, 200 //V5
END //V5
HELPSUBTABLE SUBTABLE_MAIN //Main window help subtable V5
BEGIN // V5
HELPSUBITEM WND_HELLO, 100 //Hello static text help ID V5
HELPSUBITEM WND_LISTBOX,102 //List box help ID V5
HELPSUBITEM MI_EDIT, 110 //Edit menu item help ID V5
HELPSUBITEM MI_ALIGNMENT, 111 //Alignment menu item help ID V5
HELPSUBITEM MI_LEFT, 112 //Left command help ID V5
HELPSUBITEM MI_CENTER, 113 //Center command help ID V5
HELPSUBITEM MI_RIGHT, 114 //Right command help ID V5
HELPSUBITEM MI_TEXT, 199 //Text command help ID V5
END // V5
HELPSUBTABLE SUBTABLE_DIALOG //Text dialog help subtable V5
BEGIN // V5
HELPSUBITEM DID_ENTRY, 201 //Entry field help ID V5
HELPSUBITEM DID_OK, 202 //OK command help ID V5
HELPSUBITEM DID_CANCEL, 203 //Cancel command help ID V5
END // V5