dcsimg
Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


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 like AppendMenu 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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date