Click here to Skip to main content
15,887,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionListView_SortItems question Pin
Tom Wright15-Sep-05 8:29
Tom Wright15-Sep-05 8:29 
NewsRe: ListView_SortItems question Pin
ClockDivider15-Sep-05 9:11
ClockDivider15-Sep-05 9:11 
GeneralRe: ListView_SortItems question Pin
Tom Wright15-Sep-05 10:06
Tom Wright15-Sep-05 10:06 
GeneralRe: ListView_SortItems question Pin
ClockDivider15-Sep-05 10:40
ClockDivider15-Sep-05 10:40 
GeneralRe: ListView_SortItems question Pin
Tom Wright15-Sep-05 11:30
Tom Wright15-Sep-05 11:30 
GeneralRe: ListView_SortItems question Pin
ClockDivider15-Sep-05 12:14
ClockDivider15-Sep-05 12:14 
GeneralRe: ListView_SortItems question Pin
Tom Wright15-Sep-05 12:34
Tom Wright15-Sep-05 12:34 
QuestionRe: ListView_SortItems question Pin
ClockDivider15-Sep-05 13:49
ClockDivider15-Sep-05 13:49 
The prob is this in:

ListView_GetItemText(lpNmlv->hdr.hwndFrom, lParam2, lParamSort, szBuf2, sizeof(szBuf2));

the parameter lParamsort is wrong here, it should define the column (lpNmlv->iSubItem).

AND: Do you to set the LPARAM value when inserting your item?

Here is an excerpt from .NET help: "The lParam1 parameter is the 32-bit value associated with the first item being compared, and the lParam2 parameter is the value associated with the second item. These are the values specified in the lParam member of the items’ LVITEM structure when they were inserted into the list."

I hade precisely the same problems as you, now that I assured being the item.lPram member valid and changing the wrong parameter value to the item.iSubitem it works...

Hope it helps now?...
GeneralRe: ListView_SortItems question Pin
Graham Bradshaw15-Sep-05 13:43
Graham Bradshaw15-Sep-05 13:43 
GeneralRe: ListView_SortItems question Pin
David Crow15-Sep-05 16:55
David Crow15-Sep-05 16:55 
QuestionCopy a directory Pin
anderslundsgard15-Sep-05 8:12
anderslundsgard15-Sep-05 8:12 
AnswerRe: Copy a directory Pin
Ravi Bhavnani15-Sep-05 8:57
professionalRavi Bhavnani15-Sep-05 8:57 
AnswerRe: Copy a directory Pin
ThatsAlok15-Sep-05 17:51
ThatsAlok15-Sep-05 17:51 
QuestionAdding Date Time Picker to List Control Pin
ExtraLean15-Sep-05 8:08
ExtraLean15-Sep-05 8:08 
QuestionChange CRichEditCtrl CFE_LINK color Pin
cbusgut15-Sep-05 6:49
cbusgut15-Sep-05 6:49 
Questionc++ and canonical xml Pin
Imre Koszo15-Sep-05 5:59
Imre Koszo15-Sep-05 5:59 
AnswerRe: c++ and canonical xml Pin
David Crow15-Sep-05 6:29
David Crow15-Sep-05 6:29 
GeneralRe: c++ and canonical xml Pin
Imre Koszo15-Sep-05 22:31
Imre Koszo15-Sep-05 22:31 
GeneralRe: c++ and canonical xml Pin
David Crow16-Sep-05 2:01
David Crow16-Sep-05 2:01 
QuestionC++/Java Codes for RHPOP3Connect Pin
codedigger2215-Sep-05 4:55
codedigger2215-Sep-05 4:55 
Questionwhat about x = x++; ? Pin
pesho293215-Sep-05 4:55
pesho293215-Sep-05 4:55 
AnswerRe: what about x = x++; ? Pin
Chris Losinger15-Sep-05 5:35
professionalChris Losinger15-Sep-05 5:35 
GeneralRe: what about x = x++; ? Pin
Anonymous15-Sep-05 6:32
Anonymous15-Sep-05 6:32 
GeneralRe: what about x = x++; ? Pin
Chris Losinger15-Sep-05 6:52
professionalChris Losinger15-Sep-05 6:52 
AnswerRe: what about x = x++; ? Pin
David Crow15-Sep-05 6:37
David Crow15-Sep-05 6:37 

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.