如何在WIN32 API的COMBOBOX VC6.0中添加项目? [英] HOW TO ADD ITEMS in COMBOBOX VC6.0 FOR WIN32 API ?

查看:178
本文介绍了如何在WIN32 API的COMBOBOX VC6.0中添加项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,
我正在使用S/w:针对项目的Visual c ++ 6.0
在资源文件中,我直接使用控制工具创建了对话框n其他控件,问题是插入组合框的数据在测试运行中可见,但在exe中不可见

HI ,
i m using S/w : Visual c++ 6.0 for project
in a resource file i have created dialog box n other control by using control tools directly the problem is that the data inserted in combobox is visible in test run but in exe it is invisible

推荐答案

这是MFC项目,还是普通的旧win32项目?

我问,因为我不知道有没有一种机制可以通过组合机制自动使用资源文件中的数据填充组合框,而无需使用MFC.

如果没有MFC,据我所知,您必须自己添加项目-也许是在您调用的辅助函数中,以响应WM_INIT或WM_INITDIALOG消息
Is this an MFC project, or a plain old win32 one?

I ask, because I''m not aware of any mechanism by which a combo-box may be automatically populated with data from a resource file without the use of MFC.

If there''s no MFC, in my understanding, you have to add the items yourself - perhaps in a helper funtion you call in response to the WM_INIT or WM_INITDIALOG messages


这篇关于如何在WIN32 API的COMBOBOX VC6.0中添加项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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