当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 我用enumprinters得不到! 致以最衷心的感谢!! ......
    摘要: hehe ......


关于ListView的问题

如果指向被选中的ListView的下一行  
  比如  
   
  name         sex  
    haha         bb  
    hahaha     gg  
   
  现在我选中了haha这一行,但是我要的是hahaha这一行,怎么样实现呢?

NO.1   作者: songlian77

自己寫一個函數  
  procedure   SelectNextListItem(AIdx:   Integer);  
  var  
      NewIdx:   Integer;  
  begin  
      if   ListView1.Items.Count   =   0   then  
          Exit;  
      NewIdx   :=   AIdx;  
      if   AIdx   <   0   then  
          NewIdx   :=   0  
      else   if   AIdx   >   ListView1.Items.Count-1   then  
          NewIdx   :=   ListView1.Items.Count   -   1;  
      ListView1.Selected   :=   ListView1.Items[NewIdx];  
  end;  
 

NO.2   作者: bear_tj

得出当前的标号:index  
  然后index   +   1  
  即ListView.Items[index   +   1]为要的数据


    摘要: 在测试函数中调用dll中写的一个函数时出现了unhandled exception in domtest.ext:0xc00000005:access violation.退出debuger后vc给出的提示为: loaded c:\winnt\system32\ntdll.dll, no matching symbolic information found. loaded e:\neux......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE