Question:
I want to add a new item to the control box menu(or system menu). I add a new item using API’s likeAppendMenu and InsertMenu and both work fine, but here’s my question; I don’t know how to assign code to these newly created menu items so that they do something. I heard of ways that this could be done by using certain VBXs like MessageBlaster, but I’d like to know if there is a way to doing this without the use of any VBXs.
Answer:
In a lot of cases, you can get around using additional VBXs. In this case, however, you will have to use an additional control. The reason is this: Windows uses a thing called a callback to make events and messages work. However, to make things easier, VB has hidden that functionality. In some cases like this one, you have to have a control like MessageBlaster or SpyWorks to allow your program to respond correctly to these events.