简体   繁体   English

基于对话框的MFC应用程序中的视觉样式?

[英]Visual Styles within Dialog Based MFC Applications?

The MFC Application Wizard disables visual styles for dialog based applications. MFC应用程序向导为基于对话框的应用程序禁用视觉样式。

  • But why? 但为什么?
  • Regardless of the wizard, can I still use the visual styles in my dialog based application (it includes toolbar and menubar)? 无论使用哪种向导,我仍可以在基于对话框的应用程序(包括工具栏和菜单栏)中使用视觉样式吗?

Thank you! 谢谢!

MFC应用程序向导

I think there's a little confusion here. 我认为这里有些混乱。

The greyed out drop-down is title "Visual Styles and colors" in my English version of VS2008. 我的英文版VS2008的灰色下拉菜单标题为“视觉样式和颜色”。 Being greyed out means that you can't modify its value, but it still reports that the resulting app will use "Windows Native/Default". 变灰表示您无法修改其值,但仍报告生成的应用程序将使用“ Windows Native / Default”。 When you go on and create the app and run it, themes are fully supported. 当您继续创建并运行应用程序时,将完全支持主题。

For the other application type options (single document, multiple document, multiple top-level documents), and select other non-system themes. 对于其他应用程序类型选项(单个文档,多个文档,多个顶级文档),然后选择其他非系统主题。 The list is: Office 2003, VS 2005, Office 2007 of various different colors. 列表是:各种不同颜色的Office 2003,VS 2005,Office 2007。

So whilst you don't get these non-standard Office themes, your app will have visual styles and themes as determined by the Windows settings. 因此,虽然您没有获得这些非标准的Office主题,但是您的应用将具有Windows设置所确定的视觉样式和主题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MFC中基于对话框的新文件 - Dialog based New file in MFC 使用 Visual Studio 2008 编译和运行 MFC 应用程序? - Compiling and Running MFC Applications with Visual Studio 2008? 带有选项卡控件的基于 MFC 对话框的应用程序 - Visual Studio 错误/限制使推荐路径不可能? - MFC dialog-based app with tab control - Visual Studio bugs/restrictions make recommended path impossible? 如何在基于对话框的 MFC 项目上创建自定义控件(Visual Studio 2012) - How to create a custom controls on a dialog based MFC project (visual studio 2012) 访问线程内的主要对话框变量(MFC) - Access to main dialog variables within thread (MFC) 如何在基于对话框的 MFC 应用程序上启用滚动? - How to enable scrolling on Dialog Based MFC app? 基于对话框的动画图形实现 MFC - Animated graphics implementation dialog based MFC 如何在基于MFC对话框的应用程序中使用计时器? - How to Use Timer in MFC Dialog based Application? MFC:Emdedded子对话框未显示在父对话框中 - MFC: Emdedded child dialog is not showing up within parent dialog MFC基于对话框的应用程序标题栏突出显示Windows 10上的可视化工件(即CDialogEx中的错误) - MFC's dialog-based app title bar highlighting visual artifacts on Windows 10 (i.e. bugs in CDialogEx)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM