Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

add an event handler for a dynamically created control

Now that I know how to dynamically create an ActiveX control, such as a CNiGraph, how can I register an event handler for this new control? BEGAN_EVENTSYNC_MAP doesn't seem to be the answer, since this is a dynamically created control. Is there an addEventHandler function, which can add to a predefined event map?

 

I’m using Visual C++ 6.0, not .NET.

0 Kudos
Message 1 of 2
(3,498 Views)
I'm afraid its not as simple as a call to addhandler with MFC. Check out this Microsoft KB for create a sink interface. This will work for VC 6.0.

Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,478 Views)