Hi,
When you play with menus throught the API calls, there is a chance that
you could be leaving the menu resources by not destroying them properly. I
don't know how you would do this in VB, but can be done with the SDK. What
API's are you actually calling?
Have you looked at the article in the Knowledge Base dealing with
TrackPopupMenu?…and are you doing anything differently?
Don Funk
There is 1 Reply.
Don, I did get the KB doc. I am using CreatePopupMenu() to create the
empty menu (and get the handle), then loading the menu with AppendMenu() to
load it with strings from a list box. I then call TrackPopupMenu() to
actually popup the menu.
Once it is displayed, LEFT_BUTTON get rid of it. However, this could be
problem, I do not know where the message from the mouse click goes so that
I can call DestroyMenu(). The menu is created at run time, so how do I
intercept a message from the menu? Thanks for all your help.
Brant