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 / chap07 / cosmo / resource.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  3KB  |  98 lines

  1. /*
  2.  * RESOURCE.H
  3.  * Cosmo Chapter 7
  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.  
  16. #ifndef _RESOURCE_H_
  17. #define _RESOURCE_H_
  18.  
  19. //Note that we augment classlib.h which we include before this.
  20.  
  21.  
  22. //Position of Window menu.
  23. #undef  WINDOW_MENU
  24. #define WINDOW_MENU             4
  25.  
  26.  
  27. //Total number of menus
  28. #undef  CMENUS
  29. #ifdef MDI
  30. #define CMENUS                  6
  31. #else
  32. #define CMENUS                  5
  33. #endif
  34.  
  35.  
  36.  
  37. //Menu command identifiers.
  38.  
  39. #define IDM_FILEIMPORT          (IDM_CUSTOMFILEMIN)
  40.  
  41. #define IDM_COLORBACKGROUND     (IDM_CUSTOMMIN)
  42. #define IDM_COLORLINE           (IDM_CUSTOMMIN+1)
  43.  
  44. #define IDM_LINEMIN             (IDM_CUSTOMMIN+100)
  45. #define IDM_LINESOLID           (IDM_LINEMIN+0)         //PS_SOLID       0
  46. #define IDM_LINEDASH            (IDM_LINEMIN+1)         //PS_DASH        1
  47. #define IDM_LINEDOT             (IDM_LINEMIN+2)         //PS_DOT         2
  48. #define IDM_LINEDASHDOT         (IDM_LINEMIN+3)         //PS_DASHDOT     3
  49. #define IDM_LINEDASHDOTDOT      (IDM_LINEMIN+4)         //PS_DASHDOTDOT  4
  50. #define IDM_LINEMAX             IDM_LINEDASHDOTDOT
  51.  
  52.  
  53. /*
  54.  * IDs for StatStrip handling of popup menus:  must be in order of menu
  55.  * CLASSRES.H already defines ID_MENUFILE and ID_MENUEDIT for us.
  56.  */
  57.  
  58. #undef  ID_MENUWINDOW
  59. #undef  ID_MENUHELP
  60.  
  61. #define ID_MENUCOLOR            (ID_MENUCUSTOMMIN+0)
  62. #define ID_MENULINE             (ID_MENUCUSTOMMIN+1)
  63. #define ID_MENUWINDOW           (ID_MENUCUSTOMMIN+2)
  64. #define ID_MENUHELP             (ID_MENUCUSTOMMIN+3)
  65.  
  66.  
  67. //Stringtable IDs.  Keep sequential for each group.
  68. #define IDS_FRAMEMIN            IDS_STANDARDFRAMEMIN
  69. #define IDS_FILEIMPORT          (IDS_CUSTOMFRAMEMIN+0)
  70. #define IDS_FRAMEMAX            (IDS_CUSTOMFRAMEMIN+0)
  71.  
  72. #define IDS_DOCUMENTMIN         IDS_STANDARDDOCMIN
  73. #define IDS_VERSIONCHANGE       (IDS_CUSTOMDOCMIN+0)
  74. #define IDS_DOCUMENTMAX         (IDS_CUSTOMDOCMIN+0)
  75.  
  76.  
  77.  
  78. //These are specifically for the StatStrip
  79. #define IDS_STATMESSAGEMIN                  IDS_STANDARDSTATMESSAGEMIN
  80.  
  81. #define IDS_ITEMMESSAGEFILEIMPORT           (IDS_CUSTOMSTATMESSAGEMIN+0)
  82.  
  83. #define IDS_MENUMESSAGECOLOR                (IDS_CUSTOMSTATMESSAGEMIN+1)
  84. #define IDS_ITEMMESSAGECOLORBACKGROUND      (IDS_CUSTOMSTATMESSAGEMIN+2)
  85. #define IDS_ITEMMESSAGECOLORLINE            (IDS_CUSTOMSTATMESSAGEMIN+3)
  86.  
  87. #define IDS_MENUMESSAGELINE                 (IDS_CUSTOMSTATMESSAGEMIN+4)
  88. #define IDS_ITEMMESSAGELINESOLID            (IDS_CUSTOMSTATMESSAGEMIN+5)
  89. #define IDS_ITEMMESSAGELINEDASH             (IDS_CUSTOMSTATMESSAGEMIN+6)
  90. #define IDS_ITEMMESSAGELINEDOT              (IDS_CUSTOMSTATMESSAGEMIN+7)
  91. #define IDS_ITEMMESSAGELINEDASHDOT          (IDS_CUSTOMSTATMESSAGEMIN+8)
  92. #define IDS_ITEMMESSAGELINEDASHDOTDOT       (IDS_CUSTOMSTATMESSAGEMIN+9)
  93.  
  94. #define IDS_STATMESSAGEMAX                  (IDS_CUSTOMSTATMESSAGEMIN+9)
  95.  
  96.  
  97. #endif //_RESOURCE_H_
  98.