|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Andrew Cochran
|
Jul 19, 2006 - 3:00 AM
|
Hi, again!
My select listbox in CExtPropertyGridComboBoxBar does not have vertical scroll bar. How can I turn it on and set autoscroll property to it?
I need it, because I have a lot of elements which properties need to be displayed!
Thanks.
|
|
Technical Support
|
Jul 19, 2006 - 9:49 AM
|
Thank you for reporting the problem. Please update the following method: bool CExtPropertyGridComboBoxBar::Create(
CWnd * pWndParent,
bool bVisible // = true
)
{
ASSERT_VALID( this );
ASSERT( GetSafeHwnd() == NULL );
ASSERT_VALID( pWndParent );
ASSERT( pWndParent->GetSafeHwnd() != NULL );
CRect rc( 0, 0, 0, 400 );
if( ! CExtComboBox::Create(
WS_CHILD
| ( bVisible ? WS_VISIBLE : 0 )
|WS_CLIPCHILDREN|WS_CLIPSIBLINGS|WS_VSCROLL
|CBS_DROPDOWNLIST|CBS_HASSTRINGS,
rc,
pWndParent,
__EXT_MFC_ID_PROPERTY_GRID_COMBO_BOX
)
)
{
ASSERT( FALSE );
return false;
}
SetFont(
CFont::FromHandle(
(HFONT)::GetStockObject(DEFAULT_GUI_FONT)
)
);
return true;
} We just added the WS_VSCROLL style to the combo box.
|
|
Andrew Cochran
|
Jul 20, 2006 - 2:03 AM
|
Thanks for this too! :) Now it looks and works good!
Best regards!
|
|