The IsMenu function determines whether a handle is a menu handle.
BOOL IsMenu(
HMENU hMenu
// handle to test
);
If hMenu is a menu handle, the return value is nonzero.
If hMenu is not a menu handle, the return value is zero.