Re: Derek or Chris: Height of ListBox differs from createEx statement
- Posted by Derek Parnell <ddparnell at bigpond.com> Apr 23, 2007
- 439 views
Judith Evans wrote: > > If I create a window and have a ListBox in it and specify the height to be, > for example, 100 pixels, it is actually created by Win32lib somewhat smaller. > Why? Is the amount the height I specify reduced by always the same amount? > By default, Windows creates listboxes in integral sizes based on the font size. In other words, is adjusts the size so it shows an exact number of lines rather than allowing partial lines to be displayed. There is a create flag that allows this behaviour to be overridden - "LBS_NOINTEGRALHEIGHT" -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell