|
|
|
|
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 |
|
Paul Cowan
|
Jan 14, 2008 - 1:33 PM
|
The grid tooltip window is using the cell text colour, so when a cell has white text (on a dark background) the tooltip text is not visable> It is shown as white on the standard toolitp cream background. How do I get the tooltip text to always be black?
|
|
Technical Support
|
Jan 21, 2008 - 3:03 AM
|
Thank you for reporting the bug. To fix it, please open the CExtGridCell::OnPaintExpandedContent() method and find the following line: COLORREF clrBk = wndGrid.OnSiwGetSysColor( COLOR_INFOBK ); Then replace it with the following code: COLORREF clrBk =
OnQueryBackColor(
wndGrid,
picd.m_dc,
htInfo.m_nVisibleColNo,
htInfo.m_nVisibleRowNo,
htInfo.m_nColNo,
htInfo.m_nRowNo,
htInfo.GetInnerOuterTypeOfColumn(),
htInfo.GetInnerOuterTypeOfRow(),
htInfo.m_dwAreaFlags,
0L //dwHelperPaintFlags
);
if( clrBk == COLORREF(-1L) )
clrBk = wndGrid.OnSiwGetSysColor( COLOR_INFOBK );
|
|