![]() |
CXTPPropertySheet/CXTPPropertyPage |
Post Reply
|
| Author | |
Kenneth
Senior Member
Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPPropertySheet/CXTPPropertyPagePosted: 20 September 2007 at 1:18pm |
|
Does CXTPPropertySheet/CXTPPropertyPage support a gradient caption bar?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 September 2007 at 1:01am |
|
Hello,
You waste more time to ask question and wait answer than to implement it
:-)
Here some template class
CXTPPropertyPageStaticCaption::CXTPPropertyPageStaticCaption()
{ };
BEGIN_MESSAGE_MAP(CXTPPropertyPageStaticCaption, CWnd)
ON_WM_PAINT() ON_WM_ERASEBKGND() END_MESSAGE_MAP() BOOL CXTPPropertyPageStaticCaption::OnEraseBkgnd(CDC* /*pDC*/)
{ return TRUE; } void CXTPPropertyPageStaticCaption::OnPaint()
{ CPaintDC dcPaint(this); CXTPBufferDC dc(dcPaint); CXTPClientRect rc(this); dc.FillSolidRect(rc, RGB(221, 231, 238));
dc.FillSolidRect(rc.left, rc.bottom - 1, rc.Width(), 1, RGB(197, 197, 197)); rc.DeflateRect(7, 0); CString strText;
GetWindowText(strText); dc.SetBkMode(TRANSPARENT);
dc.SetTextColor(RGB(0, 21, 110)); CXTPFontDC font(&dc, &XTAuxData().fontBold); dc.DrawText(strText, rc, DT_VCENTER | DT_SINGLELINE); } just modify its OnPaint as you need.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |