home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / tutsamp / perclien / resdef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-05  |  5.4 KB  |  153 lines

  1. /*+==========================================================================
  2.   File:      RESDEF.H
  3.  
  4.   Summary:   Resource include file for the PERCLIEN code sample
  5.              application. Contains definitions of the application's menu,
  6.              string, and other resource IDs.
  7.  
  8.              For a comprehensive tutorial code tour of PERCLIEN's contents
  9.              and offerings see the tutorial PERCLIEN.HTM file. For more
  10.              specific technical details on the internal workings see the
  11.              comments dispersed throughout the PERCLIEN source code.
  12.  
  13.   Classes:   none.
  14.  
  15.   Functions: none.
  16.  
  17.   Origin:    5-25-97: atrent - Editor-inheritance from STOCLIEN source.
  18.  
  19. ----------------------------------------------------------------------------
  20.   This file is part of the Microsoft COM Tutorial Code Samples.
  21.  
  22.   Copyright (C) Microsoft Corporation, 1997.  All rights reserved.
  23.  
  24.   This source code is intended only as a supplement to Microsoft
  25.   Development Tools and/or on-line documentation.  See these other
  26.   materials for detailed information regarding Microsoft code samples.
  27.  
  28.   THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  29.   KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  30.   IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  31.   PARTICULAR PURPOSE.
  32. ==========================================================================+*/
  33.  
  34. #if !defined(RESDEF_H)
  35. #define RESDEF_H
  36.  
  37. // Main Window Class String Macros.
  38. #define MAIN_APP_NAME_STR           "PERCLIEN: "
  39. #define MAIN_WINDOW_TITLE_STR       "PERCLIEN: perclien.pag"
  40. #define MAIN_WINDOW_CLASS_NAME_STR  "PERCLIENWindow"
  41. #define MAIN_WINDOW_CLASS_MENU_STR  "PERCLIENMenu"
  42. #define NOFILE_STR                  "No File Open"
  43.  
  44. // File Name String Macros.
  45. #define SERVER_PERSERVE_STR          "perserve.htm"
  46. #define SERVER_PERTEXT_STR           "pertext.htm"
  47. #define SERVER_PERDRAW_STR           "perdraw.htm"
  48.  
  49. // OpenFile-related String Macros.
  50. #define OFN_DEFAULTFILES_STR "All Files (*.*)\0*.*\0"
  51. #define OFN_DEFAULTTITLE_STR "Open File"
  52.  
  53. // Main Page List Client Application Menu Command Identifiers.
  54. // File Menu.
  55. #define IDM_FILE_NEW                1000
  56. #define IDM_FILE_OPEN               1001
  57. #define IDM_FILE_SAVE               1002
  58. #define IDM_FILE_SAVEAS             1003
  59. #define IDM_FILE_EXIT               1004
  60. // Page Menu.
  61. #define IDM_PAGE_OPEN               1100
  62. #define IDM_PAGE_TITLE              1101
  63. #define IDM_PAGE_DELETE             1102
  64. #define IDM_PAGE_NEWTEXT            1103
  65. #define IDM_PAGE_NEWDRAW            1104
  66. // Help Menu.
  67. #define IDM_HELP_CONTENTS           1900
  68. #define IDM_HELP_TUTORIAL           1901
  69. #define IDM_HELP_PERSERVE           1902
  70. #define IDM_HELP_PERTEXT            1903
  71. #define IDM_HELP_PERDRAW            1904
  72. #define IDM_HELP_READSOURCE         1905
  73. #define IDM_HELP_ABOUT              1906
  74.  
  75. // Dialog and Control IDs.
  76. #define IDD_PAGE_PROPS              5000
  77. #define IDC_STATIC_PGTITLE          5001
  78. #define IDC_EDIT_PGTITLE            5002
  79.  
  80. // Error-related String Identifiers.
  81. #define IDS_COMINITFAILED           9000
  82. #define IDS_APPINITFAILED           9001
  83. #define IDS_NOUNICODE               9002
  84. #define IDS_NOSERVER                9003
  85. #define IDS_OUTOFMEMORY             9004
  86. #define IDS_TOOMANYOPEN             9005
  87. #define IDS_PAGEFULL                9006
  88. #define IDS_OPENTEXTPAGE            9007
  89. #define IDS_OPENDRAWPAGE            9008
  90. #define IDS_NOTIMPLEMENTED          9009
  91.  
  92. #define IDS_ASSERT_FAIL             9300
  93.  
  94. // Notice-related String Identifiers.
  95. #define IDS_TEXT_PAGE               9500
  96. #define IDS_DRAW_PAGE               9501
  97. #define IDS_FILE_CHANGED            9502
  98. #define IDS_ASK_SAVE                9503
  99. #define IDS_OFN_PAGFILES            9504
  100. #define IDS_OFN_PAGOPEN             9505
  101. #define IDS_OFN_PAGSAVE             9506
  102.  
  103. // Text Window definitions.
  104.  
  105. #define TEXT_WINDOW_NAME_STR        "PERCLIEN Text: "
  106. #define TEXT_WINDOW_CLASS_NAME_STR  "TextWindow"
  107. #define TEXT_WINDOW_CLASS_MENU_STR  "TextMenu"
  108.  
  109. // Text Window Text Menu.
  110. #define IDM_TEXT_SAVE               2200
  111. #define IDM_TEXT_CLEAR              2201
  112. #define IDM_TEXT_EXIT               2202
  113.  
  114. // Text Window Edit Menu.
  115. #define IDM_EDIT_UNDO               2300
  116. #define IDM_EDIT_SELECTALL          2301
  117. #define IDM_EDIT_CUT                2302
  118. #define IDM_EDIT_COPY               2303
  119. #define IDM_EDIT_PASTE              2304
  120. #define IDM_EDIT_DELETE             2305
  121.  
  122. // Text Window Help Menu.
  123. #define IDM_THELP_CONTENTS          2400
  124. #define IDM_THELP_TUTORIAL          2401
  125. #define IDM_THELP_TUTSERVER         2402
  126. #define IDM_THELP_READSOURCE        2403
  127. #define IDM_THELP_ABOUT             2404
  128.  
  129. // Draw Window definitions.
  130.  
  131. #define DRAW_WINDOW_NAME_STR        "PERCLIEN Drawing: "
  132. #define DRAW_WINDOW_CLASS_NAME_STR  "DrawWindow"
  133. #define DRAW_WINDOW_CLASS_MENU_STR  "DrawMenu"
  134.  
  135. // Draw Menu Command Identifiers.
  136. #define IDM_DRAW_SAVE               2700
  137. #define IDM_DRAW_CLEAR              2701
  138. #define IDM_DRAW_EXIT               2702
  139. // Pen Menu.
  140. #define IDM_PEN_COLOR               2800
  141. #define IDM_PEN_THIN                2801
  142. #define IDM_PEN_MEDIUM              2802
  143. #define IDM_PEN_THICK               2803
  144. // Help Menu.
  145. #define IDM_DHELP_CONTENTS          2900
  146. #define IDM_DHELP_TUTORIAL          2901
  147. #define IDM_DHELP_TUTSERVER         2962
  148. #define IDM_DHELP_READSOURCE        2903
  149. #define IDM_DHELP_ABOUT             2904
  150.  
  151.  
  152. #endif // RESDEF_H
  153.