Professional UI Solutions
Site Map   /  Register


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.

Forums » Prof-UIS Tech Support » "&" character not displayed as expected Collapse All
Subject Author Date
Alastair Watts Jan 26, 2011 - 9:32 AM

I notice CExtLabel & CExtCheckComboBox dont display the "&" character as expected.  Could you provide a fix please.



Alastair Watts Jan 28, 2011 - 6:22 AM

DT_ELLIPSIS combined with DT_NOPREFIX does not work, "&" is displayed as "&&" when doing so.

The best I have managed so far is to use DT_SINGLELINE|DT_VCENTER|DT_NOPREFIX, forgoing the ellipsis!




Alastair Watts Jan 27, 2011 - 7:30 AM

I’ve modified CExtCheckComboBox::DrawItem()

::stat_DrawText() options changed from




... it seems that DT_ELLIPSIS causes problems!



Technical Support Jan 28, 2011 - 1:10 PM

This is already fixed. You can send us e-mail to the support mail box at this web site so we will provide you with the source code update download.

Technical Support Jan 27, 2011 - 12:36 PM

Thank you for reporting this issue. The CExtCheckComboBox::DrawItem() method should draw text using the DT_NOPREFIX flag:

    CExtRichContentLayout::stat_DrawText( pDIS->hDC, LPCTSTR(strDraw), strText.GetLength() + 1, &rcText, DT_SINGLELINE|DT_VCENTER|DT_NOPREFIX|DT_END_ELLIPSIS, 0 );

Alastair Watts Jan 26, 2011 - 2:16 PM

CExtCheckComboBox::AddString(_T("This & that")); is not displayed correctly.

CComboBox::AddString(_T("This & that")); is displayed correctly.


Technical Support Jan 26, 2011 - 1:19 PM

We have not found any problems with parsing and displaying the ampersand. Please provide us with more details.