Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - xtpThemeOffice2007 problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

xtpThemeOffice2007 problem

 Post Reply Post Reply
Author
Message
idler View Drop Down
Groupie
Groupie


Joined: 11 July 2007
Location: Russian Federation
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote idler Quote  Post ReplyReply Direct Link To This Post Topic: xtpThemeOffice2007 problem
    Posted: 16 March 2008 at 1:55pm
Hi,

In dialog-based app I set xtpThemeOffice2007 theme:

XTPPaintManager()->SetTheme(xtpThemeOffice2007);
or
CXTPPaintManager::SetTheme(xtpThemeOffice2007);

and then I show menu:
int menuResult = CXTPCommandBars::TrackPopupMenu(pSubMenu,
                    TPM_NONOTIFY | TPM_RETURNCMD | TPM_LEFTALIGN |TPM_RIGHTBUTTON, pos.x, pos.y,
                    this, NULL);

i've seen this:



what is my problem?

if i set theme xtpThemeWhidbey TrackPopupMenu is valid, but i need xtpThemeOffice2007 theme.
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: 16 March 2008 at 3:10pm
Hi,
 
You need add office2007 bitmaps to your application.
 
Add in res\app.rc2 file
#include "Styles\Office2007Blue\Office2007Blue.rc"
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
idler View Drop Down
Groupie
Groupie


Joined: 11 July 2007
Location: Russian Federation
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote idler Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2008 at 3:26pm
tnx!
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.141 seconds.