home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winui / shell / fileview / resource.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-12  |  4.6 KB  |  135 lines

  1. //THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 
  2. //ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 
  3. //THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 
  4. // PARTICULAR PURPOSE.
  5. //
  6. // Copyright  1994-1996  Microsoft Corporation.  All Rights Reserved.
  7. //
  8. //    PROGRAM: RESOURCE.H    
  9. //
  10. //    PURPOSE: Definitions specifically pertaining to resources for a FileViewer. 
  11. //
  12. //    PLATFORMS:    Windows 95
  13. //
  14. //    SPECIAL INSTRUCTIONS: N/A
  15. //
  16. #ifndef _RESOURCE_H_
  17. #define _RESOURCE_H_
  18.  
  19. //Resource identifiers
  20. #define IDR_MENU                1
  21. #define IDR_MENUVIEWPORT        2
  22. #define IDR_ACCELERATORS        1
  23. #define IDR_STATMESSAGEMAP      1
  24. #define IDB_TOOLS               1
  25. #define IDD_ABOUT               1
  26.  
  27.  
  28. //Toolbar bitmaps indexes and other values
  29. #define IDBT_OPENAS              0
  30. #define IDBT_FONTSIZEINCREASE    1
  31. #define IDBT_FONTSIZEDECREASE    2
  32.  
  33. #define CTBBUTTONS              4
  34. #define CTBBITMAPS              3
  35.  
  36.  
  37.  
  38. //Menu command identifiers.
  39. #define IDM_FILEOPENAS          100
  40. #define IDM_FILEPAGESETUP       110
  41. #define IDM_FILEPRINT           111
  42. #define IDM_FILEEXIT            120
  43.  
  44. #define IDM_VIEWTOOLBAR         200
  45. #define IDM_VIEWSTATUSBAR       201
  46. #define IDM_VIEWFONT            210
  47. #define IDM_VIEWFONTINCREASE    211     //Toolbar only
  48. #define IDM_VIEWFONTDECREASE    212     //Toolbar only
  49. #define IDM_VIEWREPLACE         223
  50.  
  51. #define IDM_HELPCONTENTS        300
  52. #define IDM_HELPABOUT           301
  53.  
  54.  
  55.  
  56. //String identifiers.  Keep sequential for each group.
  57.  
  58. //Main window strings (messages, other variable strings).
  59. #define IDS_MIN                 0
  60.  
  61. #define IDS_CLASSFRAME          (IDS_MIN+0)
  62. #define IDS_CLASSVIEWPORT       (IDS_MIN+1)
  63. #define IDS_CAPTION             (IDS_MIN+2)
  64. #define IDS_DOCUMENTTYPE        (IDS_MIN+3)
  65. #define IDS_NOHELP              (IDS_MIN+4)
  66. #define IDS_TOOLTIPOPENAS       (IDS_MIN+5)
  67. #define IDS_TOOLTIPFONTINC      (IDS_MIN+6)
  68. #define IDS_TOOLTIPFONTDEC      (IDS_MIN+7)
  69.  
  70. #define IDS_MAX                 (IDS_MIN+7)
  71.  
  72. //Length of longest string in this stringtable.
  73. #define CCHSTRINGMAX            40
  74.  
  75.  
  76.  
  77. //Status bar messages for a message map
  78. #define IDS_STATUSMSGMIN        32
  79.  
  80. #define IDS_MSGEMPTY            (IDS_STATUSMSGMIN+0)
  81. #define IDS_MSGREADY            (IDS_STATUSMSGMIN+1)
  82. #define IDS_MSGSYS              (IDS_STATUSMSGMIN+2)
  83. #define IDS_MSGSYSRESTORE       (IDS_STATUSMSGMIN+3)
  84. #define IDS_MSGSYSMOVE          (IDS_STATUSMSGMIN+4)
  85. #define IDS_MSGSYSSIZE          (IDS_STATUSMSGMIN+5)
  86. #define IDS_MSGSYSMINIMIZE      (IDS_STATUSMSGMIN+6)
  87. #define IDS_MSGSYSMAXIMIZE      (IDS_STATUSMSGMIN+7)
  88. #define IDS_MSGSYSCLOSE         (IDS_STATUSMSGMIN+8)
  89. #define IDS_MSGSYSTASKLIST      (IDS_STATUSMSGMIN+9)
  90. #define IDS_MSGFILE             (IDS_STATUSMSGMIN+10)
  91. #define IDS_MSGFILEOPENAS       (IDS_STATUSMSGMIN+11)
  92. #define IDS_MSGFILEPAGESETUP    (IDS_STATUSMSGMIN+12)
  93. #define IDS_MSGFILEPRINT        (IDS_STATUSMSGMIN+13)
  94. #define IDS_MSGFILEEXIT         (IDS_STATUSMSGMIN+14)
  95. #define IDS_MSGVIEW             (IDS_STATUSMSGMIN+15)
  96. #define IDS_MSGVIEWTOOLBAR      (IDS_STATUSMSGMIN+16)
  97. #define IDS_MSGVIEWSTATUSBAR    (IDS_STATUSMSGMIN+17)
  98. #define IDS_MSGVIEWFONT         (IDS_STATUSMSGMIN+18)
  99. #define IDS_MSGHELP             (IDS_STATUSMSGMIN+19)
  100. #define IDS_MSGHELPCONTENTS     (IDS_STATUSMSGMIN+20)
  101. #define IDS_MSGHELPABOUT        (IDS_STATUSMSGMIN+21)
  102. #define IDS_MSGTIPFONTINC       (IDS_STATUSMSGMIN+22)
  103. #define IDS_MSGTIPFONTDEC       (IDS_STATUSMSGMIN+23)
  104. #define IDS_MSGCHOOSEOPEN       (IDS_STATUSMSGMIN+24)
  105.  
  106. #define IDS_STATUSMSGMAX        (IDS_STATUSMSGMIN+24)
  107.  
  108. #define CCHSTATUSMSGMAX         80
  109.  
  110. /*
  111.  * IDs for status bar mapping of popup menus to string IDs.
  112.  * Those for the menus defined between ID_MENUMIN and ID_MENUMAX
  113.  * that we send to CStatusHelper::MessageMap must be sequential
  114.  * as the popup menu hMenu's are mapped to these values by
  115.  * sequential position, so be sure to define these values in
  116.  * the same sequence as the menus themselves.
  117.  */
  118.  
  119. #define ID_MSGEMPTY                         1000
  120. #define ID_MSGREADY                         1001
  121. #define ID_MENUSYS                          1002
  122. #define ID_MENUFILE                         1003
  123. #define ID_MENUVIEW                         1004
  124. #define ID_MENUHELP                         1005
  125. #define ID_TIPFONTINC                       1006
  126. #define ID_TIPFONTDEC                       1007
  127. #define ID_MSGCHOOSEOPEN                    1008
  128.  
  129.  
  130. #define ID_MENUMIN                          ID_MENUFILE
  131. #define ID_MENUMAX                          ID_MENUHELP
  132.  
  133.  
  134. #endif //_RESOURCE_H_
  135.