针对外部显示器的 Windows XP/Vista/7 应用程序
我正在考虑创建一个简单的游戏,它可以在外部显示器上显示自己(如果可用)。
我很高兴让它尽可能简单,换句话说,编程处理外部显示器的激活,并在启动时自动定位游戏窗口(通过命令行工具,api,?)。镜子视图也很好。
这可能吗?除了让(头脑简单的)用户必须自己设置显示器等之外,还有其他好的选择吗?
我没有首选的工作语言; Java、C(++)、C#,只要运行在 Windows 7+ 上都可以。
I'm thinking to create a simple game that displays itself on the external monitor, if it's available.
I would be pleased to have this as simple as possible, in other words the programming handles the activation of the external monitor, and targets the gamewindow there automatically on start (by a commandline tool, api, ?). A mirror view would do fine as well.
Is this even possible? Would there be a good alternative, besides having (simpleminded) users having to set their monitor etc. by themselves?
I do not have a preferred language to work with; Java, C(++), C#, anything would do as long as it runs on Windows 7+.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是与多个监视器/显示器相关的 API 的几个示例(几乎是 Google 搜索的第一个相关结果):
EnumDisplayMonitors
将其中大多数的共同点,其文档可在 http://msdn.microsoft.com/en-us/library/dd162610%28VS.85%29.aspx:另请参阅
ChangeDisplaySettingsEx
,它可用于配置显示,包括“设备在多显示器配置中的位置”。Here are just a few examples of APIs related to multiple monitors / displays (pretty much, first relevant results of a Google search):
EnumDisplayMonitors
will be a common point for most of these, the documentation of which is available at http://msdn.microsoft.com/en-us/library/dd162610%28VS.85%29.aspx :See also
ChangeDisplaySettingsEx
, which can be used to configure the displays, including "Position of the device in a multi-monitor configuration."