((CComboBox*)GetDlgItem(IDC_COMBO_POWER))->AddString("ON"); //추가하기
((CComboBox*)GetDlgItem(IDC_COMBO_POWER))->SelectString( 0,ALL_DATA ); // 값선택되게 하기
((CComboBox*)GetDlgItem(IDC_COMBO_POWER))->ResetContent(); // 모두 지우기
CString sGroup;
int nIndex = ((CComboBox*)GetDlgItem(IDC_COMBO_RIGHT))->GetCurSel(); // 몇번째 선택하고 있는지
if (nIndex != CB_ERR)
((CComboBox*)GetDlgItem(IDC_COMBO_RIGHT))->GetLBText(nIndex , sGroup); // 선택한값 얻기
'프로그래밍 > 공부관련' 카테고리의 다른 글
GetMessage와 PeekMessage (1) | 2011.03.23 |
---|---|
mfc 대화상자종료 (0) | 2010.10.08 |
(수학) 분산 구하는법 (1) | 2010.09.15 |
hwnd, cwnd? (0) | 2010.08.24 |
Roll Pitch Yaw (0) | 2010.08.18 |