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 / chap12 / patron / resource.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  4KB  |  122 lines

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