Can I remove a menu item?

In my application there is a menu module with many items. And I hope that
the menu will popup with different items in different conditions. I use
ApCreateModule() to popup the menu. I hope some of the items can be removed
before the menu popup.
I know that the menu item can be set to dim. but I want the menu item not
visible.

Try building your menu at runtime instead of loading a pre-built menu.
There is a
good example of how you caan do this in the PtMenu documentation.

“Lily” <lilywhite@x263.net> wrote in message
news:a73vo1$488$1@inn.qnx.com

In my application there is a menu module with many items. And I hope that
the menu will popup with different items in different conditions. I use
ApCreateModule() to popup the menu. I hope some of the items can be
removed
before the menu popup.
I know that the menu item can be set to dim. but I want the menu item not
visible.