I have a problem with changing text for IDC_STATIC. I have 1 Combobox, 1 button and 1 idc_static text in my dialog. For initializing, everything worked quite well. Now after clicking the button, I want to update the new text for the idc_static and also for the combobox. It worked for the combobox but for the static text, it didn't work, and I don't know why. Can somebody help me?
Thank you very much
DDX_Text(pDX, IDC_STATIC_RPA_STATUS, m_strRPAStatus);
DDX_Control(pDX, IDC_COMBO_STATE_REASON, m_StateReasonCtrl);
m_pParentWnd->GetRpaProps()->m_strRPAStatus = StringFromVar(pRpaTab->GetFieldValue("Status")); ---> it didn't work
// CString Status = StringFromVar(pRpaTab->GetFieldValue("Status"));
// SetDlgItemText(IDC_STATIC_RPA_STATUS, Status); ---> this also didn't work
m_pParentWnd->GetRpaProps()->m_StateReasonCtrl.SetCurSel(nID); ---> it worked perfectly