Click here to Skip to main content
15,893,790 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:05
Stephen Hewitt17-May-07 21:05 
GeneralRe: Debug Assertion Failure Pin
jannathali17-May-07 21:14
jannathali17-May-07 21:14 
GeneralRe: Debug Assertion Failure Pin
cp987617-May-07 21:17
cp987617-May-07 21:17 
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:18
Stephen Hewitt17-May-07 21:18 
GeneralRe: Debug Assertion Failure Pin
jannathali17-May-07 21:24
jannathali17-May-07 21:24 
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:33
Stephen Hewitt17-May-07 21:33 
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:23
Stephen Hewitt17-May-07 21:23 
QuestionSorting Error in CListCtrl Pin
pc_dev17-May-07 20:00
pc_dev17-May-07 20:00 
ClistCtrl has SortItems function that allows us to use an application defined callback function, the problem is that inside that function (MyCompareProc), lParam1 and lParam2 are always same so there is no sorting sice both represent same data.

Here is code from MSDN.

static int CALLBACK
MyCompareProc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
{
// lParamSort contains a pointer to the list view control.
// The lParam of an item is just its index.
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.
CListCtrl* pmyListCtrl;

// Sort the list view items using my callback procedure.
pmyListCtrl->SortItems(MyCompareProc,(LPARAM)myListCtrl);
AnswerRe: Sorting Error in CListCtrl Pin
prasad_som17-May-07 21:21
prasad_som17-May-07 21:21 
GeneralRe: Sorting Error in CListCtrl Pin
pc_dev22-May-07 0:46
pc_dev22-May-07 0:46 
QuestionScrollbar range Pin
Aint17-May-07 16:53
Aint17-May-07 16:53 
AnswerRe: Scrollbar range Pin
Nelek17-May-07 20:31
protectorNelek17-May-07 20:31 
GeneralRe: Scrollbar range Pin
Aint17-May-07 22:08
Aint17-May-07 22:08 
GeneralRe: Scrollbar range Pin
Nelek18-May-07 1:06
protectorNelek18-May-07 1:06 
Question3-dimession image show and processing Pin
gentleguy17-May-07 16:53
gentleguy17-May-07 16:53 
AnswerRe: 3-dimession image show and processing Pin
Hamid_RT17-May-07 19:21
Hamid_RT17-May-07 19:21 
QuestionProgress Bar Range Question Pin
JBAK_CP17-May-07 13:47
JBAK_CP17-May-07 13:47 
AnswerRe: Progress Bar Range Question Pin
PJ Arends17-May-07 16:45
professionalPJ Arends17-May-07 16:45 
AnswerRe: Progress Bar Range Question Pin
Sameerkumar Namdeo17-May-07 17:06
Sameerkumar Namdeo17-May-07 17:06 
Questionput a for( ) inside an if ( ) ? [modified] Pin
Immunity1817-May-07 12:36
Immunity1817-May-07 12:36 
AnswerRe: put a for( ) inside an if ( ) ? Pin
Christian Graus17-May-07 13:26
protectorChristian Graus17-May-07 13:26 
Questionweird call stack problem w/VC 6... Pin
Jesse Evans17-May-07 11:00
Jesse Evans17-May-07 11:00 
AnswerRe: weird call stack problem w/VC 6... Pin
Jonathan [Darka]18-May-07 5:08
professionalJonathan [Darka]18-May-07 5:08 
AnswerRe: weird call stack problem w/VC 6... Pin
cgreathouse18-May-07 5:39
cgreathouse18-May-07 5:39 
GeneralRe: weird call stack problem w/VC 6... Pin
Jesse Evans18-May-07 6:15
Jesse Evans18-May-07 6:15 

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.