How to get CListCtrl clicked item information !!
来源:互联网 发布:2018网络彩票能重启吗 编辑:程序博客网 时间:2024/05/21 17:33
you can use the follwing functions to find out the row selected or clicked.
POSITION posList=m_MyListControl.GetFirstSelectedItemPosition( );
int nGetNextSelectedItem=m_MyListControl.GetNextSelectedItem( posList) ;
In the above sample code the "m_MyListControl" is the control member variable of the listcontrol ( member variable define through class wizard).The return value of the function "GetNextSelectedItem( posList)" is the row number selected(starts from 0 row ).
CListCtrl* pListCtrl = (CListCtrl*) GetDlgItem(IDC_YOURLISTCONTROL);ASSERT(pListCtrl != NULL);POSITION pos = pList->GetFirstSelectedItemPosition();if (pos == NULL) TRACE0("No items were selected!/n");else{ while (pos) { int nItem = pList->GetNextSelectedItem(pos); TRACE1("Item %d was selected!/n", nItem); // you could do your own processing on nItem here }}
- How to get CListCtrl clicked item information !!
- how to get session information
- How to select CListCtrl item question
- How to Get Hardware Information using C#
- How to get information of .a/.so
- How to get user information say: passwd
- How to get the Information leakage
- How To Get High Quality Information About Query Performance
- How to get session information in Spring MVC 3
- How To Get Hardware Information (CPU ID, MainBoard Info, Hard Disk Serial, System Information , ...)
- How to get the value of one specified item
- How to use IIS Manager to get Worker Processes (w3wp.exe) details information ?
- How to check system information
- How to Get CPU Information on Android Android上获取cpu信息
- INV DEBUG: How to get Debug Information for Inventory Material Transactions
- Sample to get CPU information
- how to get?
- How to Get Insights?
- 菜鸟中的菜鸟
- hibernate的对象查询与sql语句的对应
- 我不放弃~
- rpm的使用方法
- Visual Studio 6中的块(列Column)选定
- How to get CListCtrl clicked item information !!
- JDBC批量处理
- 一个不错的linux指令操作指南的地址
- jQuery中文入门指南,翻译加实例,jQuery的起点教程
- 对牛弹琴
- ToString格式大全.
- 跟踪调试时,显示“没有可用于当前位置的源代码”
- 指针VS引用
- 领导是校友