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 General Discussion » Draw standard controls with Prof-UIS Collapse All
Subject Author Date
mol la Dec 5, 2007 - 6:28 PM

I want to draw standard controls with my custom colors with using this powerful library.
For example, I want to make a backcolor of CListCtrl black.
But I don’t know the way.
Can anyone help me.
If you know the way, help me.

Best regards.

Technical Support Dec 6, 2007 - 8:06 AM

There is a CListCtrl::SetBkColor() method which sets the background color of the list view control. If you want to remove the backgound color, use the CLR_NONE value.

Here is the sample code

// Use the 3D button face color for the background.
COLORREF crBkColor = g_PaintManager->GetColor( COLOR_3DFACE );
pmyListCtrl->SetBkColor( crBkColor );
Note there are methods for changing the text and background colors for the most of Prof-UIS controls.