I want to create my own visual theme based on one of the existing visual managers. How can I do this?

Generally, there is no common way to customize the Visual Theme: we suggest to take a look at the visual managers source code and our examples. To create your own visual theme:

  1. Create your class derived from any existing visual manager classes (e.g., CBCGPVisualManager2016). Don’t forget to add DECLARE_DYNCREATE / IMPLEMENT_DYNCREATE!

  2. Override any required drawing methods (in CBCGPVisualManagerVS2012 or later managers you can override SetupColors method and specify your own colors set). Overriding ModifyGlobalColors methods allows to customize all “global” colors such as bar background/foreground colors.

  3. Associate your class with existing theme in your application class constructor:

    Existing code:
    AddVisualTheme(theme, id, bActive);

    New code:
    AddVisualTheme(theme, id, bActive, RUNTIME_CLASS(CMyVisualManager));

Please take a look at our BCGPEdgeDemo example: CVisualManager class demonstrates how to customize Office 2016 White appearance by changing specific colors. There are some other demos with custom visual themes:

  • BCGPMSMoneyDemo
  • BCGPMediaPlayer
  • BCGPShopDemo

Disclaimer: we don't provide any assistance in creating of custom visual managers and we're not responsible for the result (how custom theme does look).

Creation date: 5/30/2019 8:49 PM (support)      Updated: 5/30/2019 8:50 PM (support)