can i resize the list box ?????

Login to reply to this topic.
Wed, 2006-03-08 11:14
Anonymous
Forum posts: 2043
hi All

actually i have to show items in a list box which change its self according to the no. of items . Is it possible to change the size of a listbox , pls suggest any solution or suggestion or code fragment ,if possible


thnx in advance


Thu, 2006-03-09 15:02
Joined: 2005-03-14
Forum posts: 59
Re: can i resize the list box ?????
Hej

Try SetExtent or SetSize. it works for most of controls.

/Kaisub
Tue, 2006-03-21 06:12
Joined: 2005-12-07
Forum posts: 58
Re: can i resize the list box ?????
if you want another method you just try this method.

TRect rect=Border().InnerRect(Rect()) ;

rect.SetRect(1,0,175,70);//can give any points here....

iListBox->SetRect( rect );

  Try this code in the constructor of the list box.

Cheers,
Peter.
  • Login to reply to this topic.