社区
界面
帖子详情
如何在CListCtrl的ICON上显示ToolTips?
byry
2003-12-19 02:18:16
CListCtrl为ICON风格,怎样实现把鼠标移动到CListCtrl中的ICON上后会出现ToolTips?
我自己写了一个过程,能出现这种ToolTips,但是,当我的ICON项目很多,需要将滚动条向下移动时,ToolTips所对应的信息仍然是原来在这个位置上的ICON的信息,而不是当前ICON的信息,请问该怎么办?
...全文
62
9
打赏
收藏
如何在CListCtrl的ICON上显示ToolTips?
CListCtrl为ICON风格,怎样实现把鼠标移动到CListCtrl中的ICON上后会出现ToolTips? 我自己写了一个过程,能出现这种ToolTips,但是,当我的ICON项目很多,需要将滚动条向下移动时,ToolTips所对应的信息仍然是原来在这个位置上的ICON的信息,而不是当前ICON的信息,请问该怎么办?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
9 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
flyelf
2004-02-15
打赏
举报
回复
看来是你的listctrl获取item的时候有问题
zxs3543
2004-02-15
打赏
举报
回复
m_ptrTTip = new ToolTip;
m_prrTTip->SetToolTip(m_list,"message!!!"); ////vc.net
m_ptrTTip->Add**(m_lsit,"message"); ///vc++6.0
蒋晟
2003-12-25
打赏
举报
回复
www.codeproject.com/listctrl/listctrldemo.asp
byry
2003-12-25
打赏
举报
回复
to: jiangsheng(蒋晟.Net)
我对这个操作比较陌生,能不能给点例子看看?
蒋晟
2003-12-25
打赏
举报
回复
handle LVN_INFOTIPO
DONOT use AddTool
byry
2003-12-23
打赏
举报
回复
up!
byry
2003-12-22
打赏
举报
回复
这么常用的东西没人知道?
byry
2003-12-22
打赏
举报
回复
有没有人知道?
aaasng
2003-12-19
打赏
举报
回复
这儿有个例子,或许有用
http://www.codeproject.com/listctrl/ctooltiplistctrl.asp
CLi
stViewEx
非常好用的
CLi
stCtrl
加强版。 从
CLi
stCtrl
继承,完全兼容
CLi
stCtrl
. 它有以下特性: • The background of the sorted column can be displayed in a different color (like the detailed view of Windows XP Explorer). • The header of the sorted column can display an arrow that indicates the sort direction (like the detailed view of Windows XP Explorer). • You can give the user the opportunity to hide or redisplay selected columns by just
cli
cking on the header control with the right mouse button (see picture below). • You can hide or redisplay a selected column entirely. • In contrast to the original list view control, the first column can have the LVCFMT_CENTER or LVCFMT_RIGHT style, too. For this feature, the list view control must have the LVS_OWNERDRAWFIXED style. • The label attributes state
icon
, small
icon
, and selection can always be shown in the leftmost column, independent of the order of the columns. For this feature, the listview control must have the LVS_OWNERDRAWFIXED style. • You can supply
tooltip
s not only for the whole item, but also for the small
icon
, the state
icon
, and each subitem label. • The extended styles LVS_EX_CHECKBOXES, LVS_EX_ONE
CLI
CKACTIVATE, LVS_EX_SUBITEMIMAGES, LVS_EX_TWO
CLI
CKACTIVATE, and LVS_EX_UNDERLINEHOT will be supported even if the list view control has the LVS_OWNERDRAWFIXED style. • If the LVS_EX_CHECKBOXES style has been applied and a selected item will be checked/unchecked, all other selected items will be checked/unchecked, too. • If the LVS_EX_LABELTIP style has been applied, not only the partially hidden text of the item label will be unfolded but also the partially hidden text of each subitem label. Note: The LVS_EX_LABELTIP style will be supported under all operating systems. •
Tooltip
s and expanded labels can be displayed simultaneously. • The current state of the list view control (column widths, column order, hidden columns, and sort column and direction) can be saved and restored.
CLi
stCtrl
自绘或者设置相关的技术问题
Q a question about
CLi
stCtrl
- waiting on line ... T 怎样将
CLi
stCtrl
中的一行( one item)的背景或 Text Color 设为其它 color ? A Using Custom Draw The following code fragment is a portion of a WM_N
CLi
stCtrl
Class 成员函数列表
CLi
stCtrl
Class The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com. The latest version of this topic can be found at
CLi
stCtrl
Class. Encapsulates...
VC界面编程skill tips-
CLi
stCtrl
CLi
stCtrl
使用技巧作者:lixiaosan时间:04/06/2006以下未经说明,li
stctrl
默认view 风格为report 相关类及处理函数MFC:
CLi
stCtrl
类 SDK:以 “ListView_”开头的一些宏。如 ListView_InsertColumn1.
CLi
stCtrl
风格 LVS_
ICON
: 为每个item
显示
界面(3):
CLi
stCtrl
Q a question about
CLi
stCtrl
- waiting on line ... T怎样将
CLi
stCtrl
中的一行( one item)的背景或 Text Color 设为其它 color ?AUsing Custom DrawThe following code fragment is a portion of a WM_NOTIFY handler that i
界面
15,979
社区成员
115,897
社区内容
发帖
与我相关
我的任务
界面
VC/MFC 界面
复制链接
扫一扫
分享
社区描述
VC/MFC 界面
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章