Click here to Skip to main content
16,006,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Brush and Pen Pin
20-Feb-02 0:25
suss20-Feb-02 0:25 
GeneralRe: Brush and Pen Pin
mit1220-Feb-02 0:27
mit1220-Feb-02 0:27 
GeneralRe: Brush and Pen Pin
Christian Graus20-Feb-02 0:05
protectorChristian Graus20-Feb-02 0:05 
QuestionHow to monitor actual downstream bitrate Pin
tobi7419-Feb-02 21:19
tobi7419-Feb-02 21:19 
GeneralSorting report view Pin
19-Feb-02 20:55
suss19-Feb-02 20:55 
GeneralRe: Sorting report view Pin
Mazdak19-Feb-02 21:09
Mazdak19-Feb-02 21:09 
GeneralRe: Sorting report view Pin
19-Feb-02 21:16
suss19-Feb-02 21:16 
GeneralRe: Sorting report view Pin
Mazdak19-Feb-02 22:20
Mazdak19-Feb-02 22:20 
This is sample code in MSDN:

// Sort the item in reverse alphabetical order.

static int CALLBACK 
MyCompareProc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
{
   // lParamSort contains a pointer to the list view control.
   CListCtrl* pListCtrl = (CListCtrl*) lParamSort;
   CString    strItem1 = pListCtrl->GetItemText(lParam1, 0);
   CString    strItem2 = pListCtrl->GetItemText(lParam2, 0);

   return strcmp(strItem2, strItem1);
}

void snip_CListCtrl_SortItems()
{
   // The pointer to my list view control.
   extern CListCtrl* pmyListCtrl;

   // Sort the list view items using my callback procedure.
   pmyListCtrl->SortItems(MyCompareProc, (LPARAM) pmyListCtrl);
}



I also check an example of CALLBACK,I put it after constructor of view class
and it work fine

Mazy

"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here."
Wish You Were Here-Pink Floyd-1975

GeneralRe: Sorting report view Pin
Joaquín M López Muñoz19-Feb-02 22:10
Joaquín M López Muñoz19-Feb-02 22:10 
GeneralRe: Sorting report view Pin
19-Feb-02 22:42
suss19-Feb-02 22:42 
GeneralRe: Sorting report view Pin
Joaquín M López Muñoz19-Feb-02 22:47
Joaquín M López Muñoz19-Feb-02 22:47 
GeneralSolved! Pin
20-Feb-02 0:33
suss20-Feb-02 0:33 
GeneralRe: Solved! Pin
Joaquín M López Muñoz20-Feb-02 2:11
Joaquín M López Muñoz20-Feb-02 2:11 
Questionwhere to get Warning specifier/Warning Number list? Pin
gropex19-Feb-02 20:43
gropex19-Feb-02 20:43 
AnswerRe: where to get Warning specifier/Warning Number list? Pin
Joaquín M López Muñoz19-Feb-02 21:53
Joaquín M López Muñoz19-Feb-02 21:53 
QuestionSomething about TAPI -- call picked up ? Pin
19-Feb-02 20:34
suss19-Feb-02 20:34 
AnswerRe: Something about TAPI -- call picked up ? Pin
Joaquín M López Muñoz19-Feb-02 22:06
Joaquín M López Muñoz19-Feb-02 22:06 
GeneralRe: Something about TAPI -- call picked up ? Pin
manio19-Feb-02 22:12
manio19-Feb-02 22:12 
AnswerRe: Something about TAPI -- call picked up ? Pin
Michael P Butler20-Feb-02 0:08
Michael P Butler20-Feb-02 0:08 
GeneralDeveloping Custom Exception Handler :: C++ Pin
valikac19-Feb-02 19:57
valikac19-Feb-02 19:57 
GeneralRe: Developing Custom Exception Handler :: C++ Pin
Derek Waters19-Feb-02 20:22
Derek Waters19-Feb-02 20:22 
GeneralRe: Developing Custom Exception Handler :: C++ Pin
valikac19-Feb-02 20:44
valikac19-Feb-02 20:44 
GeneralRe: Developing Custom Exception Handler :: C++ Pin
Joaquín M López Muñoz19-Feb-02 20:53
Joaquín M López Muñoz19-Feb-02 20:53 
GeneralRe: Developing Custom Exception Handler :: C++ Pin
valikac20-Feb-02 4:11
valikac20-Feb-02 4:11 
GeneralCFile::Duplicate Pin
Le centriste19-Feb-02 14:43
Le centriste19-Feb-02 14:43 

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.