class CPractice4_1Dlg : public CDialog
{
...
// Dialog Data
//{{AFX_DATA(CPractice4_1Dlg)
enum { IDD = IDD_PRACTICE4_1_DIALOG };
CComboBox m_cbListItem;
...
//}}AFX_DATA
...
};
void CPractice4_1Dlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPractice4_1Dlg)
DDX_Control(pDX, IDC_COMBO_AUTO, m_cbListItem);
...
//}}AFX_DATA_MAP
}
...
void CPractice4_1Dlg::InitComboBox()
{
m_cbListItem.ResetContent();
for (int i = 0; i < nCnt; i++ )
{
CString strItem;
strItem.Format("리스트 항목 : %d", i+1);
m_cbListItem.AddString(strItem);
}
}