home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / chap24 / patron / resource.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  7KB  |  183 lines

  1. /*
  2.  * RESOURCE.H
  3.  * Patron Chapter 24
  4.  *
  5.  * Definitions specifically pertaining to resources.
  6.  *
  7.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  8.  *
  9.  * Kraig Brockschmidt, Microsoft
  10.  * Internet  :  kraigb@microsoft.com
  11.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  12.  */
  13.  
  14.  
  15. #ifndef _RESOURCE_H_
  16. #define _RESOURCE_H_
  17.  
  18. //Note that we augment classlib.h which we include before this.
  19.  
  20.  
  21. //Position of Window menu.
  22. #undef  WINDOW_MENU
  23. #define WINDOW_MENU                 3
  24.  
  25. //Position of the "Object" item on the Edit menu.
  26. #define MENUPOS_OBJECT              8
  27. #define MENUPOS_OBJECTONPOPUP       5
  28.  
  29. //Popup menu
  30. #define IDR_RIGHTPOPUPMENU          2
  31.  
  32. //In-place accelerators
  33. #define IDR_INPLACEACCELERATORS     2
  34. #define CINPLACEACCELERATORS        11  //See patron.rc
  35.  
  36. //Total number of menus
  37. #undef  CMENUS
  38. #ifdef MDI
  39. #define CMENUS                      5
  40. #else
  41. #define CMENUS                      4
  42. #endif
  43.  
  44.  
  45. //Menu command identifiers.
  46.  
  47. #define IDM_FILEPRINT               (IDM_CUSTOMFILEMIN)
  48. #define IDM_FILEPRINTERSETUP        (IDM_CUSTOMFILEMIN+1)
  49.  
  50. #define IDM_EDITPASTESPECIAL        (IDM_CUSTOMEDITMIN)
  51. #define IDM_EDITDELETEOBJECT        (IDM_CUSTOMEDITMIN+1)
  52. #define IDM_EDITINSERTOBJECT        (IDM_CUSTOMEDITMIN+2)
  53. #define IDM_EDITOBJECT              (IDM_CUSTOMEDITMIN+3)
  54. #define IDM_EDITCONVERT             (IDM_CUSTOMEDITMIN+4)
  55. #define IDM_EDITLINKS               (IDM_CUSTOMEDITMIN+5)
  56. //CHAPTER24MOD
  57. #define IDM_EDITOBJECTEVENTS        (IDM_CUSTOMEDITMIN+6)
  58. //End CHAPTER24MOD
  59.  
  60. #define IDM_PAGENEWPAGE             (IDM_CUSTOMMIN)
  61. #define IDM_PAGEDELETEPAGE          (IDM_CUSTOMMIN+1)
  62. #define IDM_PAGENEXTPAGE            (IDM_CUSTOMMIN+2)
  63. #define IDM_PAGEPREVIOUSPAGE        (IDM_CUSTOMMIN+3)
  64. #define IDM_PAGEFIRSTPAGE           (IDM_CUSTOMMIN+4)
  65. #define IDM_PAGELASTPAGE            (IDM_CUSTOMMIN+5)
  66. #define IDM_PAGESHOWOBJECTS         (IDM_CUSTOMMIN+6)
  67. //CHAPTER24MOD
  68. #define IDM_PAGEDESIGNMODE          (IDM_CUSTOMMIN+7)
  69. #define IDM_PAGEUIDISABLED          (IDM_CUSTOMMIN+8)
  70. #define IDM_PAGESHOWHATCHHANDLES    (IDM_CUSTOMMIN+9)
  71. //End CHAPTER24MOD
  72.  
  73. //This special item is for the dynamic verbs on the Edit/Object item.
  74. #define IDM_VERBMIN                 (IDM_CUSTOMMIN+100)
  75. #define IDM_VERBMAX                 (IDM_CUSTOMMIN+200)
  76.  
  77. #define IDM_OPENOBJECT              (IDM_CUSTOMMIN+201)
  78. #define IDM_ENTERCONTEXTHELP        (IDM_CUSTOMMIN+202)
  79. #define IDM_ESCAPECONTEXTHELP       (IDM_CUSTOMMIN+203)
  80.  
  81. /*
  82.  * IDs for StatStrip handling of popup menus:  must be in order of menu
  83.  * CLASSRES.H already defines ID_MENUFILE and ID_MENUEDIT for us.
  84.  */
  85.  
  86. #undef ID_MENUWINDOW
  87. #undef ID_MENUHELP
  88.  
  89. #define ID_MENUPAGE                 (ID_MENUCUSTOMMIN+0)
  90. #define ID_MENUWINDOW               (ID_MENUCUSTOMMIN+1)
  91. #define ID_MENUHELP                 (ID_MENUCUSTOMMIN+2)
  92.  
  93.  
  94. //Stringtable IDs.  Keep sequential for each group.
  95. #define IDS_FRAMEMIN                IDS_STANDARDFRAMEMIN
  96. #define IDS_FILEMENU                (IDS_CUSTOMFRAMEMIN+0)
  97. #define IDS_PAGEMENU                (IDS_CUSTOMFRAMEMIN+1)
  98. #define IDS_WINDOWMENU              (IDS_CUSTOMFRAMEMIN+2)
  99. #define IDS_IPFRAMECAPTION          (IDS_CUSTOMFRAMEMIN+3)
  100. #define IDS_FRAMEMAX                (IDS_CUSTOMFRAMEMIN+4)
  101.  
  102. #define IDS_DOCUMENTMIN             IDS_STANDARDDOCMIN
  103. #define IDS_PRINTERROR              (IDS_CUSTOMDOCMIN+0)
  104. #define IDS_DOCUMENTNAME            (IDS_CUSTOMDOCMIN+1)
  105. #define IDS_PASTEASPATRON           (IDS_CUSTOMDOCMIN+2)
  106. #define IDS_PASTEMETAFILE           (IDS_CUSTOMDOCMIN+3)
  107. #define IDS_PASTEASMETAFILE         (IDS_CUSTOMDOCMIN+4)
  108. #define IDS_PASTEDIB                (IDS_CUSTOMDOCMIN+5)
  109. #define IDS_PASTEASDIB              (IDS_CUSTOMDOCMIN+6)
  110. #define IDS_PASTEBITMAP             (IDS_CUSTOMDOCMIN+7)
  111. #define IDS_PASTEASBITMAP           (IDS_CUSTOMDOCMIN+8)
  112. #define IDS_PASTEOBJECT             (IDS_CUSTOMDOCMIN+9)
  113. #define IDS_PASTEASOBJECT           (IDS_CUSTOMDOCMIN+10)
  114. #define IDS_PASTELINK               (IDS_CUSTOMDOCMIN+11)
  115. #define IDS_PASTEASLINK             (IDS_CUSTOMDOCMIN+12)
  116. #define IDS_EXTENSION               (IDS_CUSTOMDOCMIN+13)
  117. #define IDS_UNTITLEDDOC             (IDS_CUSTOMDOCMIN+14)
  118. #define IDS_IPDOCCAPTION            (IDS_CUSTOMDOCMIN+15)
  119. #define IDS_DOCUMENTMAX             (IDS_CUSTOMDOCMIN+15)
  120.  
  121.  
  122. //These are specifically for the StatStrip
  123. #define IDS_STATMESSAGEMIN                  IDS_STANDARDSTATMESSAGEMIN
  124.  
  125. #define IDS_ITEMMESSAGEFILEPRINT            (IDS_CUSTOMSTATMESSAGEMIN+0)
  126. #define IDS_ITEMMESSAGEFILEPRINTERSETUP     (IDS_CUSTOMSTATMESSAGEMIN+1)
  127.  
  128. #define IDS_MENUMESSAGEPAGE                 (IDS_CUSTOMSTATMESSAGEMIN+2)
  129. #define IDS_ITEMMESSAGEPAGENEWPAGE          (IDS_CUSTOMSTATMESSAGEMIN+3)
  130. #define IDS_ITEMMESSAGEPAGEDELETEPAGE       (IDS_CUSTOMSTATMESSAGEMIN+4)
  131. #define IDS_ITEMMESSAGEPAGENEXTPAGE         (IDS_CUSTOMSTATMESSAGEMIN+5)
  132. #define IDS_ITEMMESSAGEPAGEPREVIOUSPAGE     (IDS_CUSTOMSTATMESSAGEMIN+6)
  133. #define IDS_ITEMMESSAGEPAGEFIRSTPAGE        (IDS_CUSTOMSTATMESSAGEMIN+7)
  134. #define IDS_ITEMMESSAGEPAGELASTPAGE         (IDS_CUSTOMSTATMESSAGEMIN+8)
  135. #define IDS_ITEMMESSAGEEDITPASTESPECIAL     (IDS_CUSTOMSTATMESSAGEMIN+9)
  136. #define IDS_ITEMMESSAGEEDITDELETEOBJECT     (IDS_CUSTOMSTATMESSAGEMIN+10)
  137. #define IDS_ITEMMESSAGEEDITINSERTOBJECT     (IDS_CUSTOMSTATMESSAGEMIN+11)
  138. #define IDS_ITEMMESSAGEEDITOBJECT           (IDS_CUSTOMSTATMESSAGEMIN+12)
  139. #define IDS_ITEMMESSAGEEDITCONVERT          (IDS_CUSTOMSTATMESSAGEMIN+13)
  140. #define IDS_ITEMMESSAGEEDITLINKS            (IDS_CUSTOMSTATMESSAGEMIN+14)
  141. #define IDS_ITEMMESSAGEPAGESHOWOBJECTS      (IDS_CUSTOMSTATMESSAGEMIN+15)
  142. //CHAPTER24MOD
  143. #define IDS_ITEMMESSAGEEDITOBJECTEVENTS     (IDS_CUSTOMSTATMESSAGEMIN+16)
  144. #define IDS_ITEMMESSAGEPAGEDESIGNMODE       (IDS_CUSTOMSTATMESSAGEMIN+17)
  145. #define IDS_ITEMMESSAGEPAGEUIDISABLED       (IDS_CUSTOMSTATMESSAGEMIN+18)
  146. #define IDS_ITEMMESSAGEPAGESHOWHATCHHANDLES (IDS_CUSTOMSTATMESSAGEMIN+19)
  147. #define IDS_STATMESSAGEMAX                  (IDS_CUSTOMSTATMESSAGEMIN+19)
  148. //End CHAPTER24MOD
  149.  
  150.  
  151. //Definitions for the printing dialog.
  152.  
  153. #define IDD_PRINTING                2
  154.  
  155. #define ID_CURRENTPAGE              101
  156. #define ID_CURRENTCOPY              102
  157. #define ID_COPYSTRING               103
  158. #define ID_PAGESTRING               104
  159.  
  160. #define PRINTM_PAGEUPDATE           (WM_USER+100)
  161. #define PRINTM_COPYUPDATE           (WM_USER+101)
  162.  
  163.  
  164. //CHAPTER24MOD
  165. //Definitions for the Control Events dialog
  166.  
  167. #define IDD_EVENTS                      101
  168.  
  169. #define ID_TEST                         2
  170. #define IDC_EVENTLIST                   1000
  171. #define IDC_ACTIONSSFRAME               1001
  172. #define IDC_BEEPNONE                    1002
  173. #define IDC_BEEPDEFAULT                 1003
  174. #define IDC_BEEPEXCLAMATION             1004
  175. #define IDC_BEEPASTERISK                1005
  176. #define IDC_BEEPHAND                    1006
  177. #define IDC_BEEPQUESTION                1007
  178. #define IDC_EVENTSFRAME                 -1
  179.  
  180. //End CHAPTER24MOD
  181.  
  182. #endif //_RESOURCE_H_
  183.