![]() |
Ribbon / Dialogs / PaintManager |
Post Reply ![]() |
Author | |
Pixbyte ![]() Groupie ![]() Joined: 11 April 2007 Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() Posted: 12 April 2007 at 10:18pm |
Hello,
I try to implement the Ribbon control to a dialog based app, similar to the Ribbon Sample. But after build in I get everytime a grey dialog with a black border. No headline and so forth. So my understanding is that I need to add something about the Office2007 PaintManager and Resources. But can someone help me out how to do this in Dialog Based apps? Ingo |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
In your res\xxx.rc2 file add
#include "Ribbon\Styles\Office2007Blue\Office2007Blue.rc" |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Pixbyte ![]() Groupie ![]() Joined: 11 April 2007 Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
hi,
ok I play little bit, with the tip the border of the dialog is blu, but there is still no ribbon/commandbar at the top. I also changed following: OnPaint: //CRayPlicantDlgBase::OnPaint(); changed to: CPaintDC dc(this); CXTPClientRect rc(this); CXTPWindowRect rcClient(GetDlgItem(AFX_IDW_PANE_FIRST)); ScreenToClient(&rcClient); CXTPCommandBars* pCommandBars = GetCommandBars(); ((CXTPOffice2007Theme*)(pCommandBars->GetPaintManager()))->FillWorkspace(&dc, rc, rcClient); Problem: Now the dialog is blue but also I do not have any Commandbar/Ribbob at the top, the complete Windowtop is missing. Any Solution? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Attach here project to check what you done.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |