Подскажите что не так, заменяет пункт меню на полоску вместо галки
CODE:external (INT, "ModifyMenu", "ModifyMenuA", "user32.dll" );
external (INT, "AppendMenu", "AppendMenuA", "User32.dll" );
external (INT, "CreateMenu", "CreateMenu", "User32.dll" );
external (INT, "SetMenuInfo", "SetMenuInfo", "User32.dll" );
external (INT, "SetMenu", "SetMenu", "User32.dll" );
external (INT, "ModifyMenu", "ModifyMenuA", "user32.dll" );
#define MF_CHECKED 8
#define MF_UNCHECKED 0
#define MF_BYPOSITION 1024
int MENUINFO[7]={28, 16, 134217728, 0, 0, 0, 0},HMENU,HMENU2;
HMENU2=CreateMenu();
AppendMenu(HMENU2, 0, 1, "qwe");
AppendMenu(HMENU2, 0, 2, "rty");
HMENU=CreateMenu();
AppendMenu(HMENU, 16, HMENU2, "Менюха");
createdialog(0);
showdialog(0, "Диалог", 835, 390, 250, 300, 1, 1);
loop() sleep(10);
function getmessage(0, WM_CREATE){
SetMenuInfo(HMENU, address(#MENUINFO[0]));
SetMenu(gethwnd(0), HMENU);
ModifyMenu(HMENU2, 0, MF_CHECKED | MF_BYPOSITION, 0, 0);
}