Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPropertySheet/CXTPPropertyPage
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertySheet/CXTPPropertyPage

 Post Reply Post Reply
Author
Message
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertySheet/CXTPPropertyPage
    Posted: 20 September 2007 at 1:18pm
Does CXTPPropertySheet/CXTPPropertyPage support a gradient caption bar?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.