CComboBox::GetEditSel

콤보 상자의 편집 컨트롤에서 현재 선택 영역의 시작 및 끝 문자 위치를 가져옵니다.

DWORD GetEditSel( ) const;

반환 값

상위 word에서 선택 영역 끝 nonselected 첫 번째 문자의 위치 및 낮은 순서 단어의 시작 위치를 포함 하는 32 비트 값입니다. 이 함수는 편집 컨트롤 없이 콤보 상자에 사용 되는 경우 CB_ERR 이 반환 됩니다.

예제

DWORD dwSel;

// Set the selection to be all characters after the current selection. 
if ((dwSel = m_MyComboBox.GetEditSel()) != CB_ERR)
{
   m_MyComboBox.SetEditSel(HIWORD(dwSel), -1);
}

요구 사항

헤더: afxwin.h

참고 항목

참조

CComboBox 클래스

계층 구조 차트

CComboBox::SetEditSel

CB_GETEDITSEL