By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,462 Members | 1,449 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,462 IT Pros & Developers. It's quick & easy.

OwnerDrawn List Box

P: n/a

I am making a new listbox which will give me the ability to put in a title on one line, a number on the side for each item, and a description that would textwrap if the string length is bigger then the width of the listbox. I am having the problem when it comes to measuring the itemheight. I have added two items which are identical, but when the MeasureItem runs the first item height is 318 and the second one is 79. Can anyone help me

Thank you

Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Ok, got a new problem now. Before I inherited form the Listbox control and never called base.OnMeasureItem and base.OnDrawItem. I have done that, but now when I have a string that is very large and the 2nd string is smaller they do not properly set the itemheight, but when I call out a messagebox to display the item height inside the OnMeasureItem routine the itemheight is correct. As soon as i get the out of the OnMeasure routine then the height is not correct again. Any suggestions

Thank you

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.