devxlogo

Intercepting Windows Messages

Intercepting Windows Messages

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.

See also  Is Machine Learning Automating Creativity in Graphic Design?
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist