Manko
September 29th, 2002, 22:59
Quote:
Originally posted by Kayaker
Hi
I have a feeling this is a bit of a bug with listboxes, or maybe it's by design, the vertical scroll seems automatic but the horizontal scroll needs to be controlled by the LB_SETHORIZONTALEXTENT message.
I've seen the same thing in the APISpy32 input and output dialog boxes for example - even if the text is wider than the listbox, the HScrollbar doesn't appear. One solution might be to patch in a SendMessage call to the dialog box with LB_SETHORIZONTALEXTENT, and wParam set to a small width (or maybe the width of the listbox), then the scrollbar should appear. The easiest solution to the main problem however, if it was feasible, might be to increase the width of the dialog box, and then increase the width of the listbox so the majority of the text wasn't cut off. This is what I did (via a resource editor) with APISpy32 because I was so annoyed with the tiny size of the output dialog.
Kayaker |
Yup, ApiSpy32...
Actually, I did it the same way but often the params extend beyond the maximum new width.
It felt like a quick and dirty fix rather than a proper reverseing.
I suspected the author had done something tricky, a newbie such as myself wouldn't understand.
'Tis why I'm at it again...
Thanks alot for the help! It seems it would work.
It should be pretty straightforward, including a large LB_SETHORIZONTALEXTENT somewhere...
Oh, well... not tonight, anyway...
Thanks again!
/Manko