【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.6.19.9 ListBox::GetSelCount
Contents
Description
Syntax
int GetSelCount( )
Parameters
Return
The count of selected items in a list box. If the list box is a single-selection list box, the return value is LB_ERR.
Examples
EX1
#include <..\OriginLab\DialogEx.h> // Dialog class #define IDC_LIST1 1001 void ListBox_GetSelCount(Dialog& MyDlg) { ListBox m_List = MyDlg.GetItem(IDC_LIST1); int nNumsSel = m_List.GetSelCount(); }
Remark
See Also
Header to Include
Control.h