如何在C ++图形输出中获得多个输出窗口? [英] How to get multiple output window in C++ graphics output?

查看:91
本文介绍了如何在C ++图形输出中获得多个输出窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用c ++制作简单的游戏。所以我必须在我的游戏中使用多个窗口。

例如。

在我的第一个窗口中我把它放在开始游戏,差异级别,退出等选项中。

当用户选择任何选项时,他继续使用第二个窗口窗口。



我尝试了什么:



i先试试你管道录像机游戏。

喜欢,

int window1,window2;

setcurrentwindow(window1);



但我在这里得到错误。

所以请帮助..

i am making simple game in c++. So i have to use multiple Window in My Game.
Eg.
on my first window I drop it in options like "start game","Diffiulty level","Exit".
And When User Select any option he move on Second window.

What I have tried:

i tried first from you tube channel VCR games.
like,
int window1,window2;
setcurrentwindow(window1);

but i am getting error in this.
So pls help..

推荐答案

从框架窗口开始它有一个客户区来保存实际的游戏窗口。首先显示客户区中的第一个窗口。然后随着游戏的进行,移除当前窗口并按顺序添加下一个窗口。请参阅 http://winprog.org/tutorial/ [ ^ ]和 Win32编程 - 功能X [< a href =http://www.functionx.com/win32/index.htmtarget =_ blanktitle =New Window> ^ ]以获取一些有用的教程。
Start with a frame window that has a client area to hold the actual game windows. Start by showing the first window in the client area. Then as the game progresses remove the current window and add the next in sequence. See http://winprog.org/tutorial/[^] and Win32 Programming - FunctionX[^] for some useful tutorials.


这篇关于如何在C ++图形输出中获得多个输出窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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