Re: Windows treeview bug!

new topic     » goto parent     » topic index » view thread      » older message » newer message

----- Original Message -----
From: Derek Parnell <ddparnell at bigpond.com>
Subject: Re: Windows treeview bug!


>
>
> 24/10/2001 11:20:49 AM, tone.skoda at siol.net wrote:
>
> >
> >If Treeview is created with TVS_NOSCROLL style and all its items are
deleted
> >with
> > sendMessage (TV, TVM_DELETEITEM, 0, TVI_ROOT)
> >before items are inserted,
> >then tree items are not visible until next time tree is resized.
> >
> >This is Windows bug, because I tried it with C++ program and it was the
> >same.
> >
> >It was also very hard to discover.
> >
> >What to do :-o ???
>
> Don't delete an item before any are inserted.

If I use
sendMessage (TV, TVM_DELETEITEM, 0, TVI_ROOT)
any time, regardless if there are any items or not,  the bug happens.

In my program, I delete all items every time when a separate scroll is
scrolled and then insert new items.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu