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

C / C++ / MFC

 
Questionmicro control Pin
samira forooghi15-Sep-05 9:43
samira forooghi15-Sep-05 9:43 
AnswerRe: micro control Pin
Cedric Moonen15-Sep-05 20:44
Cedric Moonen15-Sep-05 20:44 
AnswerRe: micro control Pin
Eytukan15-Sep-05 23:58
Eytukan15-Sep-05 23:58 
Questionport parallel Pin
samira forooghi15-Sep-05 9:41
samira forooghi15-Sep-05 9:41 
AnswerRe: port parallel Pin
karmendra_js15-Sep-05 19:19
karmendra_js15-Sep-05 19:19 
QuestionDiving into GPS development Pin
ClockDivider15-Sep-05 9:19
ClockDivider15-Sep-05 9:19 
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 
I am not that experienced but as far as i know you have to pass a callback funtion as parameter:

i have done it useing mfc so zou have to translate that somewhat, this is the member function i declared as member of my derived listview, this example is used to sort numeric columns:

static int CALLBACK CallbackSortNumeric(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);

Then, when you add a column, you have to pass the adress of the function (PFNLVCOMPARE pCALLBACKSORT):

this->InsertColumn(nCol, cHead,pCALLBACKSORT,iSortMode,iFormat, nWidth,nSubItem);

This way the sorting is managed in CallBackSortNumeric.

Hope it helps...

Martin...

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 
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 

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.