|
-
March 28th, 1999, 11:21 PM
#1
Re: How to get CListCtrl clicked item information !!
Hi saleem,
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 ).
Hope the above information is useful to you
Bye
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|