I'm working with MSVC++. I have a GUI with button and a text box. When I push the button the function CDLG::OnButtonPush() gets executed. This in turn calls the function SomeFunction(). The text box on my GUI has a value, say, 12.0 "held" in it. How do I get the function SomeFunction(), or CDLG::OnButtonPush() for that matter, to use the value held in the text box?
Here is some of my code:
Code:void CDLG::OnButtonPush() { SomeFunction(); } void CDLG::OnEnChangeEdit1() { // TODO: If this is a RICHEDIT control, the control will not // send this notification unless you override the CDialog::OnInitDialog() // function and call CRichEditCtrl().SetEventMask() // with the ENM_CHANGE flag ORed into the mask. // TODO: Add your control notification handler code here }



LinkBack URL
About LinkBacks



CornedBee