如何在 VisualStudio SkeletonBasics-D2D 2013 中使 Window 全屏显示 [英] How to make Window full screen in VisualStudio SkeletonBasics-D2D 2013

查看:29
本文介绍了如何在 VisualStudio SkeletonBasics-D2D 2013 中使 Window 全屏显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用 SkeletonBasics-D2D 库.我想用骨架进行演示,但需要使窗口全屏显示.这是我目前完成的笔记,我的下一步可能是修改 .rc 文件以使用全屏窗口应用程序;不过,我想先问问有没有人知道另一种方式.

I'm currently using the SkeletonBasics-D2D library. I would like to give a presentation with the skeleton but need make the window fullscreen. Here are the notes I currently worked through and my next step is potentially modifying the .rc file to work with the full screen windowed app; however, I'd like to ask first is anyone knows another way.

它可能只是在我的 SkeletonBasics.rc 文件中操纵此代码:

Potentially it could just be manipulating this code in my SkeletonBasics.rc file :

 IDD_APP DIALOGEX 0, 0, 512, 424
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_CLIPCHILDREN | WS_CAPTION |     WS_SYSMENU
 EXSTYLE WS_EX_CONTROLPARENT | WS_EX_APPWINDOW
 CAPTION "Skeleton Basics"
 CLASS "SkeletonBasicsAppDlgWndClass"
 FONT 8, "MS Shell Dlg", 400, 0, 0x1
 BEGIN
     CONTROL         "",IDC_VIDEOVIEW,"Static",SS_BLACKFRAME,0,0,512,384
     LTEXT           "Click 'Seated' to change skeletal pipeline type!",IDC_STATUS,0,413,511,11,SS_SUNKEN,WS_EX_CLIENTEDGE
     CONTROL         "Seated",IDC_CHECK_SEATED,"Button",BS_AUTOCHECKBOX |  WS_TABSTOP,238,391,55,8
 END

代码注释:

  • 创建窗口会导致生成与对话框不同的信号
  • 在创建时对话框需要 WM_INITDIALOG 的地方,窗口应该需要 WM_NCCREATE
  • 使用 CreateDialogParamW() 设置对话框的 DLGPROC.窗口的 WNDPROC 设置在 WNDCLASS 结构中,然后在 CreateWindow() 之前注册
  • 窗口的类名很重要,因为它在 SkeletonBasics.rc 文件 wc.lpszClassName = L"SkeletonBasicsAppDlgWndClass" 中被引用;
  • 需要确定发送到窗口的所有消息并适当处理它们

推荐答案

本教程是一个很好的全屏示例,并已使用它将我的应用程序转换为全屏.

This tutorial is a great example of full screen and have used it to convert my application into full screen.

为了到达那里,我需要将对话框过程更改为窗口.

To get there, I needed to change the dialog proc to a window.

http://www.directxtutorial.com/Lesson.aspx?课程id=11-4-4

这篇关于如何在 VisualStudio SkeletonBasics-D2D 2013 中使 Window 全屏显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆