My program needs to use ResetContent() to remove all the items.
But when PropertyList's (CButton)m_btnCtrl had already shown,
and after ResetContent(),
if the total items are less then before.
then the button would still remain on the blank of the listBox!!
so here is ruxming's modification.
void CPropertyList::CleanAll() ///[Modify]
// Then has to call CleanAll() instead of ResetContent();
3) Better creation of the combobox. The combobox should
display a vertical scrollbar when its list contains a
large number of items. And it may be a bit larger as well.
Personally i don't like the CBS_NOINTEGRALHEIGHT style.
But you can keep it if you want.
first thanks for you work. It helped me to implement my own PropertyControl.
I've one problem with a CCombobox using DropDown Style (editable text). For this control the OnKillFocus will not be called as expected.
I hide my controls on OnVScroll message. Before this the framework calls normlay OnKillFocus so I can read the changings. This works for CEdit and CComboBox with DropDownList Style, but not for DropDown Style.
Has anyone an idea?