Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CButton or CXTButton's theme display error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CButton or CXTButton's theme display error

 Post Reply Post Reply
Author
Message
littleameng View Drop Down
Groupie
Groupie
Avatar

Joined: 22 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote littleameng Quote  Post ReplyReply Direct Link To This Post Topic: CButton or CXTButton's theme display error
    Posted: 22 June 2008 at 2:19am

I develop the app with MDI frame, Now I have created CChildFrame derived CXTPFrameWndBase<CMDIChildWnd> class, my CChildView is derived CFormView, then I created a CButton control and a CXTButton control, followed code:

//the codes in CMainFrame.cpp
 
XTThemeManager()->SetTheme(xtpThemeOffice2003);
XTPPaintManager()->SetTheme(xtpThemeOffice2003);

then display styles:
 
but I want to get display style:
 
I can't find the reason.
Please help me!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2008 at 2:37am
Hi,
If you want standard Style, you can use standad CButton. See our Button sample, it shows how to enable WInXP theme.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
littleameng View Drop Down
Groupie
Groupie
Avatar

Joined: 22 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote littleameng Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2008 at 4:12am
Firstly, thank you for your answer!
 
Now I want the office 2003 style! but I can't do it!
 
Could you tell me how to do?
Back to Top
littleameng View Drop Down
Groupie
Groupie
Avatar

Joined: 22 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote littleameng Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2008 at 4:35am

After saw the button sample, I have found that I modify "CXTButton" to "CXTPButton" and I can see the standad style. But I don't know the reason, Could you tell me the different between "CXTButton" class and "CXTPButton" class!

Thank you very much!

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2008 at 7:53am
Hi,
CXTPButton is new class in 12.0 release. I recommend use it for new applications.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.203 seconds.