这个问题把我搞蒙了,谁来帮帮我.

kingstar568 2007-12-03 09:09:08
技术问题,不好意思.我放在技术区放到强制结贴都没人回答我.我的问题是.当listview在窗口显示排列的时候,如果窗口不够放,就出现scroll bar.但是这个时候listview_editlabel失去效果了。查到error 是非法的窗口句柄, 有人知道怎么解决这个问题么?多谢了
...全文
375 38 打赏 收藏 转发到动态 举报
写回复
用AI写文章
38 条回复
切换为时间正序
请发表友善的回复…
发表回复
kingstar568 2007-12-07
  • 打赏
  • 举报
回复
解决了,原来真是listview得scroll做了不该做的动作,所以他自己重写了下scroll bar就好了
We use standard Windows flat scrollbars in our activeX controls.
For some reason, if the scrollbar(s) are showing when we try to do in place editing of a thumbnail title in the Thumbnail control, the
editor closes upon instantiation before any user action can be made. The fix is to hide the scrollbars while the editing is taking place.
Doing so causes no harm since the thumbnail control can't be manipulated until the in place editor is dismissed, at which point the scrollbars
are re-displayed (if they were visible previously). Though not necessary, I added the same behavior to the ListView control for the sake of
consistency. I also cleaned up some code in the thumbnail control where BOOLs were being initialized with boolean values and those variables
were also being used as LRESULT return values.
gliet1981 2007-12-06
  • 打赏
  • 举报
回复
菜鸟路过接分。
ckt 2007-12-06
  • 打赏
  • 举报
回复
多给点 tks
ckt 2007-12-06
  • 打赏
  • 举报
回复
jf而已
AFIC 2007-12-06
  • 打赏
  • 举报
回复
jf
tcxjia 2007-12-06
  • 打赏
  • 举报
回复
凑热闹
wh_peng 2007-12-06
  • 打赏
  • 举报
回复
up
MPTD_Fire 2007-12-06
  • 打赏
  • 举报
回复
呵呵,接分
wh_peng 2007-12-06
  • 打赏
  • 举报
回复
ahshow
编花篮
等 级:
发表于:2007-12-06 17:17:4585楼 得分:0
打发点咯

fellowcheng 2007-12-06
  • 打赏
  • 举报
回复
好久不写WinForm了
tfp 2007-12-06
  • 打赏
  • 举报
回复
There are some API calls for CListCtrl. To begin editing a label, you can call ListView_EditLabel().
kingstar568 2007-12-06
  • 打赏
  • 举报
回复
有可能是我说得太笼统了。但是问题看起来确实很简单。 也就是listview 出现scroll bar的时候,listview_editlabel失效了。还是很感谢大家来顶我的帖子,明天得到解决的时候再来补充。
Paliruya 2007-12-06
  • 打赏
  • 举报
回复
问题看起来应该很容易
只是LZ说的太笼统
又没有源代码
别人怎么帮你解决?
lispoy 2007-12-06
  • 打赏
  • 举报
回复
不懂,友情帮顶
kingstar568 2007-12-06
  • 打赏
  • 举报
回复
昨天写了封邮件给美国那边,今天中午跟我说明天看他check in的代码,这么快就解决了? 看来别人拿的高工资确实是应该的阿。
cometing 2007-12-05
  • 打赏
  • 举报
回复
不懂。。
linhl 2007-12-05
  • 打赏
  • 举报
回复
up
  • 打赏
  • 举报
回复
恕我孤陋寡闻
ListView_EditLabel是什么鸟东东
  • 打赏
  • 举报
回复
菜鸟路过接分。
rainingheart 2007-12-05
  • 打赏
  • 举报
回复
不懂,友情帮顶
加载更多回复(18)

590

社区成员

发帖
与我相关
我的任务
社区描述
提出问题
其他 技术论坛(原bbs)
社区管理员
  • community_281
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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