MFC
-
Hi, How can i save the values which are entered in the dialogs say an edit button. also how can isave values entered in combobox at runtime so that the next time i run the application the combo box gets populated with the values which were entered previously. Thanks U get wht u Give
-
Hi, How can i save the values which are entered in the dialogs say an edit button. also how can isave values entered in combobox at runtime so that the next time i run the application the combo box gets populated with the values which were entered previously. Thanks U get wht u Give
charu123 wrote: How can i save the values which are entered in the dialogs say an edit button. first, Edit button don't exist. I consider now you were talking about an Edit Box control.
CEdit* pEdit = GetDlgItem(ICD_MYEDIT); // the ident of your control...
CString strEditContent;
pEdit->GetWindowText(strEditContent); // Filled with the Edit content...charu123 wrote: also how can isave values entered in combobox at runtime so that the next time i run the application the combo box gets populated with the values which were entered previously. you must save it outside the app (file, registry...), and search for it into
OnInitDialog()
to fill your control with the value (SetWindowText()
)
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
charu123 wrote: How can i save the values which are entered in the dialogs say an edit button. first, Edit button don't exist. I consider now you were talking about an Edit Box control.
CEdit* pEdit = GetDlgItem(ICD_MYEDIT); // the ident of your control...
CString strEditContent;
pEdit->GetWindowText(strEditContent); // Filled with the Edit content...charu123 wrote: also how can isave values entered in combobox at runtime so that the next time i run the application the combo box gets populated with the values which were entered previously. you must save it outside the app (file, registry...), and search for it into
OnInitDialog()
to fill your control with the value (SetWindowText()
)
TOXCCT >>> GEII power
[toxcct][VisualCalc]