Re: Combobox resize

"domehead100" <[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
--- In [email protected], "Konstantin Mironovich" <const@...> wrote:
>
> Hi folks,
> 
> Obviously I'm interesting in combobox height resize.
> cb.SetItemHeight(-1, h) does not work. I get the values I set with 
> COMBOBOXINFO but the standard height (19) displayed finally.
> The task is quite common : to make an inplace editor within listview. lv 
> item height is 17 and also not resizable (or at least I don't know how).
> Combobox does not support custom draw. (like listview, toolbar, etc..)
> I could use owner-draw but DrawFrameControl(.., DFCS_SCROLLDOWN) draws 
> something different to Vista look.
> I don't want handy drawings because I'd prefer the original look for each OS 
> version.
> 
> Another way is to use separate button and listbox. no problem with listbox 
> but button still looks differently and I need to draw check on button 
> manually.
> 
> 
> Any suggestions?
> 
> thanks
> 
> -km 
> 
> 
> [Non-text portions of this message have been removed]
>

You might check out www.viksoe.dk.  Check out his combobox controls and his property grid.  There are other examples on the Internet (maybe www.ucancode.com and www.codeproject.com) that show in-place use of comboboxes inside listviews.  Typically these are "property controls" or "property grids".

To resize the rows in a ListView, what I've always done is use an imagelist and change the size of the images.  The control will change it's row size to fit the image size.

The windows combobox sucks pretty bad... So bad that even though I am lazy by nature, I was motivated enough to write my own ground-up listbox and combobox controls because I got so tired of fighting the limitations of the built-in controls.  

Best of luck with this.

~Mike



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.