|
I created a dialog with an editcontrol and two buttons (ok, cancel). When I click the menu option, the dialog pops up, enter the content, click the ok button to get the content in editcontrol, and the dialog exits. But it's not always available. Why?
IDC_EDIT is the ID number of editcontrol, and dlgPara is the dialog that pops up when I click the menu.
if (dlgPara.DoModal ()! = IDOK)
{
return;
}
char str [3];
SendDlgItemMessage (IDC_EDIT, WM_GETTEXT, 3, (LPARAM) str); |
|