RESOURCE.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:3k
源码类别:

Windows编程

开发平台:

Visual C++

  1. /*
  2.  * RESOURCE.H
  3.  * Patron Chapter 1
  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. #ifndef _RESOURCE_H_
  14. #define _RESOURCE_H_
  15. //Note that we augment classlib.h which we include before this.
  16. //Position of Window menu.
  17. #undef  WINDOW_MENU
  18. #define WINDOW_MENU                 3
  19. //Total number of menus
  20. #undef  CMENUS
  21. #ifdef MDI
  22. #define CMENUS                      5
  23. #else
  24. #define CMENUS                      4
  25. #endif
  26. //Menu command identifiers.
  27. #define IDM_FILEPRINT               (IDM_CUSTOMFILEMIN)
  28. #define IDM_FILEPRINTERSETUP        (IDM_CUSTOMFILEMIN+1)
  29. #define IDM_PAGENEWPAGE             (IDM_CUSTOMMIN)
  30. #define IDM_PAGEDELETEPAGE          (IDM_CUSTOMMIN+1)
  31. #define IDM_PAGENEXTPAGE            (IDM_CUSTOMMIN+2)
  32. #define IDM_PAGEPREVIOUSPAGE        (IDM_CUSTOMMIN+3)
  33. #define IDM_PAGEFIRSTPAGE           (IDM_CUSTOMMIN+4)
  34. #define IDM_PAGELASTPAGE            (IDM_CUSTOMMIN+5)
  35. /*
  36.  * IDs for StatStrip handling of popup menus:  must be in order of menu
  37.  * CLASSRES.H already defines ID_MENUFILE and ID_MENUEDIT for us.
  38.  */
  39. #undef ID_MENUWINDOW
  40. #undef ID_MENUHELP
  41. #define ID_MENUPAGE                 (ID_MENUCUSTOMMIN+0)
  42. #define ID_MENUWINDOW               (ID_MENUCUSTOMMIN+1)
  43. #define ID_MENUHELP                 (ID_MENUCUSTOMMIN+2)
  44. //Stringtable IDs.  Keep sequential for each group.
  45. #define IDS_FRAMEMIN                IDS_STANDARDFRAMEMIN
  46. #define IDS_FRAMEMAX                IDS_STANDARDFRAMEMAX
  47. #define IDS_DOCUMENTMIN             IDS_STANDARDDOCMIN
  48. #define IDS_PRINTERROR              (IDS_CUSTOMDOCMIN+0)
  49. #define IDS_DOCUMENTNAME            (IDS_CUSTOMDOCMIN+1)
  50. #define IDS_DOCUMENTMAX             (IDS_CUSTOMDOCMIN+1)
  51. //These are specifically for the StatStrip
  52. #define IDS_STATMESSAGEMIN                  IDS_STANDARDSTATMESSAGEMIN
  53. #define IDS_ITEMMESSAGEFILEPRINT            (IDS_CUSTOMSTATMESSAGEMIN+0)
  54. #define IDS_ITEMMESSAGEFILEPRINTERSETUP     (IDS_CUSTOMSTATMESSAGEMIN+1)
  55. #define IDS_MENUMESSAGEPAGE                 (IDS_CUSTOMSTATMESSAGEMIN+2)
  56. #define IDS_ITEMMESSAGEPAGENEWPAGE          (IDS_CUSTOMSTATMESSAGEMIN+3)
  57. #define IDS_ITEMMESSAGEPAGEDELETEPAGE       (IDS_CUSTOMSTATMESSAGEMIN+4)
  58. #define IDS_ITEMMESSAGEPAGENEXTPAGE         (IDS_CUSTOMSTATMESSAGEMIN+5)
  59. #define IDS_ITEMMESSAGEPAGEPREVIOUSPAGE     (IDS_CUSTOMSTATMESSAGEMIN+6)
  60. #define IDS_ITEMMESSAGEPAGEFIRSTPAGE        (IDS_CUSTOMSTATMESSAGEMIN+7)
  61. #define IDS_ITEMMESSAGEPAGELASTPAGE         (IDS_CUSTOMSTATMESSAGEMIN+8)
  62. #define IDS_STATMESSAGEMAX                  (IDS_CUSTOMSTATMESSAGEMIN+8)
  63. //Definitions for the printing dialog.
  64. #define IDD_PRINTING                2
  65. #define ID_CURRENTPAGE              101
  66. #define ID_CURRENTCOPY              102
  67. #define ID_COPYSTRING               103
  68. #define ID_PAGESTRING               104
  69. #define PRINTM_PAGEUPDATE           (WM_USER+100)
  70. #define PRINTM_COPYUPDATE           (WM_USER+101)
  71. #endif //_RESOURCE_H_