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


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

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