在Win 32项目中将项目添加到组合框 [英] add item to combo box in win 32 project

查看:62
本文介绍了在Win 32项目中将项目添加到组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有亲们
我想通过Visual Studio 2010(C ++.net)中的win32项目创建一个应用程序.
我想添加一个组合框以为此添加很多项目.
如何将项目添加到组合框?
谢谢

解决方案

使用 CComboBox :: AddString [ ^ ]函数.

Hy all pro
I want to create an application by win32 project in visual studio 2010 ( C++.net ) .
I want to add a Combo box to Form an add many item to this .
how I add item to combo box ?
thank you

解决方案

Use the CB_ADDSTRING[^] message.

With MFC, use the CComboBox::AddString[^] function.


这篇关于在Win 32项目中将项目添加到组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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