如何在VB6中使用LoadResPicture加载图像的项目中添加图像

发布于 2024-09-13 14:58:09 字数 178 浏览 9 评论 0原文

我有一个正在使用以下方式加载图像的项目:

imgwrc1.Picture = LoadResPicture(115, 0)

现在如何添加我的图像并为其指定 id 116, 参数中的 0 显示它是位图,但项目文件夹中没有位图。那么图像是从哪里加载的。 我想在对话框中显示该图像

I have a project which is loading images using:

imgwrc1.Picture = LoadResPicture(115, 0)

Now how do i add my image and give it id 116, 0 in the argument shows that it is a bitmap but there are no bitmaps in the project folder. So from where is the image being loaded.
I want to display this image in dialog

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱人如己 2024-09-20 14:58:09

从插件管理器加载 VB 资源编辑器插件,然后将图像添加到资源文件中,然后使用 LoadResPicture 函数访问它。

from addin manager got to load the VB Resource editor add in then, add the image to the resource file then acccess it using LoadResPicture function.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文