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

Windows编程

开发平台:

Visual C++

  1. /*
  2.  * RESOURCE.H
  3.  * Cosmo Chapter 23
  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             4
  19. //Total number of menus
  20. #undef  CMENUS
  21. #ifdef MDI
  22. #define CMENUS                  6
  23. #else
  24. #define CMENUS                  5
  25. #endif
  26. //CHAPTER23MOD
  27. #define MPOS_SEP                5
  28. #define MPOS_OPEN               6
  29. //End CHAPTER23MOD
  30. //Menu command identifiers.
  31. #define IDM_FILEIMPORT          (IDM_CUSTOMFILEMIN)
  32. #define IDM_COLORBACKGROUND     (IDM_CUSTOMMIN)
  33. #define IDM_COLORLINE           (IDM_CUSTOMMIN+1)
  34. //CHAPTER23MOD
  35. #define IDM_EDITOPEN            (IDM_CUSTOMEDITMIN)
  36. //End CHAPTER23MOD
  37. #define IDM_LINEMIN             (IDM_CUSTOMMIN+100)
  38. #define IDM_LINESOLID           (IDM_LINEMIN+0)         //PS_SOLID       0
  39. #define IDM_LINEDASH            (IDM_LINEMIN+1)         //PS_DASH        1
  40. #define IDM_LINEDOT             (IDM_LINEMIN+2)         //PS_DOT         2
  41. #define IDM_LINEDASHDOT         (IDM_LINEMIN+3)         //PS_DASHDOT     3
  42. #define IDM_LINEDASHDOTDOT      (IDM_LINEMIN+4)         //PS_DASHDOTDOT  4
  43. #define IDM_LINEMAX             IDM_LINEDASHDOTDOT
  44. /*
  45.  * IDs for StatStrip handling of popup menus:  must be in order of menu
  46.  * CLASSRES.H already defines ID_MENUFILE and ID_MENUEDIT for us.
  47.  */
  48. #undef  ID_MENUWINDOW
  49. #undef  ID_MENUHELP
  50. #define ID_MENUCOLOR            (ID_MENUCUSTOMMIN+0)
  51. #define ID_MENULINE             (ID_MENUCUSTOMMIN+1)
  52. #define ID_MENUWINDOW           (ID_MENUCUSTOMMIN+2)
  53. #define ID_MENUHELP             (ID_MENUCUSTOMMIN+3)
  54. //Stringtable IDs.  Keep sequential for each group.
  55. #define IDS_FRAMEMIN            IDS_STANDARDFRAMEMIN
  56. #define IDS_FILEIMPORT          (IDS_CUSTOMFRAMEMIN+0)
  57. #define IDS_FIGUREINCONTAINER   (IDS_CUSTOMFRAMEMIN+1)
  58. #define IDS_EXITANDRETURN       (IDS_CUSTOMFRAMEMIN+2)
  59. #define IDS_EMBEDDINGCAPTION    (IDS_CUSTOMFRAMEMIN+3)
  60. #define IDS_SAVECOPYAS          (IDS_CUSTOMFRAMEMIN+4)
  61. #define IDS_NEW                 (IDS_CUSTOMFRAMEMIN+5)
  62. #define IDS_OPEN                (IDS_CUSTOMFRAMEMIN+6)
  63. #define IDS_CLOSE2              (IDS_CUSTOMFRAMEMIN+7)
  64. #define IDS_SAVE                (IDS_CUSTOMFRAMEMIN+8)
  65. #define IDS_SAVEAS              (IDS_CUSTOMFRAMEMIN+9)
  66. #define IDS_EXIT                (IDS_CUSTOMFRAMEMIN+10)
  67. #define IDS_FRAMEMAX            (IDS_CUSTOMFRAMEMIN+11)
  68. #define IDS_DOCUMENTMIN         IDS_STANDARDDOCMIN
  69. #define IDS_VERSIONCHANGE       (IDS_CUSTOMDOCMIN+0)
  70. #define IDS_OBJECTDESCRIPTION   (IDS_CUSTOMDOCMIN+1)
  71. #define IDS_DOCUMENTMAX         (IDS_CUSTOMDOCMIN+1)
  72. //Strings for the CFigure object implementation.
  73. #define IDS_FIGUREMIN           256
  74. #define IDS_CLOSECAPTION        (IDS_FIGUREMIN+1)
  75. #define IDS_CLOSEPROMPT         (IDS_FIGUREMIN+2)
  76. #define IDS_USERTYPE            (IDS_FIGUREMIN+3)
  77. #define IDS_FORMAT              (IDS_FIGUREMIN+4)
  78. #define IDS_EXTENSION           (IDS_FIGUREMIN+5)
  79. //CHAPTER23MOD
  80. #define IDS_INPLACETITLE        (IDS_FIGUREMIN+6)
  81. #define IDS_MENUEDIT            (IDS_FIGUREMIN+7)
  82. #define IDS_MENUOPEN            (IDS_FIGUREMIN+8)
  83. #define IDS_MENUCOLOR           (IDS_FIGUREMIN+9)
  84. #define IDS_MENULINE            (IDS_FIGUREMIN+10)
  85. #define IDS_MENUHELP            (IDS_FIGUREMIN+11)
  86. #define IDS_FIGUREMAX           (IDS_FIGUREMIN+11)
  87. //End CHAPTER23MOD
  88. //These are specifically for the StatStrip
  89. #define IDS_STATMESSAGEMIN                  IDS_STANDARDSTATMESSAGEMIN
  90. #define IDS_ITEMMESSAGEFILEIMPORT           (IDS_CUSTOMSTATMESSAGEMIN+0)
  91. #define IDS_MENUMESSAGECOLOR                (IDS_CUSTOMSTATMESSAGEMIN+1)
  92. #define IDS_ITEMMESSAGECOLORBACKGROUND      (IDS_CUSTOMSTATMESSAGEMIN+2)
  93. #define IDS_ITEMMESSAGECOLORLINE            (IDS_CUSTOMSTATMESSAGEMIN+3)
  94. #define IDS_MENUMESSAGELINE                 (IDS_CUSTOMSTATMESSAGEMIN+4)
  95. #define IDS_ITEMMESSAGELINESOLID            (IDS_CUSTOMSTATMESSAGEMIN+5)
  96. #define IDS_ITEMMESSAGELINEDASH             (IDS_CUSTOMSTATMESSAGEMIN+6)
  97. #define IDS_ITEMMESSAGELINEDOT              (IDS_CUSTOMSTATMESSAGEMIN+7)
  98. #define IDS_ITEMMESSAGELINEDASHDOT          (IDS_CUSTOMSTATMESSAGEMIN+8)
  99. #define IDS_ITEMMESSAGELINEDASHDOTDOT       (IDS_CUSTOMSTATMESSAGEMIN+9)
  100. //CHAPTER23MOD
  101. #define IDS_ITEMMESSAGEEDITOPEN             (IDS_CUSTOMSTATMESSAGEMIN+10)
  102. #define IDS_STATMESSAGEMAX                  (IDS_CUSTOMSTATMESSAGEMIN+10)
  103. //End CHAPTER23MOD
  104. #endif //_RESOURCE_H_