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
This is a discussion on How to Add custom text to CeditBox within the Windows Programming forums, part of the Platform Specific Boards category; Hi! I am trying to enter the my user defined text to CEditBox. I am trying the following code: <code> ...
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