不使用资源文件的 Windows API 对话框 [英] Windows API dialogs without using resource files

查看:17
本文介绍了不使用资源文件的 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, and none of the examples I've read seem to define the dialog programmatically.

我该怎么做?

一个简单的例子就可以了.我还没有做任何复杂的事情.

A simple example is fine. I'm not doing anything complicated with it yet.

推荐答案

Raymond Chen 写了几篇关于对话管理器的帖子:

Raymond Chen wrote a few posts about the dialog manager:

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

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