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

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