home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / SAMPLES / SHOWGDI / MENU.H_ / MENU.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  2.7 KB  |  94 lines

  1. /****************************************************************************
  2.  MENU.h
  3.  
  4.  This file contains all of the menu IDs.
  5.  
  6. ****************************************************************************/
  7.  
  8.  
  9. /* Menu IDs are of the form MII in hex where M is the menu group number
  10.    and II is a unique item number for that menu group. */
  11.  
  12. #define MenuGroupFromID( id )    ((id) & 0xFF00)
  13.  
  14. /* Menu groups */
  15. #define VIEW_MENU_GROUP    0x100
  16. #define DC_MENU_GROUP      0x200
  17. #define DRAW_MENU_GROUP    0x300
  18. #define HELP_MENU_GROUP    0x400
  19.  
  20. /* View menu */
  21. #define IDM_CLEAR          0x100
  22. #define IDM_DRAWINGSIZE    0x101
  23. #define IDM_NORMALSIZE     0x102
  24. #define IDM_ZOOMIN         0x103
  25. #define IDM_ZOOMOUT        0x104
  26. #define IDM_SETSCALE       0x105
  27. #define IDM_PIXGRID        0x106
  28.  
  29. /* General Menu */
  30. #define IDM_DEFAULTS       0x200
  31. #define IDM_COORDS         0x201
  32. #define IDM_CLIP           0x202
  33. #define IDM_BKCOLOR        0x203
  34. #define IDM_BKMODE         0x204
  35. #define IDM_ROP2           0x205
  36. #define IDM_POLYMODE       0x206
  37. #define IDM_BLTMODE        0x207
  38.  
  39. /* Brush menu */
  40. #define IDM_NULLBRUSH      0x230
  41. #define IDM_SOLIDBRUSH     0x231
  42. #define IDM_HATCHBRUSH     0x232
  43. #define IDM_PATBRUSH       0x233
  44. #define IDM_DIBPATBRUSH    0x234
  45. #define IDM_BRUSHORG       0x235
  46.                            
  47. /* Pen menu */             
  48. #define IDM_NULLPEN        0x240
  49. #define IDM_SOLIDPEN       0x241
  50. #define IDM_INSIDEFRAMEPEN 0x242
  51. #define IDM_DASHPEN        0x243
  52. #define IDM_DOTPEN         0x244
  53. #define IDM_DASHDOTPEN     0x245
  54. #define IDM_DASHDOTDOTPEN  0x246
  55. #define IDM_PENWIDTH       0x247
  56. #define IDM_PENCOLOR       0x248
  57. #define IDM_PENPOS         0x249
  58.  
  59. /* Text Menu */
  60. #define IDM_FONT           0x260
  61. #define IDM_TEXTALIGN      0x261
  62. #define IDM_TEXTJUST       0x262
  63. #define IDM_TEXTEXTRA      0x263
  64. #define IDM_TEXTCOLOR      0x264
  65.  
  66. /* Draw menu */
  67. #define IDM_SETPIXEL       0x300
  68. #define IDM_LINETO         0x301
  69. #define IDM_LINE           0x302
  70. #define IDM_RECTANGLE      0x303
  71. #define IDM_ELLIPSE        0x304
  72. #define IDM_ROUNDRECT      0x305
  73. #define IDM_ARC            0x306
  74. #define IDM_PIE            0x307
  75. #define IDM_CHORD          0x308
  76. #define IDM_POLYLINE       0x309
  77. #define IDM_POLYGON        0x30A
  78. #define IDM_POLYPOLYGON    0x30B
  79. #define IDM_PATBLT         0x30C
  80. #define IDM_BITBLT         0x30D
  81. #define IDM_STRETCHBLT     0x30E
  82. #define IDM_DIBTODEVICE    0x30F
  83. #define IDM_STRETCHDIB     0x310
  84. #define IDM_TEXTOUT        0x311
  85. #define IDM_EXTTEXTOUT     0x312
  86. #define IDM_DRAWTEXT       0x313
  87. #define IDM_FLOODFILL      0x314
  88. #define IDM_EXTFLOODFILL   0x315
  89.  
  90. /* Help menu */                        
  91. #define IDM_ABOUT          0x400
  92.  
  93.  
  94.