shetlandbob
Programmer
Hi,
I have a listbox in a dialog control which I dynamically add items to. Initially the vertical scrollbar is not enabled, but once the list exceeds the size of the box then the scrollbar appears.
How can I detect when this occurs in the code and resize the width of the listbox to add in the size of the scroll bar?? (i was planning on using .movewindow to resize the window).
Note: my dialog can be resized so simply counting the number of items and working it out that way is a bit tedious, and well a bit primitive!!
Any ideas much appreaciated.
I have a listbox in a dialog control which I dynamically add items to. Initially the vertical scrollbar is not enabled, but once the list exceeds the size of the box then the scrollbar appears.
How can I detect when this occurs in the code and resize the width of the listbox to add in the size of the scroll bar?? (i was planning on using .movewindow to resize the window).
Note: my dialog can be resized so simply counting the number of items and working it out that way is a bit tedious, and well a bit primitive!!
Any ideas much appreaciated.