;   XXControls & NTS
;   
;e-mail:     "Chib" <XXControls@bk.ru>
;            "Alexm" <amdtm@mail.ru>

WndProc_Menu        PROTO   :DWORD,:DWORD,:DWORD,:DWORD
DrawBmp             PROTO   :DWORD, :DWORD, :DWORD, :BYTE
SubMenuToOwnerdraw  PROTO   :HMENU
MainMenuToOwnerdraw PROTO   :HMENU
UpItemOwnDrToNormal PROTO   :HMENU
MeasureItem_Menu    PROTO   :LPARAM
DrawItem_Menu       PROTO   :LPARAM
SetMenuItemIcon     PROTO   :DWORD, :HICON
DrawCheck_XP        PROTO   :HDC, :DWORD, :BYTE, :BYTE
DrawCheck_2000      PROTO   :HDC, :DWORD, :BYTE, :BYTE
DrawCheckXNET       PROTO   :HDC, :DWORD, :BYTE, :BYTE
DrawRctCheckXNET    PROTO   :HDC, :DWORD, :BYTE
SubMenuToNormal     PROTO   :HMENU
OwnerDrawToNormal   PROTO   :HMENU
IsID_ThemeXP_inc    PROTO   :HWND, :HMENU
IsID_ThemeXP_dec    PROTO   :HWND, :HMENU

SetStyleMenu        PROTO   :HMENU, :DWORD
SubMenuToStyle      PROTO   :HMENU, :DWORD
MenuToStyle         PROTO   :HMENU, :DWORD
ChangeStyle         PROTO   :HMENU, :DWORD

SetSizeBorder       PROTO   :DWORD, :DWORD, :DWORD

MENUINFO STRUCT
    cbSize          DWORD ?
    fMask           DWORD ?
    dwStyle         DWORD ?
    cyMax           UINT  ?
    hbrBack         HBRUSH ?
    dwContextHelpID DWORD ?
    dwMenuData      DWORD ?
MENUINFO ENDS

.data
fSelection          BYTE    TRUE            ; если true то выделяем запрещённый итем
fAccel              BYTE    TRUE
LeftBmpWidth        dd      8

.data
hMenu               HMENU   ?
          
WidthBorder         dd      ?
HeightBorder        dd      ?

; флаги
fPopup              BYTE    ?