how do you make an item on a menu become checked

so i can set this statement

if mnuoff (you enter the bit to make it checked) then
mciSendString "close background", 0, 0, 0
end if

cheers

Merlin ?