Win32 API中的树视图控件 [英] Tree View Control in Win32 API

查看:153
本文介绍了Win32 API中的树视图控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发看起来像资源管理器的应用程序.

如果我第一次单击"+"(扩展标记),TreeView_GetSelection()宏将不起作用.在随后的单击中,它工作正常.它返回零.如果单击树形视图控件中的文本显示,它将正常工作.

I am developing application that looks like explorer.

TreeView_GetSelection() macro is not working if I click "+" (Expansion mark) for the first time. In subsequent click it is working fine. It is returning zero. If I click on the text display in tree view control it is working fine.

推荐答案

返回值null不一定表示错误;根据 msdn [
A return value of null doesn''t necesarily mean an error; according to msdn[^], this message return null for the root item of the tree.


TreeView_GetSelection-NULL表示失败
TreeView_GetSelection - NULL indicates failure


这篇关于Win32 API中的树视图控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆