#include “BiAnno.h”
BOOL CALLBACK AnnoGetMenuItemName ( LPVOID pMenu,
DWORD dwItem,
LPTSTR pMenuName, DWORD& dwSize )
Description
This function gets the name 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. |
|
LPTSTR |
pMenuName |
This string will contains the name of the specified menu item. |
|
DWORD& |
dwSize |
Size of the pMenuName in characters. If the size is small this parameter will contain the required size for storing the name of the menu item. In this case the function returns FALSE, and the error code will be ANNO_INVALID_PARAMETER. |
Additional Information
This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.
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 AnnoSetMenuItemName for more information.
Code Example
None