Create a Window in a Visual Studio 2012 console application?

女生的网名这么多〃 提交于 2019-12-12 18:32:58

问题


Is there a way to create a Window in a C++ Console Application? I have already a console application for creating some data and I want to show them in some graphics, but not inside the console. Is this possible?


回答1:


You use a function called CreateWindowEx(), See here.

It's rather complex, you need to create a WNDCLASSEX structure and use RegisterClassEx() on it before passing it as a parameter to CreateWindowEx(). You also need to create Message Procedure function.

This article on MSDN runs through it quite nicely



来源:https://stackoverflow.com/questions/17965373/create-a-window-in-a-visual-studio-2012-console-application

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