Back

CheckMenuItem()




    USAGE

    void CheckMenuItem(MenuList, MenuNum, ItemNum, SubItemNum, On)

    FUNCTION

    This routine will set or clear the check mark on a MenuItem for you, without you having to have the MenuItem's address hard coded into your program. It can be used to alter MenuItems in either the drop down or pop up menu lists.

    Give it the Menu list and the three numbers that identify the intend MenuItem, and it will find that MenuItem and, depending on the Boolean 'On', it will set or clear the CHECKED bit in the MenuItem's Flags.

    If you wish to access a MenuItem that has subitems, set SubItemNum to MENUNULL, or -1, and it will update the MenuItem, rather than one of its subitems.

    If you are dealing with a Menu that is already installed (with SetMenuStrip) you can call:

    (*functions->CheckMenuItem)( window -> MenuStrip, MenuNum, ItemNum, SubItemNum, On);

    INPUTS


    RESULT

    none (void)