Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

CWNumEdit Control

hi all
i have got a problem using the CWNumEdit Control that is i am not getting the resource id number of
 any CWNumedit controls all are giving
wrong values but when i check other controls like graph , knob etc
they are behaving correctly .

CWnd* pWnd = GetFocus();
int nCtrlID =pWnd->GetDlgCtrlID();


i used the above code to check it in click event .
if anyone know about it plz tell

Thank you
0 Kudos
Message 1 of 2
(3,737 Views)
This problem is still being looked at currently.  I believe it has to do with the fact that the Numeric Edit control is built out of multiple sub windows.  It may be that one of those sub windows holds the focus.  In this case it would return the Resource ID of the sub window, instead of the Numeric Edit control's resource ID.  Unfortunately, the only work around may be to hardcode situations where you want to get the Resource ID of the NumericEdit control.  I will keep you updated on any progress with this issue.

Regards,

Tyler Tigue
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,727 Views)