home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 18.ddi / MFC / INCLUDE / AFXRES.H_ / AFXRES.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  13.3 KB  |  344 lines

  1. // Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992 Microsoft Corporation,
  3. // All rights reserved.
  4.  
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and Microsoft
  7. // QuickHelp and/or WinHelp documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. #ifndef __AFXRES_H__
  12. #define __AFXRES_H__
  13.  
  14. #define _AFXRES    1            // this is an MFC project
  15.  
  16. #ifdef RC_INVOKED
  17. #ifndef _INC_WINDOWS
  18. #define _INC_WINDOWS
  19. #include "winres.h"            // extract from windows header
  20. #endif
  21. #endif
  22.  
  23. #ifdef APSTUDIO_INVOKED
  24. #define APSTUDIO_HIDDEN_SYMBOLS
  25. #endif
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // MFC resource types (see Technical note TN024 for implementation details)
  29.  
  30. #ifdef RC_INVOKED
  31. #define DLGINIT     240
  32. #else
  33. #define RT_DLGINIT  MAKEINTRESOURCE(240)
  34. #endif
  35.  
  36. #define WM_VBXINIT      (WM_USER+0)
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39.  
  40. #ifdef APSTUDIO_INVOKED
  41. #undef APSTUDIO_HIDDEN_SYMBOLS
  42. #endif
  43.  
  44. /////////////////////////////////////////////////////////////////////////////
  45. // General style bits etc
  46.  
  47. // ControlBar styles
  48. #define CBRS_NOALIGN        0x00000000L
  49. #define CBRS_LEFT           0x00001400L     // align on left, line on right
  50. #define CBRS_TOP            0x00002800L     // align on top, line on bottom
  51. #define CBRS_RIGHT          0x00004100L     // align on right, line on left
  52. #define CBRS_BOTTOM         0x00008200L     // align on bottom, line on top
  53.  
  54. /////////////////////////////////////////////////////////////////////////////
  55. // Standard window components
  56.  
  57. // Mode indicators in status bar - these are routed like commands
  58. #define ID_INDICATOR_EXT                0xE700  // extended selection indicator
  59. #define ID_INDICATOR_CAPS               0xE701  // cap lock indicator
  60. #define ID_INDICATOR_NUM                0xE702  // num lock indicator
  61. #define ID_INDICATOR_SCRL               0xE703  // scroll lock indicator
  62. #define ID_INDICATOR_OVR                0xE704  // overtype mode indicator
  63. #define ID_INDICATOR_REC                0xE705  // record mode indicator
  64.  
  65. #define ID_SEPARATOR                    0   // special separator value
  66.  
  67.  
  68. #ifndef RC_INVOKED  // code only
  69. // Standard control bars (IDW = window ID)
  70. #define AFX_IDW_CONTROLBAR_FIRST 0xE800
  71. #define AFX_IDW_CONTROLBAR_LAST 0xE8FF
  72.  
  73. #define AFX_IDW_TOOLBAR                 0xE800  // main Toolbar for window
  74. #define AFX_IDW_STATUS_BAR              0xE801  // Status bar window
  75. #define AFX_IDW_PREVIEW_BAR             0xE802  // PrintPreview Dialog Bar
  76.  
  77. // Macro for mapping standard control bars to bitmask (limit of 32)
  78. #define AFX_CONTROLBAR_MASK(nIDC)   (1L << (nIDC - AFX_IDW_CONTROLBAR_FIRST))
  79.  
  80. // parts of Main Frame
  81. #define AFX_IDW_PANE_FIRST              0xE900  // first pane (256 max)
  82. #define AFX_IDW_PANE_LAST               0xE9ff
  83. #define AFX_IDW_HSCROLL_FIRST           0xEA00  // first Horz scrollbar (16 max)
  84. #define AFX_IDW_VSCROLL_FIRST           0xEA10  // first Vert scrollbar (16 max)
  85.  
  86. #define AFX_IDW_SIZE_BOX                0xEA20  // size box for splitters
  87. #define AFX_IDW_PANE_SAVE               0xEA21  // to shift AFX_IDW_PANE_FIRST
  88. #endif //!RC_INVOKED
  89.  
  90. #ifndef APSTUDIO_INVOKED
  91. // common style for form views
  92. #define AFX_WS_DEFAULT_VIEW             (WS_CHILD | WS_VISIBLE | WS_BORDER)
  93. #endif
  94.  
  95. /////////////////////////////////////////////////////////////////////////////
  96. // Standard app configurable strings
  97.  
  98. // for application title (defaults to EXE name or name in constructor)
  99. #define AFX_IDS_APP_TITLE               0xE000
  100. // idle message bar line
  101. #define AFX_IDS_IDLEMESSAGE             0xE001
  102. // message bar line when in shift-F1 help mode
  103. #define AFX_IDS_HELPMODEMESSAGE         0xE002
  104.  
  105. /////////////////////////////////////////////////////////////////////////////
  106. // Standard Commands
  107.  
  108. // File commands
  109. #define ID_FILE_NEW                     0xE100
  110. #define ID_FILE_OPEN                    0xE101
  111. #define ID_FILE_CLOSE                   0xE102
  112. #define ID_FILE_SAVE                    0xE103
  113. #define ID_FILE_SAVE_AS                 0xE104
  114. #define ID_FILE_PAGE_SETUP              0xE105
  115. #define ID_FILE_PRINT_SETUP             0xE106
  116. #define ID_FILE_PRINT                   0xE107
  117. #define ID_FILE_PRINT_PREVIEW           0xE108
  118.  
  119. #define ID_FILE_MRU_FILE1               0xE110          // range - 16 max
  120. #define ID_FILE_MRU_FILE2               0xE111
  121. #define ID_FILE_MRU_FILE3               0xE112
  122. #define ID_FILE_MRU_FILE4               0xE113
  123.  
  124. // Edit commands
  125. #define ID_EDIT_CLEAR                   0xE120
  126. #define ID_EDIT_CLEAR_ALL               0xE121
  127. #define ID_EDIT_COPY                    0xE122
  128. #define ID_EDIT_CUT                     0xE123
  129. #define ID_EDIT_FIND                    0xE124
  130. #define ID_EDIT_PASTE                   0xE125
  131. #define ID_EDIT_PASTE_LINK              0xE126
  132. #define ID_EDIT_PASTE_SPECIAL           0xE127
  133. #define ID_EDIT_REPEAT                  0xE128
  134. #define ID_EDIT_REPLACE                 0xE129
  135. #define ID_EDIT_SELECT_ALL              0xE12A
  136. #define ID_EDIT_UNDO                    0xE12B
  137. #define ID_EDIT_REDO                    0xE12C
  138.  
  139. // Window commands
  140. #define ID_WINDOW_NEW                   0xE130
  141. #define ID_WINDOW_ARRANGE               0xE131
  142. #define ID_WINDOW_CASCADE               0xE132
  143. #define ID_WINDOW_TILE_HORZ             0xE133
  144. #define ID_WINDOW_TILE_VERT             0xE134
  145. #define ID_WINDOW_SPLIT                 0xE135
  146. #ifndef RC_INVOKED      // code only
  147. #define AFX_IDM_WINDOW_FIRST            0xE130
  148. #define AFX_IDM_WINDOW_LAST             0xE13F
  149. #define AFX_IDM_FIRST_MDICHILD          0xFF00  // window list starts here
  150. #endif //!RC_INVOKED
  151.  
  152. // Help and App commands
  153. #define ID_APP_ABOUT                    0xE140
  154. #define ID_APP_EXIT                     0xE141
  155. #define ID_HELP_INDEX                   0xE142
  156. #define ID_HELP_USING                   0xE143
  157. #define ID_CONTEXT_HELP                 0xE144      // shift-F1
  158. // special commands for processing help
  159. #define ID_HELP                         0xE145      // first attempt for F1
  160. #define ID_DEFAULT_HELP                 0xE146      // last attempt
  161.  
  162. // Misc
  163. #define ID_NEXT_PANE                    0xE150
  164. #define ID_PREV_PANE                    0xE151
  165.  
  166. // OLE commands
  167. #define ID_OLE_INSERT_NEW               0xE200
  168. #define ID_OLE_EDIT_LINKS               0xE201
  169. #define ID_OLE_VERB_FIRST               0xE210     // range - 16 max
  170. #ifndef RC_INVOKED      // code only
  171. #define ID_OLE_VERB_LAST                0xE21F
  172. #endif //!RC_INVOKED
  173.  
  174. // for print preview dialog bar
  175. #define AFX_ID_PREVIEW_CLOSE            0xE300
  176. #define AFX_ID_PREVIEW_NUMPAGE          0xE301      // One/Two Page button
  177. #define AFX_ID_PREVIEW_NEXT             0xE302
  178. #define AFX_ID_PREVIEW_PREV             0xE303
  179. #define AFX_ID_PREVIEW_PRINT            0xE304
  180. #define AFX_ID_PREVIEW_ZOOMIN           0xE305
  181. #define AFX_ID_PREVIEW_ZOOMOUT          0xE306
  182.  
  183. // View commands (same number used as IDW used for control bar)
  184. #define ID_VIEW_TOOLBAR                 0xE800
  185. #define ID_VIEW_STATUS_BAR              0xE801
  186.     // -> E8FF reserved for other control bar commands
  187.  
  188. /////////////////////////////////////////////////////////////////////////////
  189. // Standard control IDs
  190.  
  191. #define IDC_STATIC              -1      // all static controls
  192.  
  193. /////////////////////////////////////////////////////////////////////////////
  194. // Standard string error/warnings
  195.  
  196. #ifndef RC_INVOKED      // code only
  197. #define AFX_IDS_SCFIRST                 0xEF00
  198. #endif //!RC_INVOKED
  199.  
  200. #define AFX_IDS_SCSIZE                  0xEF00
  201. #define AFX_IDS_SCMOVE                  0xEF01
  202. #define AFX_IDS_SCMINIMIZE              0xEF02
  203. #define AFX_IDS_SCMAXIMIZE              0xEF03
  204. #define AFX_IDS_SCNEXTWINDOW            0xEF04
  205. #define AFX_IDS_SCPREVWINDOW            0xEF05
  206. #define AFX_IDS_SCCLOSE                 0xEF06
  207. #define AFX_IDS_SCRESTORE               0xEF12
  208. #define AFX_IDS_SCTASKLIST              0xEF13
  209.  
  210. #define AFX_IDS_MDICHILD                0xEF1F
  211.  
  212.  
  213. // General strings
  214. #define AFX_IDS_OPENFILE                0xF000
  215. #define AFX_IDS_SAVEFILE                0xF001
  216. #define AFX_IDS_ALLFILTER               0xF002
  217. #define AFX_IDS_UNTITLED                0xF003
  218.  
  219. // Printing and print preview strings
  220. #define AFX_IDS_PRINTONPORT             0xF040
  221. #define AFX_IDS_ONEPAGE                 0xF041
  222. #define AFX_IDS_TWOPAGE                 0xF042
  223. #define AFX_IDS_PRINTPAGENUM            0xF043
  224. #define AFX_IDS_PREVIEWPAGEDESC         0xF044
  225.  
  226. // OLE strings
  227. #define AFX_IDS_OBJECT_MENUITEM         0xF080
  228. #define AFX_IDS_EDIT_VERB               0xF081
  229. #define AFX_IDS_ACTIVATE_VERB           0xF082
  230. #define AFX_IDS_CHANGE_LINK             0xF083
  231. #define AFX_IDS_AUTO                    0xF084
  232. #define AFX_IDS_MANUAL                  0xF085
  233. #define AFX_IDS_FROZEN                  0xF086
  234. #define AFX_IDS_ALL_FILES               0xF087
  235.     // dynamically changing menu items
  236. #define AFX_IDS_SAVE_MENU               0xF088
  237. #define AFX_IDS_UPDATE_MENU             0xF089
  238. #define AFX_IDS_SAVE_AS_MENU            0xF08A
  239. #define AFX_IDS_SAVE_COPY_AS_MENU       0xF08B
  240.  
  241.  
  242. // General error / prompt strings
  243. #define AFX_IDP_INVALID_FILENAME        0xF100
  244. #define AFX_IDP_FAILED_TO_OPEN_DOC      0xF101
  245. #define AFX_IDP_FAILED_TO_SAVE_DOC      0xF102
  246. #define AFX_IDP_ASK_TO_SAVE             0xF103
  247. #define AFX_IDP_FAILED_TO_CREATE_DOC    0xF104
  248. #define AFX_IDP_FILE_TOO_LARGE          0xF105
  249. #define AFX_IDP_FAILED_TO_START_PRINT   0xF106
  250. #define AFX_IDP_FAILED_TO_LAUNCH_HELP   0xF107
  251. #define AFX_IDP_INTERNAL_FAILURE        0xF108      // general failure
  252. #define AFX_IDP_COMMAND_FAILURE         0xF109      // command failure
  253. #define AFX_IDP_VB2APICALLED            0xF10A
  254.  
  255. // DDV parse errors
  256. #define AFX_IDP_PARSE_INT               0xF110
  257. #define AFX_IDP_PARSE_REAL              0xF111
  258. #define AFX_IDP_PARSE_INT_RANGE         0xF112
  259. #define AFX_IDP_PARSE_REAL_RANGE        0xF113
  260. #define AFX_IDP_PARSE_STRING_SIZE       0xF114
  261.  
  262. // CFile/CArchive error strings for user failure
  263. #define AFX_IDP_FAILED_INVALID_FORMAT   0xF120
  264. #define AFX_IDP_FAILED_INVALID_PATH     0xF121
  265. #define AFX_IDP_FAILED_DISK_FULL        0xF122
  266. #define AFX_IDP_FAILED_ACCESS_READ      0xF123
  267. #define AFX_IDP_FAILED_ACCESS_WRITE     0xF124
  268. #define AFX_IDP_FAILED_IO_ERROR_READ    0xF125
  269. #define AFX_IDP_FAILED_IO_ERROR_WRITE   0xF126
  270.  
  271. // OLE errors / prompt strings
  272. #define AFX_IDP_STATIC_OBJECT           0xF180
  273. #define AFX_IDP_FAILED_TO_CONNECT       0xF181
  274. #define AFX_IDP_SERVER_BUSY             0xF182
  275. #define AFX_IDP_BAD_VERB                0xF183
  276. #define AFX_IDP_FAILED_MEMORY_ALLOC     0xF184
  277. #define AFX_IDP_FAILED_TO_NOTIFY        0xF185
  278. #define AFX_IDP_FAILED_TO_LAUNCH        0xF186
  279. #define AFX_IDP_ASK_TO_UPDATE           0xF187
  280. #define AFX_IDP_FAILED_TO_UPDATE        0xF188
  281. #define AFX_IDP_FAILED_TO_REGISTER      0xF189
  282. #define AFX_IDP_FAILED_TO_AUTO_REGISTER 0xF18A
  283.  
  284. // 0xf200-0xf20f reserved for use by VBX library code
  285.  
  286. /////////////////////////////////////////////////////////////////////////////
  287. // AFX implementation - control IDs (AFX_IDC)
  288.  
  289. // Parts of dialogs
  290. #define AFX_IDC_LISTBOX         100
  291. #define AFX_IDC_CHANGE          101
  292. // Links dialog
  293. #define AFX_IDC_AUTO            201
  294. #define AFX_IDC_MANUAL          202
  295. #define AFX_IDC_VERB1           203
  296. #define AFX_IDC_VERB2           204
  297. #define AFX_IDC_FREEZE          205
  298. #define AFX_IDC_UPDATE          206
  299.  
  300. // for print dialog
  301. #define AFX_IDC_PRINT_DOCNAME   201
  302. #define AFX_IDC_PRINT_PRINTERNAME 202
  303. #define AFX_IDC_PRINT_PORTNAME  203
  304. #define AFX_IDC_PRINT_PAGENUM   204
  305.  
  306. /////////////////////////////////////////////////////////////////////////////
  307. // IDRs for standard components
  308.  
  309. // AFX standard ICON IDs (for MFC V1 apps)
  310. #define AFX_IDI_STD_MDIFRAME            1
  311. #define AFX_IDI_STD_FRAME               2
  312.  
  313. #ifndef RC_INVOKED  // code only
  314. // These are really COMMDLG dialogs, so there usually isn't a resource
  315. // for them, but these IDs are used as help IDs.
  316. #define AFX_IDD_FILEOPEN                28676
  317. #define AFX_IDD_FILESAVE                28677
  318. #define AFX_IDD_FONT                    28678
  319. #define AFX_IDD_COLOR                   28679
  320. #define AFX_IDD_PRINT                   28680
  321. #define AFX_IDD_PRINTSETUP              28681
  322. #define AFX_IDD_FIND                    28682
  323. #define AFX_IDD_REPLACE                 28683
  324. #endif //!RC_INVOKED
  325.  
  326. // Standard dialogs app should leave alone (0x7801->)
  327. #define AFX_IDD_NEWTYPEDLG              30721
  328. #define AFX_IDD_PRINTDLG                30722
  329. #define AFX_IDD_PREVIEW_TOOLBAR         30723
  330. #define AFX_IDD_OLEINSERT               30724
  331. #define AFX_IDD_OLELINKS                30725
  332.  
  333. // Standard cursors (0x7901->)
  334.     // AFX_IDC = Cursor resources
  335. #define AFX_IDC_CONTEXTHELP             30977       // context sensitive help
  336. #define AFX_IDC_MAGNIFY                 30978       // print preview zoom
  337. #define AFX_IDC_SMALLARROWS             30979       // splitter
  338. #define AFX_IDC_HSPLITBAR               30980       // splitter
  339. #define AFX_IDC_VSPLITBAR               30981       // splitter
  340. #define AFX_IDC_NODROPCRSR              30982       // No Drop Cursor
  341.  
  342. /////////////////////////////////////////////////////////////////////////////
  343. #endif //__AFXRES_H__
  344.