Print Page | Close Window

Painting command bar area background?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16814
Printed Date: 20 June 2025 at 7:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Painting command bar area background?
Posted By: wssdev
Subject: Painting command bar area background?
Date Posted: 11 June 2010 at 6:39am

(XTP 10.31)

I am trying to figure how to paint myself the parts of the area marked red in the picture below:




I have intentionally moved the 2nd command bar to the right to show that I'm looking for that background (currently gray) color. It might not be obvious from the picture, but it is the same color and essentially the same area.

I have my own CXTPTabPaintManager and CXTPDefaultTheme-derived classes, but there don't seem to be any virtual methods which I could override in order to paint that part of (let's call it like that) the command bar area.

In fact, I'm not even sure that the above area actually belongs to command bars, nor that it is painted by those XTP clases. It might well be that it is the CXTPFrameWnd code that does the drawing.

Any ideas?

Thanks in advance!









Replies:
Posted By: wssdev
Date Posted: 11 June 2010 at 10:11am

Doesn't matter, I've found it.


class MyPaintManager : public CXTPPaintManager
{

Snippet
    virtual void MyPaintManager::FillDockBar(CDCpDCCXTPDockBarpBar)
{
pDC->FillSolidRect(CXTPClientRect((CWnd*)pBar), <COLORREF color> );
}


...




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