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);
...
}
반응형
'프로그래밍(Programming) > MFC&API' 카테고리의 다른 글
MFC 주요 클래스 호출 순서 (0) | 2012.11.01 |
---|---|
콤보박스 예제 (0) | 2012.11.01 |
MFC view 클래스 사용자 정의 클래스에서 상속 받기 (0) | 2012.11.01 |
더블버퍼링 (0) | 2012.11.01 |
CString 을 float 로 변환 (0) | 2012.11.01 |