Click here to Skip to main content
12,357,847 members (72,975 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ API
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
Posted 26-Nov-12 21:20pm
kyleK89363

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You don't need a List Box, but a List View[^].
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100