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 / chap23 / cosmo / resource.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  4.6 KB  |  135 lines

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