Re: How to Programmatecally Display Icons in CListBox
Posted the wrong link
http://www.codeproject.com/KB/combobox/combobold.aspx
AliR.
"AliR (VC++ MVP)" <AliR@online.nospam> wrote in message
news:g7FSj.652$nW2.11@nlpi064.nbdc.sbc.com...
You will have to create an owner draw listbox, and do the painting
yourself.
Here is an example:
http://www.codeproject.com/KB/combobox/combobold.aspx
AliR.
"Mahesh" <mmp.cse@gmail.com> wrote in message
news:ebe4932e-c752-4ecb-b17d-c8fb1d8a9f25@y22g2000prd.googlegroups.com...
Hi,
I wanted to Programmatecally Display Icon in CListBox.
Here is the brief Code:
CListBox m_listbox;
m_listbox.Create(CBS_DROPDOWNLIST | WS_BORDER | WS_VSCROLL | WS_CHILD
|
WS_VISIBLE | LBS_STANDARD | LBS_HASSTRINGS ,
p, this,IDC_LIST);
m_listbox.SetFont(&m_Font);
I wanted to add icon to each string in the list box. It is equivalent
to auto suggest in VS when u press Ctrl+Space.
Thanks a lot in advance.