Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
1.7 KiB

  1. ;****************************************************************************
  2. ;* *
  3. ;* USERMENU.INC - *
  4. ;* *
  5. ;* Menu Structures and Defines *
  6. ;* *
  7. ;****************************************************************************
  8. ;
  9. ; mnFlags bits
  10. ;
  11. FISPOPUP = 01h
  12. ;
  13. ; Resource template lastmenu bit
  14. ;
  15. FENDMENU = 080h
  16. ;
  17. ; itmFlags bits and flags parameter values
  18. ;
  19. MF_CHANGE = 0080h
  20. MF_INSERT = 0000h
  21. MF_APPEND = 0100h
  22. MF_DELETE = 0200h
  23. MF_BYPOSITION = 0400h
  24. MF_SEPARATOR = 0800h
  25. MF_REMOVE = 1000h
  26. MF_BYCOMMAND = 0000h
  27. MF_GRAYED = 0001h
  28. MF_DISABLED = 0002h
  29. MF_ENABLED = 0000h
  30. MF_BITMAP = 0004h
  31. MF_OWNERDRAW = 0100h
  32. MF_STRING = 0000h
  33. MF_CHECKED = 0008h
  34. MF_UNCHECKED = 0000h
  35. MF_POPUP = 0010h
  36. MF_MENUBARBREAK = 0020h
  37. MF_MENUBREAK = 0040h
  38. MF_HILITE = 0080h
  39. MF_UNHILITE = 0000h
  40. MF_HELP = 4000h
  41. MF_ALLSTATE = 00FFh
  42. TAB = 9
  43. PATCOPYL = 0021h
  44. PATCOPYH = 00F0h
  45. ITEM struc
  46. itmFlags dw ?
  47. itmCmdMenu dw ?
  48. itmXItem dw ?
  49. itmYItem dw ?
  50. itmCxItem dw ?
  51. itmCyItem dw ?
  52. itmDxTab dw ?
  53. itmCheckMarkOn dw ?
  54. itmCheckMarkOff dw ?
  55. itmHItem dw ?
  56. strgX dw ?
  57. strgWidth dw ?
  58. len dw ?
  59. ITEM ends
  60. SIG_MENU equ ('M' + ('U' * 256))
  61. AMENU struc
  62. mnPMenuNext dw ?
  63. mnFlags dw ?
  64. mnSignature dw ?
  65. mnHqOwner dw ?
  66. mnCxMenu dw ?
  67. mnCyMenu dw ?
  68. mnCItems dw ?
  69. mnhwndNotify dw ?
  70. mnRgItems dw ?
  71. ifdef JAPAN
  72. mnMenuMode dw ?
  73. endif
  74. AMENU ends
  75. ;
  76. ; Menu string structure
  77. ;
  78. if 0
  79. STRG struc
  80. len dw ?
  81. strgX dw ?
  82. strgWidth dw ?
  83. strgString dw ?
  84. STRG ends
  85. endif