Click here to Skip to main content
15,891,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Dynamic Product Name - Visual Deployment Project Pin
Albert Holguin16-Mar-11 15:37
professionalAlbert Holguin16-Mar-11 15:37 
AnswerRe: Dynamic Product Name - Visual Deployment Project Pin
Albert Holguin16-Mar-11 15:43
professionalAlbert Holguin16-Mar-11 15:43 
GeneralRe: Dynamic Product Name - Visual Deployment Project Pin
pix_programmer16-Mar-11 18:34
pix_programmer16-Mar-11 18:34 
GeneralRe: Dynamic Product Name - Visual Deployment Project Pin
Albert Holguin17-Mar-11 4:09
professionalAlbert Holguin17-Mar-11 4:09 
QuestionReverse Search in CRichEditCtrl class Pin
Rakesh516-Mar-11 2:07
Rakesh516-Mar-11 2:07 
AnswerRe: Reverse Search in CRichEditCtrl class Pin
Cool_Dev16-Mar-11 3:36
Cool_Dev16-Mar-11 3:36 
AnswerRe: Reverse Search in CRichEditCtrl class Pin
Richard MacCutchan16-Mar-11 3:37
mveRichard MacCutchan16-Mar-11 3:37 
QuestionWant to extract all the datas from a list box Pin
leorex16-Mar-11 0:55
leorex16-Mar-11 0:55 
Hi. I want to be able to extract all the array associated in a listbox-items, but i am failing to find a thing to put in my for loop. the LB_GETCURSEL doesnt seem to be the correct one here... can someone point me the message I should be using?

HWND handle_List = GetDlgItem(hwnd, IDC_LIST_COMPARE);
            count = SendMessage(handle_List, LB_GETCOUNT, 0, 0);
            for (i =0; i<count; i++)
            {
                //part where I am failing
                int index = SendMessage(handle_List, LB_GETCURSEL, 0, 0);
                int data = SendMessage(handle_List, LB_GETITEMDATA, (WPARAM)index, 0);
                MessageBox (hwnd, (char *)data, "The stored data is", MB_OK);
               //the returned string is always "?".
            }
            break;


this is the link for MSDN listbox thing. http://msdn.microsoft.com/en-us/library/bb775146%28v=vs.85%29.aspx[^]

can someone please point me which message i should be using? thank you very much.
btw i am sure the information/array is associated to the object in the listbox
AnswerRe: Want to extract all the datas from a list box Pin
Hans Dietrich16-Mar-11 1:47
mentorHans Dietrich16-Mar-11 1:47 
AnswerRe: Want to extract all the datas from a list box Pin
Richard MacCutchan16-Mar-11 1:54
mveRichard MacCutchan16-Mar-11 1:54 
GeneralRe: Want to extract all the datas from a list box Pin
Albert Holguin16-Mar-11 9:38
professionalAlbert Holguin16-Mar-11 9:38 
GeneralRe: Want to extract all the datas from a list box Pin
Richard MacCutchan16-Mar-11 12:45
mveRichard MacCutchan16-Mar-11 12:45 
GeneralRe: Want to extract all the datas from a list box Pin
Albert Holguin16-Mar-11 13:40
professionalAlbert Holguin16-Mar-11 13:40 
GeneralRe: Want to extract all the datas from a list box Pin
Richard MacCutchan16-Mar-11 13:49
mveRichard MacCutchan16-Mar-11 13:49 
GeneralRe: Want to extract all the datas from a list box Pin
Albert Holguin16-Mar-11 14:33
professionalAlbert Holguin16-Mar-11 14:33 
GeneralRe: Want to extract all the datas from a list box Pin
leorex16-Mar-11 22:47
leorex16-Mar-11 22:47 
GeneralRe: Want to extract all the datas from a list box Pin
Richard MacCutchan16-Mar-11 22:58
mveRichard MacCutchan16-Mar-11 22:58 
GeneralRe: Want to extract all the datas from a list box Pin
leorex16-Mar-11 23:08
leorex16-Mar-11 23:08 
GeneralRe: Want to extract all the datas from a list box Pin
Richard MacCutchan17-Mar-11 1:25
mveRichard MacCutchan17-Mar-11 1:25 
GeneralRe: Want to extract all the datas from a list box Pin
leorex17-Mar-11 22:52
leorex17-Mar-11 22:52 
GeneralRe: Want to extract all the datas from a list box Pin
Richard MacCutchan18-Mar-11 0:41
mveRichard MacCutchan18-Mar-11 0:41 
GeneralRe: Want to extract all the datas from a list box Pin
leorex18-Mar-11 15:50
leorex18-Mar-11 15:50 
GeneralRe: Want to extract all the datas from a list box Pin
leorex16-Mar-11 23:01
leorex16-Mar-11 23:01 
QuestionError "member function already defined or declared" Pin
Miwin Solutions16-Mar-11 0:44
Miwin Solutions16-Mar-11 0:44 
QuestionRe: Error "member function already defined or declared" Pin
Niklas L16-Mar-11 1:58
Niklas L16-Mar-11 1:58 

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.