本文主要是介绍juce教程005-中文显示,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
https://blog.csdn.net/u012442719/article/details/50708145
1,main.cpp中修改:
- void initialise (const String& commandLine) override
- {
- // This method is where you should put your application's initialisation code..
- ;span style="background-color: rgb(255, 102, 102);">LookAndFeel::getDefaultLookAndFeel().setDefaultSansSerifTypefaceName(L"SimHei");//黑体字</span>
- mainWindow = new MainWindow (getApplicationName());
- }
3,使用的时候:
- void MainContentComponent::buttonClicked(Button*btn)
- {
- if (btn==&button)
- {
- AlertWindow::showOkCancelBox(AlertWindow::WarningIcon,<span style="background-color: rgb(255, 102, 102);"> L"警告窗口"</span>, "what information", <span style="background-color: rgb(255, 102, 102);">L"确定"</span>, <span style="background-color: rgb(255, 102, 102);">L"取消"</span>, 0, 0);
- }
- }
- 4,结果:
这篇关于juce教程005-中文显示的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!