I have overloaded the CTreeCtrl::OnCustomdraw ( NMHDR* pNMHDR, LRESULT* pResult )
Function and would like to make the item texts Bold.
Can I use the NMLVCUSTOMDRAW struct. I have tried looking in MSDN.
I successfully have changed the text color with the following code:
----------------------------
void MyTreeCtrl::OnCustomdraw ( NMHDR* pNMHDR, LRESULT* pResult )
{
NMLVCUSTOMDRAW* pLVCD = reinterpret_cast<NMLVCUSTOMDRAW*>( pNMHDR );
pLVCD->clrText = RGB( 210, 65, 20 );
}
----------------------------
Any suggestion how to change the font… ?
Function and would like to make the item texts Bold.
Can I use the NMLVCUSTOMDRAW struct. I have tried looking in MSDN.
I successfully have changed the text color with the following code:
----------------------------
void MyTreeCtrl::OnCustomdraw ( NMHDR* pNMHDR, LRESULT* pResult )
{
NMLVCUSTOMDRAW* pLVCD = reinterpret_cast<NMLVCUSTOMDRAW*>( pNMHDR );
pLVCD->clrText = RGB( 210, 65, 20 );
}
----------------------------
Any suggestion how to change the font… ?