Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping CNiGraph events to CView

I need to add a CNiGraph on a view. I add the control on the view using
m_niGraph.Create( pszCaption , WS_VISIBLE , *pRect , this , IDC_NIGRAPH );
Now i need to map the Key Down and Cursor Move events to the view. Please tell me if u know a way to do that.
0 Kudos
Message 1 of 3
(3,104 Views)
Hello

With MDI and SDI documents, you cant use the wizard to generate the event maps for you. This is something you have to do manually. I have attached an example of this, but also check out the following links. Here and here are some handy references that walk you thru the process of adding the event handlers.


I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
Message 2 of 3
(3,104 Views)
Thank you for your solution. It is realy the one i needed. Hope this helps others too.
0 Kudos
Message 3 of 3
(3,104 Views)