AnnoIsMenuItemEnabled

#include “BiAnno.h”

BOOL CALLBACK AnnoIsMenuItemEnabled (  LPVOID            pMenu,
DWORD   dwItem,
BOOL&    bEnabled )

Description

This function gets the state of the menu item in the user defined pop-up menu.

Parameters

LPVOID

pMenu

Pointer to the custom menu

DWORD

dwItem

Index of the menu item in the menu. This is a zero basid integer.

BOOL&

bEnabled

This is an output parameter. If this parameter is TRUE, the menu item is enabled, otherwise disabled.

Return value

TRUE on success, otherwise FALSE. If any error occurs, you can call the AnnoGetLastError function for the last error code.

Programming Notes

See AnnoEnableMenuItem for more information.

Code Example

None