Joe there is one that takes 7 parameters.
AliR.
"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
On Wed, 21 May 2008 08:21:01 -0700, PRMARJORAM
<PRMARJORAM@discussions.microsoft.com>
wrote:
Ok i am successfully diplaying images in my tree controls but not my list
controls.
I am using the following but not image is being displayed???
int nIndex = mListCtrl.InsertItem(LVIF_IMAGE | LVIF_TEXT,0,"hello",
0,0,7,0L);
****
What is this "0L" notation? Since integers are already 32-bit, there is
no reason to use
the L suffix to make it a 32-bit value!
That would be _T("hello"). Think of 8-bit characters as dead technology
except in rare
and exotic circumstances, which this is not.
I cannot find any version of CListCtrl::InsertItem that takes 7
parameters. There's a
version that takes
LVITEM*
and one that takes
int, LPCTSTR
and one that takes
int, LPCTSTR, int
but I cannot find a documented interface that takes 7 parameters.
joe
****
Where 7 is a valid index into my image list!
Please help?
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm