Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - CXTPPropertyGridToolBar::OnPaint
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridToolBar::OnPaint

 Post Reply Post Reply
Author
Message
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGridToolBar::OnPaint
    Posted: 23 July 2007 at 11:45pm
 
void CXTPPropertyGridToolBar::OnPaint()
{
 CPaintDC dc(this);
 CXTPClientRect rc(this);
 CXTPBufferDC memDC(dc, rc);
 memDC.FillSolidRect(rc, GetXtremeColor(COLOR_3DFACE));
 CToolBar::DefWindowProc(WM_PAINT, (WPARAM)memDC.m_hDC, 0);
}
 
shouldn't do the FillSolidRect.  In fact will need a transparent mode just like the property grid itself.
 
Also, it would be really handy to have such a toolbar on the list control,
 
and...
 
it would be even better if we could use our own TOOLBAR resource, instead of being stuck with the hard-coded one that just does sorting.
 
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2007 at 11:56pm
PS.  It has the same problem also in
 
void CXTPSkinObjectToolBar::OnPaint()
{
 CXTPSkinObjectPaintDC dc(this); // device context for painting
 CRect rcClient;
 GetClientRect(&rcClient);
 CXTPBufferDC dcMem(dc, rcClient);
 dcMem.FillSolidRect(rcClient, GetColor(COLOR_3DFACE));
 HFONT hFont = (HFONT)SendMessage(WM_GETFONT);
 HFONT hOldFont = (HFONT)::SelectObject(dcMem, hFont);
 DrawToolbarH(&dcMem);
 ::SelectObject(dcMem, hOldFont);
}
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2007 at 12:22am
P.P.S, here's the image showing why it's an issue.
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 24 July 2007 at 5:24am
Hello,
 
We will enhance it for 11.2 release.
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.125 seconds.