|
|
|
|
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 |
|
Massimo Germi
|
Sep 4, 2006 - 5:12 AM
|
Hi, how can I set font bold style for some items in a CExtTreeGridWnd derived control?
tx a lot
|
|
Technical Support
|
Sep 4, 2006 - 11:51 AM
|
Alternatively, starting from version 2.53, you can use the CExtGCF template with which you set a custom font for any grid cell by specifying the following font parameters: Height, Width, Weight, Italic, Underline, StrikeOut, Quality, and FaceName. For example, to make the cell’s text bold, just invoke the following line: pCell->FontWeightSet( FW_BOLD );
|
|
Suhai Gyorgy
|
Sep 4, 2006 - 6:13 AM
|
In ReportGrid Sample you can find something like this:
"SomeClass".h int m_nBoldFontIndex;
"SomeClass".cpp, around initialization: m_nBoldFontIndex = GridFontInsert( g_PaintManager->m_FontBold, -1, true );
Usage: CExtGridCell *pCell = GridCellGet(...); pCell->FontIndexSet( m_nBoldFontIndex );
|
|