| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1903 人关注过本帖
标题:mfc中如何选中一整行
只看楼主 加入收藏
菲若
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2018-9-18
结帖率:0
收藏
已结贴  问题点数:10 回复次数:1 
mfc中如何选中一整行
这是我用的其中一段代码 可是一直报错
void CSy4Dlg::OnButtonChange()
{
POSITION pos;
pos=m_ListCtrl.SetExtendedStyle(m_ListCtrl.GetExtendedStyle()|LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES );






错误:C:\Users\Lenovo\Desktop\新建文件夹\sy 4\sy 4Dlg.cpp(196) : error C2440: '=' : cannot convert from 'unsigned long' to 'struct __POSITION *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
执行 cl.exe 时出错.

sy 4.exe - 1 error(s), 0 warning(s)
搜索更多相关主题的帖子: mfc 选中 from type exe 
2018-10-15 20:38
yuccn
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:何方
等 级:版主
威 望:167
帖 子:6814
专家分:42393
注 册:2010-12-16
收藏
得分:10 
cannot convert from 'unsigned long' to 'struct __POSITION *'

错误说得很明显了,你查查ListCtrl 的SetExtendedStyle 函数用法

我行我乐
公众号:逻辑客栈
我的博客:
https://blog.yuccn. net
2018-10-22 22:39
快速回复:mfc中如何选中一整行
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014091 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved