Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I approach controls in Dialogbar?

I would like to know how I can approach my controls in Dialogbar?

I made an dialogbar in mainframe and added some NI Controls and normal controls (ex, CEdit). I can handle normal controls without problem, but if I try to handle NI Controls it gives runtime errors.

Does it happens since Ni Controls are ActiveX controls? In that case, how can I handle them?

I tried like follows:

CNiNumEdit *numEdit;
numEdit = (CNiNumEdit*)m_wndDialogBar.GetDlgItem(IDC_CWNETL);
numEdit->Value = 10;
0 Kudos
Message 1 of 2
(2,960 Views)
Simply go to the "project->Add to Project->Components and Controls" Select the NI controls you want to use. You will see a bunch of new classes added to you project in your class view.

See zip file for simple demo....

Steve
0 Kudos
Message 2 of 2
(2,960 Views)