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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intercepting click events of an ActiveX Contol (subclassing?)

Status
Not open for further replies.

GusBrown

Programmer
Nov 24, 2000
38
0
0
GB
Hi All,

I have an activeX mapping control on a form and I'd like to know whether the user has right-clicked on it (the mapping control). The mapping control has a _Click event but only responds to left-clicks.

I've been playing with SoftCircuit's subclassing control ( and can intercept all 'normal' events (clicking on a button, moving the mouse, resizing the form etc) but as soon as I interact with the mapping control it ignores the subclassing!

The other idea I had was to place some kind of invisible control over the mapping control which could catch the clicks, perform my code, then pass the event onto the mapping control - but I have no idea if this is possible.

This is with Access 97.

Any help much appreciated,

Gus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top