how to set default values to the edit control box in vc++ MFC?

how to set default values to the edit control box in vc++ MFC?(without using mask edit control)
If the edit control box is on a Dialog then you can add code to the dialog OnInitDialog method.

1
2
3
4
CString strValue = "Some Value";
...
CEdit * pEdt = (CEdit *)GetDlgItem(IDC_EDIT_TST);
pEdt->SetWindowText(strValue);
Topic archived. No new replies allowed.