Windows API对话框,而不使用资源文件 [英] Windows API Dialogs without using resource files

查看:89
本文介绍了Windows API对话框,而不使用资源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用C ++和Windows API创建一个对话框,但是我不想在资源文件中定义对话框。我在网络上找不到任何好的东西,没有一个示例看起来似乎以编程方式定义了对话框。

I'm trying to create a dialog box using C++ and the windows API, but I don't want the dialog defined in a resource file. I can't find anything good on this on the web, none of the examples I've read seem to define the dialog programmatically.

任何人都知道如何做到这一点?一个简单的例子是好的,我没有做任何复杂的事情。

Anyone know how to do this? A simple example is fine, I'm not doing anything complicated with it yet.

推荐答案

我认为陈冯富珍有一个很好的示例如下: http://blogs.msdn.com/oldnewthing/档案/ 2005/04/29 / 412577.aspx

I think Raymond Chen has a pretty good example here: http://blogs.msdn.com/oldnewthing/archive/2005/04/29/412577.aspx

这篇关于Windows API对话框,而不使用资源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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