Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CEdit problem Pin
jhaga5-May-03 9:40
professionaljhaga5-May-03 9:40 
GeneralRe: CEdit problem Pin
Jonas Ullberg5-May-03 9:43
Jonas Ullberg5-May-03 9:43 
GeneralRe: CEdit problem Pin
Jonas Ullberg5-May-03 9:54
Jonas Ullberg5-May-03 9:54 
GeneralRe: CEdit problem Pin
Toni785-May-03 9:53
Toni785-May-03 9:53 
GeneralRe: CEdit problem Pin
jhaga5-May-03 10:15
professionaljhaga5-May-03 10:15 
GeneralRe: CEdit problem Pin
Sean Cundiff5-May-03 16:51
Sean Cundiff5-May-03 16:51 
GeneralList control Help!!! Pin
kyoshiro5-May-03 8:14
kyoshiro5-May-03 8:14 
GeneralRe: List control Help!!! Pin
Joseph Dempsey5-May-03 8:24
Joseph Dempsey5-May-03 8:24 
you can't use SetDlgItemText to set the text in a list control. You need to actually add the string to the list box. If you have an actual CListCtrl object you can call the InsertItem function. If you don't have the CListCtrl object already you can also do a

<br />
CListCtrl* pListCtrl = ( CListCtrl* ) GetDlgItem( IDC_LISTCTRLIDGOESHERE );<br />
pListCtrl->InsertItem( /*Fill This Stuff*/ );<br />


Hope that helps.
Note: A simpler alternative to a ListCtrl object would be to use a list box. When using a list box you can use a similar method to get it if you don't have CListBox object but the functions are a bit simpler to use ( but provide less functionality ). Either way you can't use SetDlgItemText. You can use AddString() for a CListBox.

Cheers!

Joseph Dempsey
joseph_r_dempsey@yahoo.com

"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."
--anonymous
GeneralRe: List control Help!!! Pin
kyoshiro5-May-03 8:41
kyoshiro5-May-03 8:41 
GeneralRe: List control Help!!! Pin
David Crow5-May-03 8:45
David Crow5-May-03 8:45 
GeneralRe: List control Help!!! Pin
User 66585-May-03 8:30
User 66585-May-03 8:30 
GeneralRe: List control Help!!! Pin
kyoshiro5-May-03 8:58
kyoshiro5-May-03 8:58 
GeneralRe: List control Help!!! Pin
User 66585-May-03 10:06
User 66585-May-03 10:06 
GeneralRe: List control Help!!! Pin
kyoshiro5-May-03 22:52
kyoshiro5-May-03 22:52 
GeneralRe: List control Help!!! Pin
User 66585-May-03 23:08
User 66585-May-03 23:08 
GeneralRe: List control Help!!! Pin
kyoshiro7-May-03 8:02
kyoshiro7-May-03 8:02 
GeneralRe: List control Help!!! Pin
kyoshiro7-May-03 22:08
kyoshiro7-May-03 22:08 
GeneralRe: List control Help!!! Pin
User 66588-May-03 1:30
User 66588-May-03 1:30 
GeneralRe: List control Help!!! Pin
kyoshiro8-May-03 4:21
kyoshiro8-May-03 4:21 
GeneralRe: List control Help!!! Pin
User 66588-May-03 5:41
User 66588-May-03 5:41 
GeneralRe: List control Help!!! Pin
kyoshiro8-May-03 7:04
kyoshiro8-May-03 7:04 
GeneralRe: List control Help!!! Pin
User 66588-May-03 10:04
User 66588-May-03 10:04 
GeneralRe: List control Help!!! Pin
kyoshiro8-May-03 10:51
kyoshiro8-May-03 10:51 
GeneralRe: List control Help!!! Pin
User 66588-May-03 12:34
User 66588-May-03 12:34 
GeneralProblem passing lpCommandLine in CreateProcess... Pin
IrishSonic5-May-03 7:16
IrishSonic5-May-03 7:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.