Click here to Skip to main content
14,971,029 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
How to change the colour of the list control and insert the text , i read we can change color using NM_CUSTOMDRAW,,, how to use it. It is not in the class wizard (messages),, pls guide me

thank you

1 solution

take a look at this article:[^]

Here you will be able to see how to do it:

// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;
// Use the 3D button face color for the background.
COLORREF crBkColor = ::GetSysColor(COLOR_3DFACE);
ASSERT(pmyListCtrl->GetBkColor() == crBkColor);

This should help you. :thumbsup:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900