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

Eventhandling

Status
Not open for further replies.

Kostarsus

Programmer
Nov 30, 2000
86
DE
Hello,

I'd written two activex-dlls.
In these activeX-dlls are some forms.
How can I react on a button-click-event on a form of the activex-dll-1 in activex-dll-2?

Any suggestions?

CU Kostarsus
 
If your app knows the hwnd of the other dll you can use sendmessage to let the other know when something happens. The way I have done this (only ever done it with IE toolbars and sidebars) is to do a search for windows with a cetain name using enumwindows, when I get the window name I want I use sendmessage to send the message and enumwindowproc to catch it at the other end.

Its all win32 api stuff, there is a win32 api forum. A great reference tool is available from that tells you what all the calls do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top