求IWIDGET_CursorShow()的用法

donghan12yue 2009-07-23 05:38:27
首先有个text widget,已激活,想让光标一开始就定位在某个位置。第一个参数放的是text widget,第二个放的是其所在的xy容器,但光标位置并没有改变。请教高手解答。
...全文
1696 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
IWIDGET_CursorShow()是将一个 cursor widget显示出来,所以你的第一个参数是不对的
gaofeng2006 2009-07-24
  • 打赏
  • 举报
回复
int IWidget_CursorShow(IWidget *pif, IXYContainer *piContainer, int x, int y);

pif: Pointer to the IWidget interface object.
piContainer: Pointer to the container in which the cursor will be displayed.
x: The horizontal position (relative to the origin of the enclosing
container) where the cursor should be displayed.
y: The vertical position (relative to the origin of the enclosing
container) where the cursor should be displayed

参考一下吧!

2,853

社区成员

发帖
与我相关
我的任务
社区描述
本论坛以AI、WoS 、XR、IoT、Auto、生成式AI等核心板块组成,为开发者提供便捷及高效的学习和交流平台。 高通开发者专区主页:https://qualcomm.csdn.net/
人工智能物联网机器学习 技术论坛(原bbs) 北京·东城区
社区管理员
  • csdnsqst0050
  • chipseeker
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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