Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat is a class? Pin
Anonymous1-Mar-03 5:18
Anonymous1-Mar-03 5:18 
AnswerRe: What is a class? Pin
pnpfriend1-Mar-03 6:26
pnpfriend1-Mar-03 6:26 
AnswerRe: What is a class? Pin
Renjith Ramachandran1-Mar-03 6:53
Renjith Ramachandran1-Mar-03 6:53 
GeneralRe: What is a class? Pin
Chris Richardson1-Mar-03 20:21
Chris Richardson1-Mar-03 20:21 
AnswerRe: What is a class? Pin
Trollslayer1-Mar-03 9:23
mentorTrollslayer1-Mar-03 9:23 
AnswerRe: What is a class? Pin
Alexo@home1-Mar-03 11:38
Alexo@home1-Mar-03 11:38 
AnswerRe: What is a class? Pin
Joan M2-Mar-03 21:08
professionalJoan M2-Mar-03 21:08 
GeneralCListCtrl::SortItems problem Pin
Wim Jans1-Mar-03 5:14
Wim Jans1-Mar-03 5:14 
I'm trying to mimick the 'arrange icons by...' as seen in explorer in my CListView based app.
I've looked up the method to implement this on msdn and have implemented my sort routine. So far so good...

The problem I have is that in mY sort function (compare function) I always receive the first record (0) of my listview to compare.

Some code snippits to explain:

void CMylistView::OnViewBydescr() <br />
{<br />
<br />
	CListCtrl* m_cListCtrl;<br />
	m_cListCtrl=&GetListCtrl();<br />
	m_cListCtrl->SortItems(SortFunction, (LPARAM)(m_cListCtrl));<br />
}


int CALLBACK CMylistView::SortFunction(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)<br />
{<br />
  CListCtrl* pListCtrl = (CListCtrl*) lParamSort;<br />
  CString    strItem1 = pListCtrl->GetItemText(lParam1, 0);<br />
  CString    strItem2 = pListCtrl->GetItemText(lParam2, 0);<br />
  return strcmp(strItem1, strItem2);<br />
}

GeneralRe: CListCtrl::SortItems problem Pin
Wim Jans1-Mar-03 5:28
Wim Jans1-Mar-03 5:28 
GeneralRe: CListCtrl::SortItems problem Pin
Michael Dunn1-Mar-03 6:17
sitebuilderMichael Dunn1-Mar-03 6:17 
GeneralC# Control in MFC Pin
Anonymous1-Mar-03 5:00
Anonymous1-Mar-03 5:00 
GeneralStrange Compiling error (not MFC) Pin
orcblood1-Mar-03 4:44
orcblood1-Mar-03 4:44 
GeneralRe: Strange Compiling error (not MFC) Pin
orcblood1-Mar-03 4:49
orcblood1-Mar-03 4:49 
GeneralRe: Strange Compiling error (not MFC) Pin
Navin1-Mar-03 10:27
Navin1-Mar-03 10:27 
GeneralStrange MFC Error on Comps Pin
orcblood1-Mar-03 2:39
orcblood1-Mar-03 2:39 
GeneralRe: Strange MFC Error on Comps Pin
Frank Deo1-Mar-03 2:43
Frank Deo1-Mar-03 2:43 
GeneralRe: Strange MFC Error on Comps Pin
orcblood1-Mar-03 2:45
orcblood1-Mar-03 2:45 
GeneralRe: Strange MFC Error on Comps Pin
Frank Deo1-Mar-03 2:48
Frank Deo1-Mar-03 2:48 
GeneralRe: Strange MFC Error on Comps Pin
Gary Kirkham1-Mar-03 2:47
Gary Kirkham1-Mar-03 2:47 
GeneralRe: Strange MFC Error on Comps Pin
orcblood1-Mar-03 2:49
orcblood1-Mar-03 2:49 
GeneralRe: Strange MFC Error on Comps Pin
orcblood1-Mar-03 2:51
orcblood1-Mar-03 2:51 
GeneralRe: Strange MFC Error on Comps Pin
Frank Deo1-Mar-03 3:00
Frank Deo1-Mar-03 3:00 
GeneralRe: Strange MFC Error on Comps Pin
orcblood1-Mar-03 3:09
orcblood1-Mar-03 3:09 
GeneralRe: Strange MFC Error on Comps Pin
Michael Dunn1-Mar-03 6:23
sitebuilderMichael Dunn1-Mar-03 6:23 
Questionadding my program as a service in win2K? Pin
IGeorgeI1-Mar-03 2:26
IGeorgeI1-Mar-03 2:26 

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.