![]() |
Font error of ribbon bar when install Office 2007 |
Post Reply ![]() |
Author | |
nttrungmt ![]() Newbie ![]() ![]() Joined: 15 September 2008 Location: Vietnam Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() Posted: 15 September 2008 at 4:20am |
My application use office 2007 style ribbon bar .
The ribbon bar display japanese character correctly until i installed office 2007. The screen appeared like this: ![]() My app is built in mode multi-byte character set. I think maybe problem here because i have another Unicode app display well in same environment. How i can fix this problem without changing build mode from multi-byte to unicode? Please help me |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
we had same complain. After Office2007 installed in Japanese OS Menu font start use wrong charset. :(
Solution is to patch void CXTPRibbonTheme::UpdateFonts() method and replace
lf.lfCharSet = ncm.lfMenuFont.lfCharSet;
to
lf.lfCharSet = (BYTE)::GetTextCharsetInfo(dc, NULL, 0);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
nttrungmt ![]() Newbie ![]() ![]() Joined: 15 September 2008 Location: Vietnam Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
I have patched CXTPRibbonTheme::UpdateFonts() method follow your intructions but when i build codejock again, there is an error
The compiler said that dc is not declared. In (BYTE)::GetTextCharsetInfo(dc, NULL, 0); I can't found dc variable is declared anywhere. Please help me check this line of code. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Sorry, just add
CWindowDC dc(NULL);
|
|
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 |