OnInitDialog() MFC vc++
-
I have created a ComboBox with drop down using the wizard and added three data(First,Second and Third) through properties. So what I didn't understand is that in the MyDlg::OnInitDialog() when I commented the base OnInitDialog() the data in the drop down doesn't show up, why?. I know that the base OnInitDialog() call UpdateData(), but even if I keep UpdateData(FALSE) below it, it didn't work. Could you please help me clear my doubt. Thanks in advance. :)
BOOL MyDlg::OnInitDialog() {
CDialogEx::OnInitDialog(); // <----- when I comment this line the data in the drop down is not showingUpdateData(FALSE); return TRUE;
}
-
I have created a ComboBox with drop down using the wizard and added three data(First,Second and Third) through properties. So what I didn't understand is that in the MyDlg::OnInitDialog() when I commented the base OnInitDialog() the data in the drop down doesn't show up, why?. I know that the base OnInitDialog() call UpdateData(), but even if I keep UpdateData(FALSE) below it, it didn't work. Could you please help me clear my doubt. Thanks in advance. :)
BOOL MyDlg::OnInitDialog() {
CDialogEx::OnInitDialog(); // <----- when I comment this line the data in the drop down is not showingUpdateData(FALSE); return TRUE;
}