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

Windows编程

开发平台:

Visual C++

  1. /******************************************************************************
  2. *       This is a part of the Microsoft Source Code Samples. 
  3. *       Copyright (C) 1993-1997 Microsoft Corporation.
  4. *       All rights reserved. 
  5. *       This source code is only intended as a supplement to 
  6. *       Microsoft Development Tools and/or WinHelp documentation.
  7. *       See these sources for detailed information regarding the 
  8. *       Microsoft samples programs.
  9. ******************************************************************************/
  10. #define IDM_SYSMENU  666
  11. #define IDM_FILE        100
  12. #define IDM_NEW             IDM_FILE+1
  13. #define IDM_OPEN            IDM_FILE+2
  14. #define IDM_CLOSE           IDM_FILE+3
  15. #define IDM_SAVE            IDM_FILE+4
  16. #define IDM_SAVEAS          IDM_FILE+5
  17. #define IDM_PRINT           IDM_FILE+6
  18. #define IDM_PRINTSET        IDM_FILE+7
  19. #define IDM_EXIT            IDM_FILE+8
  20. #define IDM_EDIT        110
  21. #define IDM_UNDO            IDM_EDIT+1
  22. #define IDM_CUT             IDM_EDIT+2
  23. #define IDM_COPY            IDM_EDIT+3
  24. #define IDM_PASTE           IDM_EDIT+4
  25. #define IDM_DELETE          IDM_EDIT+5
  26. #define IDM_FIND            IDM_EDIT+6
  27. #define IDM_REPLACE         IDM_EDIT+7
  28. #define IDM_VIEW        120
  29. #define IDM_CHARSET         IDM_VIEW+1
  30. #define IDM_GLYPH           IDM_VIEW+2
  31. #define IDM_TOOLBAR         IDM_VIEW+3
  32. #define IDM_STATUSBAR       IDM_VIEW+4
  33. #define IDM_DIALOG        130
  34. #define IDM_CREATEFONT      IDM_DIALOG+1
  35. #define IDM_TEXTMETRIC      IDM_DIALOG+2
  36. #define IDM_ENUMFONTS       IDM_DIALOG+3
  37. #define IDM_OUTLINEMETRICS  IDM_DIALOG+4
  38. #define IDM_HELP        140
  39. #define IDM_HELP_CONTENTS   IDM_HELP+1
  40. #define IDM_HELP_INDEX      IDM_HELP+2
  41. #define IDM_HELP_OVERVIEW   IDM_HELP+3
  42. #define IDM_HELP_GLOSSARY   IDM_HELP+4
  43. #define IDM_HELP_TUTORIAL   IDM_HELP+5
  44. #define IDM_HELP_DEMO       IDM_HELP+6
  45. #define IDM_HELP_HELP       IDM_HELP+7
  46. #define IDM_ABOUT           IDM_HELP+8
  47. #define ID_TOOLBAR      150
  48. #define ID_CREATEPARAM      ID_TOOLBAR+1
  49. #define ID_CREATEVALUE      ID_TOOLBAR+2
  50. #define ID_ZOOM                         ID_TOOLBAR+3
  51. #define ID_STATUSBAR    160
  52. #define ID_MENUFIELD        ID_STATUSBAR+1
  53. #define ID_TIMEFIELD        ID_STATUSBAR+2
  54. #define ID_NUMFIELD         ID_STATUSBAR+3
  55. #define ID_OVRFIELD         ID_STATUSBAR+4
  56. #define ID_SCROLLFIELD      ID_STATUSBAR+5
  57. #define ID_CAPSFIELD        ID_STATUSBAR+6
  58. #define CFP_BASE        200
  59. #define CFP_HEIGHT          CFP_BASE+0
  60. #define CFP_WIDTH           CFP_BASE+1
  61. #define CFP_ESCAPEMENT      CFP_BASE+2
  62. #define CFP_ORIENTATION     CFP_BASE+3
  63. #define CFP_WEIGHT          CFP_BASE+4
  64. #define CFP_ITALIC          CFP_BASE+5
  65. #define CFP_UNDERLINE       CFP_BASE+6
  66. #define CFP_STRIKEOUT       CFP_BASE+7
  67. #define CFP_CHARSET         CFP_BASE+8
  68. #define CFP_OUTPUTPRECISION CFP_BASE+9
  69. #define CFP_CLIPPRECISION   CFP_BASE+10
  70. #define CFP_QUALITY         CFP_BASE+11
  71. #define CFP_PITCH           CFP_BASE+12
  72. #define CFP_FAMILY          CFP_BASE+13
  73. #define CFP_FACENAME        CFP_BASE+14
  74. #define CFD_BASE        220
  75. #define CFD_HEIGHT          CFD_BASE+0
  76. #define CFD_WIDTH           CFD_BASE+1
  77. #define CFD_ESCAPEMENT      CFD_BASE+2
  78. #define CFD_ORIENTATION     CFD_BASE+3
  79. #define CFD_WEIGHT          CFD_BASE+4
  80. #define CFD_ITALIC          CFD_BASE+5
  81. #define CFD_UNDERLINE       CFD_BASE+6
  82. #define CFD_STRIKEOUT       CFD_BASE+7
  83. #define CFD_CHARSET         CFD_BASE+8
  84. #define CFD_OUTPUTPRECISION CFD_BASE+9
  85. #define CFD_CLIPPRECISION   CFD_BASE+10
  86. #define CFD_QUALITY         CFD_BASE+11
  87. #define CFD_PITCHANDFAMILY  CFD_BASE+12
  88. #define CFD_FACENAME        CFD_BASE+13
  89. #define CFD_DEFAULT         CFD_BASE+14
  90. #define TMD_BASE        240
  91. #define TMD_HEIGHT          TMD_BASE+0
  92. #define TMD_ASCENT          TMD_BASE+1
  93. #define TMD_DESCENT         TMD_BASE+2
  94. #define TMD_INTERNAL        TMD_BASE+3
  95. #define TMD_EXTERNAL        TMD_BASE+4
  96. #define TMD_AVEWIDTH        TMD_BASE+5
  97. #define TMD_MAXWIDTH        TMD_BASE+6
  98. #define TMD_WEIGHT          TMD_BASE+7
  99. #define TMD_ITALIC          TMD_BASE+8
  100. #define TMD_UNDERLINE       TMD_BASE+9
  101. #define TMD_STRUCKOUT       TMD_BASE+10
  102. #define TMD_FIRSTCHAR       TMD_BASE+11
  103. #define TMD_LASTCHAR        TMD_BASE+12
  104. #define TMD_DEFAULTCHAR     TMD_BASE+13
  105. #define TMD_BREAKCHAR       TMD_BASE+14
  106. #define TMD_PITCHANDFAMILY  TMD_BASE+15
  107. #define TMD_CHARSET         TMD_BASE+16
  108. #define TMD_OVERHANG        TMD_BASE+17
  109. #define TMD_DIGITIZEDASPECTX TMD_BASE+18
  110. #define TMD_DIGITIZEDASPECTY TMD_BASE+19
  111. #define TMD_SET             TMD_BASE+20
  112. #define ED_BASE         260
  113. #define ED_PREV             ED_BASE+0
  114. #define ED_NEXT             ED_BASE+1
  115. #define ED_TYPE             ED_BASE+2
  116. #define ED_SET              ED_BASE+3
  117. #define ED_HEX              ED_BASE+4
  118. #define ED_SAMPLE           ED_BASE+5