Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - [solved] Japanese is not displayed
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] Japanese is not displayed

 Post Reply Post Reply
Author
Message
hiro-ta View Drop Down
Groupie
Groupie


Joined: 11 July 2013
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote hiro-ta Quote  Post ReplyReply Direct Link To This Post Topic: [solved] Japanese is not displayed
    Posted: 30 January 2018 at 5:06am
Hi,

Japanese is not displayed in CXTPRibbonBackstageButton.
17.3.0 was fine. 18.2.0 is no good



[Development environment]
Windows10 Pro Japanese
VisualStudio2010 SP1
Toolkit Pro for Visual C++ 18.2.0

[source]
void CBackstagePageHelp::InitButton(UINT nID)
{
CXTPRibbonBackstageButton* pButton = (CXTPRibbonBackstageButton*)GetDlgItem(nID);
CXTPImageManagerIcon* pIcon = GetImageList()->GetImage(nID);
ASSERT(pIcon);
pButton->SetIcon(pIcon->GetExtent(), pIcon);
pIcon->InternalAddRef();
pButton->SetTextAlignment(BS_LEFT | BS_VCENTER);
pButton->SetImageAlignment(BS_LEFT | BS_VCENTER);
pButton->SetFlatStyle(TRUE);
pButton->ShowShadow(FALSE);

#if 1 // Optionally Format color and Margins with Markup

pButton->EnableMarkup(TRUE);
CString strWindowText;
pButton->GetWindowText(strWindowText);
CString strTitle, strDescription;
AfxExtractSubString(strTitle, strWindowText, 0);
AfxExtractSubString(strDescription, strWindowText, 1);
strWindowText.Format(_T("<StackPanel Margin='5, 3, 5, 3'><TextBlock>%s</TextBlock><TextBlock TextWrapping='Wrap' Foreground='#6f6f6f' Margin='0, 3, 0, 0'>%s</TextBlock></StackPanel>"), strTitle, strDescription);
pButton->SetWindowText(strWindowText);

#endif 
}



Back to Top
hiro-ta View Drop Down
Groupie
Groupie


Joined: 11 July 2013
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote hiro-ta Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2018 at 9:12pm
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.078 seconds.