Win32 API中的列表框 [英] listbox in Win32 API

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

问题描述


我想通过使用CreateWindow(''listbox'',~~〜)将名称和ID放在列表框中和SendMessage.

例如,
ID名称PET
92凯尔
57亚光狗
88简

但是我不知道如何分隔一个列表框来存储每个名称和ID,否则我是否要使用另一个列表框来显示它?
另外,如果该人有宠物,我应该添加有关该宠物类型的更多信息.
在这种情况下,很难做到的是在与matt相同的行中显示"dog".

最后,如果他有宠物,请更改名字的颜色.
我需要您的帮助,请

in Win32 API with c++
I want to put name and id in a listbox by using CreateWindow(''listbox'',~~ ~); and SendMessage.

For example,
ID NAME PET
92 kyle
57 matt dog
88 jane

But I don''t know how to separate a listbox in order to store each name and id, Otherwise do I use another listbox to show it?
Also, I should put extra information about a type of pet if that person has a pet.
In this case, what makes it hard is to show ''dog'' in same line as matt.

Lastly, make color of name changed if he has a pet.
I need your help, please

推荐答案

您不需要列表框,而需要
You don''t need a List Box, but a List View[^].


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

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