用过这个例子的兄弟们请帮个忙~~~关于LISTCTRL

byry 2003-11-16 07:20:01
例子:
http://www.vckbase.com/code/downcode.asp?id=336
1、谁有这个例子中关于CThumbListCtrl类的ThumbListCtrl.cpp文件???
2、能不能让缩略图更大一些???
3、当图片文件的文件名太长的时候,不能自动换行,该怎么解决???
4、怎么给图片加上边框???

每问25分!!!
...全文
1173 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
beyondtkl 2003-11-21
  • 打赏
  • 举报
回复
学习 我也去下载一个
photomm 2003-11-21
  • 打赏
  • 举报
回复
我也有一个,你要不?
蒋晟 2003-11-19
  • 打赏
  • 举报
回复
update sdk header and library
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
byry 2003-11-19
  • 打赏
  • 举报
回复
to: jiangsheng(蒋晟.Net)

G:\1104\picview\PicView\PicView.cpp(167) : error C2065: 'ILFree' : undeclared identifier
G:\1104\picview\PicView\PicView.cpp(179) : error C2065: 'SHGetFolderLocation' : undeclared identifier
G:\1104\picview\PicView\PicView.cpp(188) : error C2065: 'BIF_USENEWUI' : undeclared identifier
G:\1104\picview\PicView\PicView.cpp(205) : error C2065: 'StrRetToBuf' : undeclared identifier
G:\1104\picview\PicView\PicView.cpp(215) : error C2065: 'SHBindToParent' : undeclared identifier
G:\1104\picview\PicView\PicView.cpp(264) : error C2065: 'ILClone' : undeclared identifier
G:\1104\picview\PicView\PicView.cpp(264) : error C2440: '=' : cannot convert from 'int' to 'struct _ITEMIDLIST *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
G:\1104\picview\PicView\PicView.cpp(294) : error C2065: 'SFGAOF' : undeclared identifier
G:\1104\picview\PicView\PicView.cpp(294) : error C2146: syntax error : missing ';' before identifier 'rgfInOut'
G:\1104\picview\PicView\PicView.cpp(294) : error C2065: 'rgfInOut' : undeclared identifier
PicViewDoc.cpp
G:\1104\picview\PicView\PicViewDoc.cpp(45) : error C2065: 'CSIDL_MYPICTURES' : undeclared identifier
G:\1104\picview\PicView\PicViewDoc.cpp(47) : error C2065: 'ILFree' : undeclared identifier
G:\1104\picview\PicView\PicViewDoc.cpp(55) : error C2065: 'SHILCreateFromPath' : undeclared identifier
PicViewView.cpp
G:\1104\picview\PicView\PicViewView.cpp(139) : error C2065: 'ILClone' : undeclared identifier
G:\1104\picview\PicView\PicViewView.cpp(139) : error C2440: '=' : cannot convert from 'int' to 'struct _ITEMIDLIST *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
G:\1104\picview\PicView\PicViewView.cpp(251) : error C2065: 'ILCombine' : undeclared identifier
G:\1104\picview\PicView\PicViewView.cpp(251) : error C2440: 'initializing' : cannot convert from 'int' to 'struct _ITEMIDLIST *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
G:\1104\picview\PicView\PicViewView.cpp(309) : error C2440: 'initializing' : cannot convert from 'int' to 'struct _ITEMIDLIST *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Generating Code...

请问是不是需要什么动态连接库啊?
photomm 2003-11-19
  • 打赏
  • 举报
回复
这篇文章还没有审批通过,请稍后……
(说明:推荐给《程序员》杂志的文章只有没被采用,或者已经在杂志上发表了,才会审批通过。)
蒋晟 2003-11-19
  • 打赏
  • 举报
回复
http://www.csdn.net/Develop/read_article.asp?id=22243
http://www.csdn.net/develop/author/netauthor/jiangsheng/files/picview.zip
tyzyx 2003-11-18
  • 打赏
  • 举报
回复
你用的是cjlib低版本的,最新的好像是6.09,不过,如果在出的话,可能会收钱了
tyzyx 2003-11-18
  • 打赏
  • 举报
回复
你用的是cjlib低版本的,最新的好像是6.09,不过,如果在出的话,可能会收钱了
tyzyx 2003-11-18
  • 打赏
  • 举报
回复
http://www.vccode.com/file_download.php?id=1
byry 2003-11-18
  • 打赏
  • 举报
回复
UP
byry 2003-11-18
  • 打赏
  • 举报
回复
jiangsheng(蒋晟.Net)兄弟,给俺先测试一把???

另问:tyzyx(tyzyx) 为什么没有CThumbListCtrl类的.cpp文件???
这是个关键,我分析了一下他的缩略图实现过程,大体是这样的:
对于一个目录中所存在的图象文件,他将目录中所有的图象(ICON图象除外)转化为BMP格式,并压缩,共同存放在brwseimg.tf文件中,由FileID与目录中的源图象想对应,然后对brwseimg.tf文件进行读取,放入ImageList中,由于brwseimg.tf文件很小,所以便于对于图象缩略显示。对于ICON图象,则直接添加到ImageList中,然后使用pListCtrl->SetImageList()进行图片显示。


CThumbListCtrl中的技术核心是如何将图象进行格式转换和压缩存储,以及brwseimg.tf文件中的图象与目录中的源图象如何对应的问题。

蒋晟 2003-11-18
  • 打赏
  • 举报
回复
刚好用ShellAPI和OLEAPI写了一个文件夹缩略图的程序……准备发在专栏的……
byry 2003-11-18
  • 打赏
  • 举报
回复
我用的是CJ60Lib.lib,请问哪里有6.09,老板说只要有就拿钱砸!!!
byry 2003-11-17
  • 打赏
  • 举报
回复
UP
sujiayi 2003-11-17
  • 打赏
  • 举报
回复
友情UP一下
byry 2003-11-16
  • 打赏
  • 举报
回复
UP

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧