Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Killing the Default Combo Box Edit Context Menu

Status
Not open for further replies.

Gilske

Programmer
Oct 9, 2003
9
BE
Does anybody know how to kill the default Combo box Edit Context menu of multiple combo boxes on the same form?

I've found some code but it won't work with more than 1 box on the form.

Thnx in advance
 
Hey,

Kind of a bootstrap way to handle it, but you may be able to put the individual boxes on separate frames...that usually separates them....that's what I use for radio buttons and it works fine.

Good luck

Kevin
 
By the way, if you use the frame idea, know that it may throw off any tab settings that you have....

Good luck

Kevin
 
What code did you try? One way is to subclass the combos and discard the right mouse click message. Although each control has to be subclassed and unsubclassed seperately, you can point them all to a single WindowProc to process the messages.

Paul Bent
Northwind IT Systems
 
That's what paulbent said!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top