Hi!
I am trying to enter the my user defined text to CEditBox.
I am trying the following code:
<code>
CEdit *ed=(CEdit *) GetDlgItem(IDD_EB1);
ed->SetDlgItemText(IDD_EB1,"bhagwat"); //IDD_EB1 edit box id
</code>
thanks
bhagwat
Hi!
I am trying to enter the my user defined text to CEditBox.
I am trying the following code:
<code>
CEdit *ed=(CEdit *) GetDlgItem(IDD_EB1);
ed->SetDlgItemText(IDD_EB1,"bhagwat"); //IDD_EB1 edit box id
</code>
thanks
bhagwat
I know nothing about MFC but it seems that you are specifying the identifier of the edit box in two places...
"The Internet treats censorship as damage and routes around it." - John Gilmore