XNA window border changing theme on Fullscreen to Windowed transition

好久不见. 提交于 2019-12-24 08:25:54

问题


When I'm going from fullscreen to windowed mode in XNA the window does not use the default windows theme but the old "non-aero" style. I'm using Windows 8, don't know the new terms for the different themes.

I tried this solution: XNA losing title bar theme on fullscreen->windowed transition, but it doesn't seem to work, at least not on Windows 8.

How do I make sure the default theme is always used? Doesn't have to be a XNA specific solution.


回答1:


Use this:

System.Windows.Forms.Application.VisualStyleState = System.Windows.Forms.VisualStyles.VisualStyleState.ClientAndNonClientAreasEnabled;



来源:https://stackoverflow.com/questions/14541433/xna-window-border-changing-theme-on-fullscreen-to-windowed-transition

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!