硬汉嵌入式论坛

 找回密码
 立即注册
查看: 2209|回复: 1
收起左侧

[emWin] LISTVIEW_SetSel 函数使用

[复制链接]

32

主题

295

回帖

391

积分

高级会员

积分
391
发表于 2017-8-23 15:08:08 | 显示全部楼层 |阅读模式
LISTVIEW_SetSel

532手册上看到这个函数介绍,

Description:
Sets the selected column of the given LISTVIEW widget. Makes sense in combination with
LISTVIEW_EnableCellSelect().
Prototype
void LISTVIEW_SetSelCol(LISTVIEW_Handle hObj, int NewCol);


我简单的封装了一下
_hLastFrame 是个 C文件内部的  static 变量,

void Set_Sel_Row(u8 _index)
{
    LISTVIEW_SetSel(_hLastFrame, _index);
}

比如我要选择 LISTVIEW第0行 Set_Sel_Row(0)

请教一下,我这样理解对吗?因为实际使用的时候发现这个函数调用会出错
回复

使用道具 举报

32

主题

295

回帖

391

积分

高级会员

积分
391
 楼主| 发表于 2017-8-23 18:19:15 | 显示全部楼层
找到问题了,参数传递的不正确,
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-30 07:44 , Processed in 0.142454 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表