[solved] Japanese is not displayed |
Post Reply |
Author | |
hiro-ta
Groupie Joined: 11 July 2013 Status: Offline Points: 61 |
Post Options
Thanks(0)
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 } |
|
hiro-ta
Groupie Joined: 11 July 2013 Status: Offline Points: 61 |
Post Options
Thanks(0)
|
I solved it with the following. |
|
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 |