Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtTabWnd question Collapse All
Subject Author Date
Ulrich Heinicke May 27, 2008 - 4:12 AM

Hi,

i want to allow the user to change the style (maybe from CExtPaintManagerOffice2007_R3_LunaBlue to CExtPaintManagerNativeXP). The menu, toolbars, buttons etc. will be changed by the paintmanager, but not the tabwnd (TabPageContainerWnd and TabMdiWnd) see the screenshots:


1. CExtPaintManagerOffice2007_R3_LunaBlue and OneNoteWnd



2. CExtPaintManagerNativeXP and the wrong TabWnd-style (OneNoteWnd any more)



3. CExtPaintManagerNativeXP and how it should be (standard TabWnd)



Is there a posiblility to change the TabWnd according to the style?


Thanks

Ulrich

Technical Support May 27, 2008 - 1:59 PM

The paint manager is used in most of Prof-UIS classes. But some classes like one note tab window and tab page container window are theme independent.

Ulrich Heinicke May 28, 2008 - 8:40 AM

Than i make it by my own. Please tell me how i can get the selected style (RUNTIME_CLASS) from the paintmanager.


Thanks

Ulrich

Technical Support May 29, 2008 - 4:12 AM

You should get a pointer to the currently installed instance of the paint manager and analyze its type:

CExtPaintManager * pPM = g_PaintManager.GetPM();
      ASSERT_VALID( pPM );
      if( pPM->IsKindOf( RUNTIME_CLASS( CExtPaintManagerOffice2003 ) ) )
      {
            // Office 2003 paint manager is installed or some other derived from it
      }