Determining the Status of the Checkmark

To determine whether a menu field is checked or not, call the menu field is checked function, mnf_ischecked():

long mnf_ischecked(mfldp)

MFIELDPTR mfldp;        /* Menu field to check            */

mnf_ischecked() returns a non-zero value if the field is checked, zero if not checked.

For example, to determine the checkmark status of the current field in a menu, call:

long status;

status = mnf_ischecked(curmfldp(mfmp));

curmfldp() is a function that returns the pointer to the current menu field in the menu form.


Home Contents Previous Next