This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / Hey guys, I need help. Here is the problem: I put a ListView and a ImageList on a form, need to add add dropped file icon to listview, and encounter some problems...(Thanks in advance)...
-canadiantire(轮胎-M.I.N.K.);
2005-3-1
{782}
(#2152455@0)
-
up
-canadiantire(轮胎-M.I.N.K.);
2005-3-1
(#2152490@0)
-
/.
-canadiantire(轮胎-M.I.N.K.);
2005-3-1
(#2152513@0)
-
救不了你。几年前我做过半年Delphi程序员,和这些冬冬打过交道,现在已经忘光了。
-thisunreal(饭得志);
2005-3-1
(#2152528@0)
-
谢谢。
-canadiantire(轮胎-M.I.N.K.);
2005-3-1
(#2152529@0)
-
try this control. You can do what ever you want. Very powerful. I did some very complex treeview/listview application base on that. It is very fast.
-nealzhao(neal);
2005-3-1
(#2152534@0)
-
Thank you too, I might consider it if there is no workaround of the #$%^ ListView
-canadiantire(轮胎-M.I.N.K.);
2005-3-1
(#2152542@0)
-
自己解决了。。1. Plain API call 得到的Image Count 与调用COM 接口得到的并不一样。
2. MSDN 上说ImageList_ReplaceIcon() 中的第二个参数index 设置成-1表示把Image add to Imagelist, 这个没有错。但是新加入的Image通过COM接口访问不到。
3. 解决办法:预先将Icon加入到ImageList。在OLEDragDrop 方法中用新hIcon的替换现有的icon,
-canadiantire(轮胎-M.I.N.K.);
2005-3-2
{301}
(#2154047@0)