Print Page | Close Window

CXTPPropertyGridToolBar::OnPaint

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=7649
Printed Date: 23 November 2024 at 10:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGridToolBar::OnPaint
Posted By: adrien
Subject: CXTPPropertyGridToolBar::OnPaint
Date 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.
 



Replies:
Posted By: adrien
Date 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);
}


Posted By: adrien
Date Posted: 24 July 2007 at 12:22am
P.P.S, here's the image showing why it's an issue.
 


Posted By: Oleg
Date Posted: 24 July 2007 at 5:24am
Hello,
 
We will enhance it for 11.2 release.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net