프로그래밍(Programming)/MFC&API

콤보박스 변수를 지정하지 않고 사용 하는 방법

3DMP 2012. 11. 1. 20:04

view클래스::OnInitialUpdate()
{

 
 CComboBox * pWnd=(CComboBox*)(GetDlgItem(IDC_COMBO1));
  //->InsertString((CComboBox*)(::GetDlgItem(m_hWnd,IDC_COMBO1))->GetCount(), str);

 
 CString str;
 str.Format(L"첫번째아이템");
 pWnd->InsertString(pWnd->GetCount(), str);

 

 

...

}


반응형