Print Page | Close Window

How to set Office2007 theme for dialog controls?

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=8959
Printed Date: 14 November 2025 at 8:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set Office2007 theme for dialog controls?
Posted By: pkhach
Subject: How to set Office2007 theme for dialog controls?
Date Posted: 29 November 2007 at 3:24pm
Hello,

Is it possible to set an Office2007 like theme for dialog controls?

I know how to set an Office2007 like caption for a dialog, but how about dialog controls?

P.S. I don't want to use Skin Framework for this task.

Thanks,
KP

*****
  

#define CDialogBase CXTPDialogBase<CXTResizeDialog>

class CCurvesDialog : public CDialogBase
{
...
}

BOOL CCurvesDialog::OnInitDialog()
{
    {
        HICON h = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
        SetIcon(h, true);
        SetIcon(h, false);
    }
    CXTPPaintManager::SetTheme(xtpThemeOffice2007);
...
}



Replies:
Posted By: pkhach
Date Posted: 01 December 2007 at 1:44am
No chance? 

For example for Prof-UIS it is enough to add variables for all controls of dialog like CXTButton, CXTEdit etc and the library will do the rest.

KP



Posted By: Oleg
Date Posted: 01 December 2007 at 2:57am
Hello,
 
Sorry, common controls don't support Office2007 theme :-(


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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