m_ParentCatCombo.Attach(GetDlgItem(IDC_PARENT_CAT)->m_hWnd); m_ParentCatCombo.AddString(_T("test")); m_ParentCatCombo.Detach();