Re: listview usage

"igorv007" <igorv007-/[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
Retrieve indexes of all selected items

UINT uSelectedCount = GetSelectedCount();
int  nIndex = -1;

// Loop through all selected items
for (UINT i = 0; i < uSelectedCount; i++)
{
	// Search for the next selected list control item and get its index
	nIndex = GetNextItem(nIndex, LVNI_SELECTED);

	if (nIndex != LB_ERR)
	     ...
}

--- In [email protected], carr 帅 <shuaixh@...> wrote:
>
> 
> does anyone have  SDK demo codes about how to get multiselected lines of a listview control ??
>  
> it seems, there's no wrapper in WTL. it's easy in MFC..
> 
> 
>       ___________________________________________________________ 
>   好玩贺卡等你å`,邮箱贺卡全新上线! 
> http://card.mail.cn.yahoo.com/
> 
> [Non-text portions of this message have been removed]
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.