Not logged in, Join Here! or Log In Below:  
News Articles Search    

 Home / General Programming / Strange ListBox control behaviour Account Manager
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.
Barry Squire

April 12, 2005, 06:48 AM


I've been recently playing with the released Tread3D editor source code and have been busy stripping it back and fixing as many bugs as I can find so I can use it as the editor for my own engine.

Unfortunatly, I've stumbled across an annoying problem with the CListBox class that is distributed with MFC. What I am doing is creating a owner draw (fixed size) list box to show the textures within a browser. This is fine until I try and display items with height more then 255. When I set the height to 256 or more, it just does not do anything and retains the previously set height. I am using SetItemHeight() but the same error occurs if I use standard windows messages to do the same thing.

This is sending me bannanas! Is this a height restriction within windows? or do I have a flag that is not set right?

Please if anyone could give me any suggestions or ways of implementing the texture browser in an alternative way it would be greatly appreciated.


This thread contains 1 message.
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.