For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > February 2005 > adding SubItems to ListView Control in eVC++









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author adding SubItems to ListView Control in eVC++
George

2005-02-10, 4:01 pm

Hi All

I have a problem adding subitems to ListView Control. I use eVC++ 4.0

Every time i try to add subitem - ListView_InsertItem macro returns -1
(sending LVM_INSERTITEM message the same) , which indicates error. No
subitems are visible in control - only main items are visible.

I have proper Columns for sure and LVS_REPORT style set on ListView Control

any ideas ?

Regards
George


riki

2005-02-10, 8:59 pm

George wrote:
> Hi All
>
> I have a problem adding subitems to ListView Control. I use eVC++ 4.0
>
> Every time i try to add subitem - ListView_InsertItem macro returns -1
> (sending LVM_INSERTITEM message the same) , which indicates error. No
> subitems are visible in control - only main items are visible.
>
> I have proper Columns for sure and LVS_REPORT style set on ListView Control

have you had a look through the same code here:
http://smartphonedn.com/articles/splistview.html

riki

main(){printf("%d != %d, why?", sizeof('"')["'"],(sizeof('"'))["]\"\0["]);}
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
By Day: http://www.EmbeddedFusion.com
George

2005-02-11, 9:00 am

thnx - it helped me
SubItems are set rather than added and it's done by _SetItem rathet than
_InsertItem

Regards
George

"riki" <see_my_home@page> wrote in message
news:O2GMPE7DFHA.3924@TK2MSFTNGP09.phx.gbl...
> George wrote:
Control[color=darkred]
> have you had a look through the same code here:
> http://smartphonedn.com/articles/splistview.html
>
> riki
>
> main(){printf("%d != %d, why?",

sizeof('"')["'"],(sizeof('"'))["]\"\0["]);}
> By Night:
> ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
> AbstractStart for Smartphone :
> http://homepages.inspire.net.nz/~gambit/AbstractStart/
> By Day: http://www.EmbeddedFusion.com



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com