Re: Combobox resize
"Konstantin Mironovich" <[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Organization | ixbt.com |
| Message-ID | <56B25F1C090A4C8481C4FB79E830467E@KLM64> |
Hi Mike,
thanks alot!
cannot believe I missed this option with imagelist :)
1x21 image list is exactly I need. both dropdown and dropdownlist controls
look pretty good under Xp/Vista/W7.
I even don't need to add an image. empty imagelist works well.
CImageList img;
if (img.Create(1, 21, ILC_COLOR32|ILC_MASK, 1, 1))
m_grid.SetImageList(img, LVSIL_SMALL);
int n = m_grid.InsertItem (0, str, -1);
m_grid.AddItem(n, 1, str); //
m_grid.AddItem(n, 2, str);
m_grid.AddItem(n, 3, str);
-km
----- Original Message -----
From: domehead100
To: [email protected]
Sent: Thursday, March 12, 2009 5:27 AM
Subject: [wtl] Re: Combobox resize
--- 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
__._,_.__
[Non-text portions of this message have been removed]
------------------------------------
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/