Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Painting command bar area background?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Painting command bar area background?

 Post Reply Post Reply
Author
Message
wssdev View Drop Down
Groupie
Groupie


Joined: 04 May 2010
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote wssdev Quote  Post ReplyReply Direct Link To This Post Topic: Painting command bar area background?
    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!






Back to Top
wssdev View Drop Down
Groupie
Groupie


Joined: 04 May 2010
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote wssdev Quote  Post ReplyReply Direct Link To This Post 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> );
}


...

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.031 seconds.