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 / chap17 / patron / resource.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  4.8 KB  |  142 lines

  1. /*
  2.  * RESOURCE.H
  3.  * Patron Chapter 17
  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. //CHAPTER17MOD
  26. //Position of the "Object" item on the Edit menu.
  27. #define MENUPOS_OBJECT              8
  28. #define MENUPOS_OBJECTONPOPUP       5
  29.  
  30. //Popup menu
  31. #define IDR_RIGHTPOPUPMENU          2
  32. //End CHAPTER17MOD
  33.  
  34. //Total number of menus
  35. #undef  CMENUS
  36. #ifdef MDI
  37. #define CMENUS                      5
  38. #else
  39. #define CMENUS                      4
  40. #endif
  41.  
  42.  
  43. //Menu command identifiers.
  44.  
  45. #define IDM_FILEPRINT               (IDM_CUSTOMFILEMIN)
  46. #define IDM_FILEPRINTERSETUP        (IDM_CUSTOMFILEMIN+1)
  47.  
  48. #define IDM_EDITPASTESPECIAL        (IDM_CUSTOMEDITMIN)
  49. #define IDM_EDITDELETEOBJECT        (IDM_CUSTOMEDITMIN+1)
  50. //CHAPTER17MOD
  51. #define IDM_EDITINSERTOBJECT        (IDM_CUSTOMEDITMIN+2)
  52. #define IDM_EDITOBJECT              (IDM_CUSTOMEDITMIN+3)
  53. #define IDM_EDITCONVERT             (IDM_CUSTOMEDITMIN+4)
  54. //End CHAPTER17MOD
  55.  
  56. #define IDM_PAGENEWPAGE             (IDM_CUSTOMMIN)
  57. #define IDM_PAGEDELETEPAGE          (IDM_CUSTOMMIN+1)
  58. #define IDM_PAGENEXTPAGE            (IDM_CUSTOMMIN+2)
  59. #define IDM_PAGEPREVIOUSPAGE        (IDM_CUSTOMMIN+3)
  60. #define IDM_PAGEFIRSTPAGE           (IDM_CUSTOMMIN+4)
  61. #define IDM_PAGELASTPAGE            (IDM_CUSTOMMIN+5)
  62.  
  63.  
  64. //CHAPTER17MOD
  65. //This special item is for the dynamic verbs on the Edit/Object item.
  66. #define IDM_VERBMIN                 (IDM_CUSTOMMIN+100)
  67. #define IDM_VERBMAX                 (IDM_CUSTOMMIN+200)
  68. //End CHAPTER17MOD
  69.  
  70.  
  71. /*
  72.  * IDs for StatStrip handling of popup menus:  must be in order of menu
  73.  * CLASSRES.H already defines ID_MENUFILE and ID_MENUEDIT for us.
  74.  */
  75.  
  76. #undef ID_MENUWINDOW
  77. #undef ID_MENUHELP
  78.  
  79. #define ID_MENUPAGE                 (ID_MENUCUSTOMMIN+0)
  80. #define ID_MENUWINDOW               (ID_MENUCUSTOMMIN+1)
  81. #define ID_MENUHELP                 (ID_MENUCUSTOMMIN+2)
  82.  
  83.  
  84. //Stringtable IDs.  Keep sequential for each group.
  85. #define IDS_FRAMEMIN                IDS_STANDARDFRAMEMIN
  86. #define IDS_FRAMEMAX                IDS_STANDARDFRAMEMAX
  87.  
  88. #define IDS_DOCUMENTMIN             IDS_STANDARDDOCMIN
  89. #define IDS_PRINTERROR              (IDS_CUSTOMDOCMIN+0)
  90. #define IDS_DOCUMENTNAME            (IDS_CUSTOMDOCMIN+1)
  91. #define IDS_PASTEASPATRON           (IDS_CUSTOMDOCMIN+2)
  92. #define IDS_PASTEMETAFILE           (IDS_CUSTOMDOCMIN+3)
  93. #define IDS_PASTEASMETAFILE         (IDS_CUSTOMDOCMIN+4)
  94. #define IDS_PASTEDIB                (IDS_CUSTOMDOCMIN+5)
  95. #define IDS_PASTEASDIB              (IDS_CUSTOMDOCMIN+6)
  96. #define IDS_PASTEBITMAP             (IDS_CUSTOMDOCMIN+7)
  97. #define IDS_PASTEASBITMAP           (IDS_CUSTOMDOCMIN+8)
  98. //CHAPTER17MOD
  99. #define IDS_PASTEOBJECT             (IDS_CUSTOMDOCMIN+9)
  100. #define IDS_PASTEASOBJECT           (IDS_CUSTOMDOCMIN+10)
  101. #define IDS_DOCUMENTMAX             (IDS_CUSTOMDOCMIN+10)
  102. //End CHAPTER17MOD
  103.  
  104.  
  105. //These are specifically for the StatStrip
  106. #define IDS_STATMESSAGEMIN                  IDS_STANDARDSTATMESSAGEMIN
  107.  
  108. #define IDS_ITEMMESSAGEFILEPRINT            (IDS_CUSTOMSTATMESSAGEMIN+0)
  109. #define IDS_ITEMMESSAGEFILEPRINTERSETUP     (IDS_CUSTOMSTATMESSAGEMIN+1)
  110.  
  111. #define IDS_MENUMESSAGEPAGE                 (IDS_CUSTOMSTATMESSAGEMIN+2)
  112. #define IDS_ITEMMESSAGEPAGENEWPAGE          (IDS_CUSTOMSTATMESSAGEMIN+3)
  113. #define IDS_ITEMMESSAGEPAGEDELETEPAGE       (IDS_CUSTOMSTATMESSAGEMIN+4)
  114. #define IDS_ITEMMESSAGEPAGENEXTPAGE         (IDS_CUSTOMSTATMESSAGEMIN+5)
  115. #define IDS_ITEMMESSAGEPAGEPREVIOUSPAGE     (IDS_CUSTOMSTATMESSAGEMIN+6)
  116. #define IDS_ITEMMESSAGEPAGEFIRSTPAGE        (IDS_CUSTOMSTATMESSAGEMIN+7)
  117. #define IDS_ITEMMESSAGEPAGELASTPAGE         (IDS_CUSTOMSTATMESSAGEMIN+8)
  118. #define IDS_ITEMMESSAGEEDITPASTESPECIAL     (IDS_CUSTOMSTATMESSAGEMIN+9)
  119. #define IDS_ITEMMESSAGEEDITDELETEOBJECT     (IDS_CUSTOMSTATMESSAGEMIN+10)
  120.  
  121. //CHAPTER17MOD
  122. #define IDS_ITEMMESSAGEEDITINSERTOBJECT     (IDS_CUSTOMSTATMESSAGEMIN+11)
  123. #define IDS_ITEMMESSAGEEDITOBJECT           (IDS_CUSTOMSTATMESSAGEMIN+12)
  124. #define IDS_ITEMMESSAGEEDITCONVERT          (IDS_CUSTOMSTATMESSAGEMIN+13)
  125. #define IDS_STATMESSAGEMAX                  (IDS_CUSTOMSTATMESSAGEMIN+13)
  126. //End CHAPTER17MOD
  127.  
  128.  
  129. //Definitions for the printing dialog.
  130.  
  131. #define IDD_PRINTING                2
  132.  
  133. #define ID_CURRENTPAGE              101
  134. #define ID_CURRENTCOPY              102
  135. #define ID_COPYSTRING               103
  136. #define ID_PAGESTRING               104
  137.  
  138. #define PRINTM_PAGEUPDATE           (WM_USER+100)
  139. #define PRINTM_COPYUPDATE           (WM_USER+101)
  140.  
  141. #endif //_RESOURCE_H_
  142.