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 » Applying skins to a already existing MFC based application Collapse All
Subject Author Date
howard liu Dec 13, 2007 - 10:43 PM

Hi,

We would like to know the procedure to apply prof UI skins to an application that makes use of MFC 7.0. What are the code modifications that are required within our application in order apply prof UI skins. Is the procedure same as applying different themes of Prof UIs.

One particular clarification requested is, if the apllications main interface hosts many controls (such as MFC list boxes & list controls which do not have any relation with the prof UI control ) what would be the procedure to apply the prof UI skin.Should these controls also be derived from prof UI controls ? If so, does prof UI provide any customized controls for List Control, Views, toolbars which i am unable to find in prof UI library.

Otherwise, is the applying of prof UI skins procedure independent of the controls that user interface hosts ?

Thanks

Technical Support Dec 14, 2007 - 9:08 AM

The skinning subsystem, which is represented by the ProfSkin library (comes with Prof-UIS), has to do with Prof-UIS classes only. Some of components like ribbons, grid and toolbox are not skinned yet. What you need to do is to install the skinable paint manager with successfully pre-loaded skin data:

      CExtPaintManagerSkin * pPM = new CExtPaintManagerSkin;
      bool bLoaded = true;
      if( ! pPM->m_Skin.SearchAndLoadSkinFile( _T("Aqua.Skin"), false ) )
      {
            bLoaded = false;
            ::AfxMessageBox( _T("Failed to load skin.") );
            delete pPM;
      }
      if( bLoaded )
            g_PaintManager.InstallPaintManager( pPM );
Please also include the following header file of the ProfSkin library (after including Prof-UIS.h) and compile the ProfSkin first:
#if (!defined __PROF_SKIN_H)
      #include <../ProfSkin/ProfSkin.h>
#endif // (!defined __PROF_SKIN_H)