RESOURCE.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:5k
源码类别:

Windows编程

开发平台:

Visual C++

  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. #ifndef _RESOURCE_H_
  14. #define _RESOURCE_H_
  15. //Note that we augment classlib.h which we include before this.
  16. //Position of Window menu.
  17. #undef  WINDOW_MENU
  18. #define WINDOW_MENU                 3
  19. //CHAPTER17MOD
  20. //Position of the "Object" item on the Edit menu.
  21. #define MENUPOS_OBJECT              8
  22. #define MENUPOS_OBJECTONPOPUP       5
  23. //Popup menu
  24. #define IDR_RIGHTPOPUPMENU          2
  25. //End CHAPTER17MOD
  26. //Total number of menus
  27. #undef  CMENUS
  28. #ifdef MDI
  29. #define CMENUS                      5
  30. #else
  31. #define CMENUS                      4
  32. #endif
  33. //Menu command identifiers.
  34. #define IDM_FILEPRINT               (IDM_CUSTOMFILEMIN)
  35. #define IDM_FILEPRINTERSETUP        (IDM_CUSTOMFILEMIN+1)
  36. #define IDM_EDITPASTESPECIAL        (IDM_CUSTOMEDITMIN)
  37. #define IDM_EDITDELETEOBJECT        (IDM_CUSTOMEDITMIN+1)
  38. //CHAPTER17MOD
  39. #define IDM_EDITINSERTOBJECT        (IDM_CUSTOMEDITMIN+2)
  40. #define IDM_EDITOBJECT              (IDM_CUSTOMEDITMIN+3)
  41. #define IDM_EDITCONVERT             (IDM_CUSTOMEDITMIN+4)
  42. //End CHAPTER17MOD
  43. #define IDM_PAGENEWPAGE             (IDM_CUSTOMMIN)
  44. #define IDM_PAGEDELETEPAGE          (IDM_CUSTOMMIN+1)
  45. #define IDM_PAGENEXTPAGE            (IDM_CUSTOMMIN+2)
  46. #define IDM_PAGEPREVIOUSPAGE        (IDM_CUSTOMMIN+3)
  47. #define IDM_PAGEFIRSTPAGE           (IDM_CUSTOMMIN+4)
  48. #define IDM_PAGELASTPAGE            (IDM_CUSTOMMIN+5)
  49. //CHAPTER17MOD
  50. //This special item is for the dynamic verbs on the Edit/Object item.
  51. #define IDM_VERBMIN                 (IDM_CUSTOMMIN+100)
  52. #define IDM_VERBMAX                 (IDM_CUSTOMMIN+200)
  53. //End CHAPTER17MOD
  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. #undef ID_MENUWINDOW
  59. #undef ID_MENUHELP
  60. #define ID_MENUPAGE                 (ID_MENUCUSTOMMIN+0)
  61. #define ID_MENUWINDOW               (ID_MENUCUSTOMMIN+1)
  62. #define ID_MENUHELP                 (ID_MENUCUSTOMMIN+2)
  63. //Stringtable IDs.  Keep sequential for each group.
  64. #define IDS_FRAMEMIN                IDS_STANDARDFRAMEMIN
  65. #define IDS_FRAMEMAX                IDS_STANDARDFRAMEMAX
  66. #define IDS_DOCUMENTMIN             IDS_STANDARDDOCMIN
  67. #define IDS_PRINTERROR              (IDS_CUSTOMDOCMIN+0)
  68. #define IDS_DOCUMENTNAME            (IDS_CUSTOMDOCMIN+1)
  69. #define IDS_PASTEASPATRON           (IDS_CUSTOMDOCMIN+2)
  70. #define IDS_PASTEMETAFILE           (IDS_CUSTOMDOCMIN+3)
  71. #define IDS_PASTEASMETAFILE         (IDS_CUSTOMDOCMIN+4)
  72. #define IDS_PASTEDIB                (IDS_CUSTOMDOCMIN+5)
  73. #define IDS_PASTEASDIB              (IDS_CUSTOMDOCMIN+6)
  74. #define IDS_PASTEBITMAP             (IDS_CUSTOMDOCMIN+7)
  75. #define IDS_PASTEASBITMAP           (IDS_CUSTOMDOCMIN+8)
  76. //CHAPTER17MOD
  77. #define IDS_PASTEOBJECT             (IDS_CUSTOMDOCMIN+9)
  78. #define IDS_PASTEASOBJECT           (IDS_CUSTOMDOCMIN+10)
  79. #define IDS_DOCUMENTMAX             (IDS_CUSTOMDOCMIN+10)
  80. //End CHAPTER17MOD
  81. //These are specifically for the StatStrip
  82. #define IDS_STATMESSAGEMIN                  IDS_STANDARDSTATMESSAGEMIN
  83. #define IDS_ITEMMESSAGEFILEPRINT            (IDS_CUSTOMSTATMESSAGEMIN+0)
  84. #define IDS_ITEMMESSAGEFILEPRINTERSETUP     (IDS_CUSTOMSTATMESSAGEMIN+1)
  85. #define IDS_MENUMESSAGEPAGE                 (IDS_CUSTOMSTATMESSAGEMIN+2)
  86. #define IDS_ITEMMESSAGEPAGENEWPAGE          (IDS_CUSTOMSTATMESSAGEMIN+3)
  87. #define IDS_ITEMMESSAGEPAGEDELETEPAGE       (IDS_CUSTOMSTATMESSAGEMIN+4)
  88. #define IDS_ITEMMESSAGEPAGENEXTPAGE         (IDS_CUSTOMSTATMESSAGEMIN+5)
  89. #define IDS_ITEMMESSAGEPAGEPREVIOUSPAGE     (IDS_CUSTOMSTATMESSAGEMIN+6)
  90. #define IDS_ITEMMESSAGEPAGEFIRSTPAGE        (IDS_CUSTOMSTATMESSAGEMIN+7)
  91. #define IDS_ITEMMESSAGEPAGELASTPAGE         (IDS_CUSTOMSTATMESSAGEMIN+8)
  92. #define IDS_ITEMMESSAGEEDITPASTESPECIAL     (IDS_CUSTOMSTATMESSAGEMIN+9)
  93. #define IDS_ITEMMESSAGEEDITDELETEOBJECT     (IDS_CUSTOMSTATMESSAGEMIN+10)
  94. //CHAPTER17MOD
  95. #define IDS_ITEMMESSAGEEDITINSERTOBJECT     (IDS_CUSTOMSTATMESSAGEMIN+11)
  96. #define IDS_ITEMMESSAGEEDITOBJECT           (IDS_CUSTOMSTATMESSAGEMIN+12)
  97. #define IDS_ITEMMESSAGEEDITCONVERT          (IDS_CUSTOMSTATMESSAGEMIN+13)
  98. #define IDS_STATMESSAGEMAX                  (IDS_CUSTOMSTATMESSAGEMIN+13)
  99. //End CHAPTER17MOD
  100. //Definitions for the printing dialog.
  101. #define IDD_PRINTING                2
  102. #define ID_CURRENTPAGE              101
  103. #define ID_CURRENTCOPY              102
  104. #define ID_COPYSTRING               103
  105. #define ID_PAGESTRING               104
  106. #define PRINTM_PAGEUPDATE           (WM_USER+100)
  107. #define PRINTM_COPYUPDATE           (WM_USER+101)
  108. #endif //_RESOURCE_H_