to make a phone
-
i want to know,that as i insert a edit box on dialog box and 10 buttons with number on them from 0 to 9. now i want that when i press these 0-9 buttons then that will be appear on edit box . I use a progress control on dialog box and a dial button so that after entering numbers press dial and progress button start moving I want as in phone system when we press buttons they appear on screen and when dial button is pressed phone dials. Please mail me
-
i want to know,that as i insert a edit box on dialog box and 10 buttons with number on them from 0 to 9. now i want that when i press these 0-9 buttons then that will be appear on edit box . I use a progress control on dialog box and a dial button so that after entering numbers press dial and progress button start moving I want as in phone system when we press buttons they appear on screen and when dial button is pressed phone dials. Please mail me
m_sPhoneNumber += "1"; setDlgItemText(IDC_EDIT_PHONE_NUMBER,m_sPhoneNumber); put that code on button click. sPhoneNumber is a String. this code might help u.
-
m_sPhoneNumber += "1"; setDlgItemText(IDC_EDIT_PHONE_NUMBER,m_sPhoneNumber); put that code on button click. sPhoneNumber is a String. this code might help u.
thank you but this code does not sotore number on edit box as it replace preivious number i wantr as we use in mobile phone thank s Please mail me
-
i want to know,that as i insert a edit box on dialog box and 10 buttons with number on them from 0 to 9. now i want that when i press these 0-9 buttons then that will be appear on edit box . I use a progress control on dialog box and a dial button so that after entering numbers press dial and progress button start moving I want as in phone system when we press buttons they appear on screen and when dial button is pressed phone dials. Please mail me
About how many times are you going to ask this question? It's been answered several times.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
i want to know,that as i insert a edit box on dialog box and 10 buttons with number on them from 0 to 9. now i want that when i press these 0-9 buttons then that will be appear on edit box . I use a progress control on dialog box and a dial button so that after entering numbers press dial and progress button start moving I want as in phone system when we press buttons they appear on screen and when dial button is pressed phone dials. Please mail me
Here's the code for one more time. You can call this function whenever the key is pressed and pass an integer to the function underneath based on what button is clicked on the dialog by the user. m_editCtrl is the control variable for the edit box
In the header file declare the function as
void SetNewText(int p); // In the public section
void CYourClass::SetNewText(int p)
{
CString s;
m_editCtrl.GetWindowText(s);
CString t;
t.Format ("%d",p);
s+=t;
m_editCtrl.SetWindowText (s);}
Now to use the function simply do SetNewText(1); //if the user has clicked 1 and so on Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_ -- modified at 9:27 Friday 7th July, 2006
-
i want to know,that as i insert a edit box on dialog box and 10 buttons with number on them from 0 to 9. now i want that when i press these 0-9 buttons then that will be appear on edit box . I use a progress control on dialog box and a dial button so that after entering numbers press dial and progress button start moving I want as in phone system when we press buttons they appear on screen and when dial button is pressed phone dials. Please mail me
yogendra kaushik wrote:
I want as in phone system when we press buttons they appear on screen and when dial button is pressed phone dials.
try this :- http://www.codersource.net/mfc\_array\_controls.aspx
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You