home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / HELPTEST.ZIP / TESTBED.H < prev    next >
Text File  |  1990-09-14  |  3KB  |  91 lines

  1. /*************************
  2.  testbed.h 
  3.  *************************/
  4.  
  5. /*
  6.   BASIC NUMBERING SCHEME is as follows:
  7.  
  8.   The RESOURCE ID is used for all resources for a given window, including
  9.   the Help stuff.  The resource ID also doubles as the window ID for the
  10.   Frame of all windows who call the DESKTOP their parent.
  11.  
  12.   The resource ID's start at 1 and go up to 29.
  13.  
  14.   In general:
  15.   The Menu selection ID's are the Resouce ID * 1000, plus the number
  16.   of the top menu bar * 100, plus the number of the submenu item.  The HELP 
  17.   selection should always considered '0'.  Examples:  The 4th item on the 2nd
  18.   menu for the window using resource id 5 would be: 5204.  The id of the 
  19.   menu for this is 5200.  The Help Menu would be 5000.  But see below
  20.   for special considerations regarding items.
  21.  
  22.   The Help menu has some "standard" stuff, and possibly some non-standard 
  23.   stuff.  The Standard stuff has FIXED ID's for the menus, as follows:
  24.  
  25.     Help For help:   #define   IDM_HELPFORHELP       30001
  26.     Extended help:   #define   IDM_EXTENDEDHELP      30002
  27.     Keys help:       #define   IDM_KEYSHELP          30003
  28.     Help index:      #define   IDM_HELPINDEX         30004
  29.     Tutorial:        #define   IDM_TUTORIAL          30005 (optional)
  30.     About:           #define   IDM_ABOUT             30010 (only on main)
  31.  
  32.   The basic concept here is that the "main" window will handle help requests
  33.   for these.  So, any other window receiving these should relay the message
  34.   to the main window with a WinSendMsg() call.
  35.  
  36.   These menu ID's also double as "help panel ID's", so it is important not
  37.   to have a collision, unless the same help panel can be used for both.
  38.   (This rule is only for convention, and to keep the complexity and the
  39.   typing to a minimum.)
  40.  
  41.   Special cases, like menu items on different windows that generate the 
  42.   same functions, are handled by ID's in the 31000 to 32500 range.
  43.  
  44. */
  45.  
  46.  
  47. #define   IDM_HELPFORHELP       30001
  48. #define   IDM_EXTENDEDHELP      30002
  49. #define   IDM_KEYSHELP          30003
  50. #define   IDM_HELPINDEX         30004
  51. #define   IDM_TUTORIAL          30005
  52. #define   IDM_ABOUT             30010
  53.  
  54.  
  55.  
  56. #define ID_BASE_RESOURCE         1
  57. #define IDM_BASE_FILE            1100
  58. #define   IDM_BFI_EXIT           1101
  59. #define   IDM_BFI_ABOUT          1102
  60. #define IDM_BASE_HELP            1000
  61.  
  62.  
  63.  
  64.  
  65. #define ID_OTHER_RESOURCE        2
  66. #define IDM_OTHER_HELP           2000
  67. #define IDC_BUTTON               2001
  68. #define IDC_DIALOGBOX2           2002
  69. #define IDH_OTHER_KEYSHELP       2003
  70. #define ID_OTHER_EXT_HELP        2004
  71.  
  72.  
  73. #define IDM_OTHER_THINGS         2100
  74. #define   IDM_OT_1               2101
  75. #define   IDM_OT_2               2102
  76. #define   IDM_OT_3               2103
  77. #define IDM_OTHER_STUFF          2200
  78. #define   IDM_OS_1               2201
  79. #define   IDM_OS_2               2202
  80. #define   IDM_OS_3               2203
  81. #define IDM_DIALOGBOX1           2300
  82.  
  83.  
  84. #define IDD_DIALOGBOX1           3
  85. #define DID_DIALOGBOX1_HELP      3000
  86. #define DID_DIALOGBOX1_OK        3001
  87. #define DID_SOSO                 3002
  88.  
  89.  
  90.  
  91.