다음을 통해 공유


DDX_LBIndex

The DDX_LBIndex function manages the transfer of int data between a list box control in a dialog box, form view, or control view object and an int data member of the dialog box, form view, or control view object.

void AFXAPI DDX_LBIndex( 
   CDataExchange* pDX, 
   int nIDC, 
   int& index  
);

매개 변수

  • pDX
    A pointer to a CDataExchange object. The framework supplies this object to establish the context of the data exchange, including its direction.

  • nIDC
    The resource ID of the list box control associated with the control property.

  • 인덱스입니다.
    A reference to a member variable of the dialog box, form view, or control view object with which data is exchanged.

설명

When DDX_LBIndex is called, index is set to the index of the current list box selection. If no item is selected, index is set to -1.

DDX에 대한 자세한 내용은 대화 상자 데이터 교환 및 유효성 검사를 참조하십시오.

요구 사항

Header: afxdd_.h

참고 항목

참조

DDP_LBIndex

개념

MFC 매크로 및 전역

기타 리소스

표준 대화 상자 데이터 교환 루틴