Click here to Skip to main content
15,924,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with pTreectrl->Create(...); Pin
Antti Keskinen3-Dec-03 5:28
Antti Keskinen3-Dec-03 5:28 
GeneralRe: Problem with pTreectrl->Create(...); Pin
bilas3-Dec-03 10:11
bilas3-Dec-03 10:11 
GeneralGetting the Current Application Path Pin
harinat3-Dec-03 2:06
harinat3-Dec-03 2:06 
GeneralRe: Getting the Current Application Path Pin
Antti Keskinen3-Dec-03 2:21
Antti Keskinen3-Dec-03 2:21 
GeneralRe: Getting the Current Application Path Pin
David Crow3-Dec-03 3:14
David Crow3-Dec-03 3:14 
GeneralRe: Getting the Current Application Path Pin
valikac3-Dec-03 6:28
valikac3-Dec-03 6:28 
GeneralRe: Getting the Current Application Path Pin
Michael Dunn3-Dec-03 13:04
sitebuilderMichael Dunn3-Dec-03 13:04 
GeneralProblem w/ CListCtrl::SortItems Pin
De Nardis Andrea3-Dec-03 1:16
De Nardis Andrea3-Dec-03 1:16 
Did anyone experience any problems using CListCtrl::SortItems?
I take this code from MSDN for the sorting callback function but it does not work.

// Sort the item in reverse alphabetical order.<br />
static int CALLBACK <br />
MyCompareProc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)<br />
{<br />
   // lParamSort contains a pointer to the list view control.<br />
   CListCtrl* pListCtrl = (CListCtrl*) lParamSort;<br />
   CString    strItem1 = pListCtrl->GetItemText(lParam1, 0);<br />
   CString    strItem2 = pListCtrl->GetItemText(lParam2, 0);<br />
<br />
   return strcmp(strItem2, strItem1);<br />
}


The result of this code when I apply to my list is that MyCompareProc is called exactly as many times as the item number but this is clearly not sufficient for a complet alphabetical order!!! Thus the order is wrong.
Please help me!!!Cry | :((
Regards,
Andrea
GeneralRe: Problem w/ CListCtrl::SortItems Pin
David Crow3-Dec-03 3:26
David Crow3-Dec-03 3:26 
GeneralPopup menus Pin
chadell3-Dec-03 1:16
chadell3-Dec-03 1:16 
GeneralRe: Popup menus Pin
De Nardis Andrea3-Dec-03 1:25
De Nardis Andrea3-Dec-03 1:25 
GeneralRe: Popup menus Pin
viliam3-Dec-03 1:28
viliam3-Dec-03 1:28 
GeneralRe: Popup menus Pin
chadell3-Dec-03 3:36
chadell3-Dec-03 3:36 
GeneralAdobe Audition/Cool Edit Plug-in Pin
Trevor13-Dec-03 1:14
Trevor13-Dec-03 1:14 
GeneralRe: Adobe Audition/Cool Edit Plug-in - PART 2 Pin
Trevor13-Dec-03 1:21
Trevor13-Dec-03 1:21 
GeneralProblem using CADODatabase and CADORecordset classes. Pin
bilas3-Dec-03 1:05
bilas3-Dec-03 1:05 
GeneralRe: Problem using CADODatabase and CADORecordset classes. Pin
RChin3-Dec-03 2:03
RChin3-Dec-03 2:03 
GeneralRe: Problem using CADODatabase and CADORecordset classes. Pin
bilas3-Dec-03 3:25
bilas3-Dec-03 3:25 
GeneralRe: Problem using CADODatabase and CADORecordset classes. Pin
RChin3-Dec-03 5:04
RChin3-Dec-03 5:04 
GeneralRe: Problem using CADODatabase and CADORecordset classes. Pin
bilas3-Dec-03 11:10
bilas3-Dec-03 11:10 
GeneralError with slider index. Pin
vgrigor3-Dec-03 0:40
vgrigor3-Dec-03 0:40 
GeneralRe: Error with slider index. Pin
Antti Keskinen3-Dec-03 1:50
Antti Keskinen3-Dec-03 1:50 
GeneralRe: Error with slider index. Pin
vgrigor3-Dec-03 2:23
vgrigor3-Dec-03 2:23 
GeneralRe: Error with slider index. Pin
Antti Keskinen3-Dec-03 3:25
Antti Keskinen3-Dec-03 3:25 
GeneralOutlook please help Pin
Jump_Around3-Dec-03 0:36
Jump_Around3-Dec-03 0:36 

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.