GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 06-Apr-2005, 07:01
banur22 banur22 is offline
New Member
 
Join Date: Apr 2005
Posts: 16
banur22 is on a distinguished road

how to create a combo box and list


hello guys
i am new to vc++. i tried to create combobox and list in vc++ using the tutorial................so please help to create a combo box adn how to add code to it after creating it...............please help
  #2  
Old 06-Apr-2005, 12:44
steveh steveh is offline
New Member
 
Join Date: Feb 2005
Posts: 5
steveh is on a distinguished road
You are in luck, especially if you want to use MFC.
Drag a ComboBox into your dialog (or formview). Right click it and add a member variable. Using the member variable with the . operator, you can access all the ComboBox methods with nearly no effort on your part.
ListBox works the same way. In both types you can populate the control by using the AddString or InsertString method. This would be something like m_Combo.AddString.
 
 

Recent GIDBlogStupid Management Policies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:52.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.