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

C / C++ / MFC

 
QuestionWindows form in C++ Pin
Anka_Ame25-Apr-07 5:46
Anka_Ame25-Apr-07 5:46 
AnswerWrong forum Pin
CPallini25-Apr-07 6:05
mveCPallini25-Apr-07 6:05 
AnswerRe: Windows form in C++ Pin
Hamid_RT25-Apr-07 6:41
Hamid_RT25-Apr-07 6:41 
QuestionConvert VC+ 2003 Project to VC++ 6.0 Pin
JBAK_CP25-Apr-07 4:14
JBAK_CP25-Apr-07 4:14 
AnswerRe: Convert VC+ 2003 Project to VC++ 6.0 Pin
GuyM25-Apr-07 4:35
GuyM25-Apr-07 4:35 
GeneralRe: Convert VC+ 2003 Project to VC++ 6.0 Pin
JBAK_CP25-Apr-07 5:00
JBAK_CP25-Apr-07 5:00 
QuestionBitmap Copying Pin
PsychicSmurf25-Apr-07 4:00
PsychicSmurf25-Apr-07 4:00 
QuestionSorting CListCtrl with LVS_OWNERDATA property? Pin
bosfan25-Apr-07 3:34
bosfan25-Apr-07 3:34 
Hello comunity,
need help to sort a CListCtrl with this LVS_OWNERDATA property!
Without this works fine, ok, now i needed to change to LVS_OWNERDATA
and make sorting function for that, i save all data to an
CObject derived class and push back to an vektor!
Now when i click on some column i have to sort this list, ascending or descending!
But ths fails because the CListCtrl own function check if this is set: LVS_OWNDERDATA!
Here is problem:
_AFXCMN_INLINE BOOL CListCtrl::SortItems(PFNLVCOMPARE pfnCompare, DWORD dwData)
	{ ASSERT(::IsWindow(m_hWnd)); ASSERT((GetStyle() & LVS_OWNERDATA)==0); return (BOOL) ::SendMessage(m_hWnd, LVM_SORTITEMS, dwData, (LPARAM)pfnCompare); }


This is the original function that checks for LVS_OWNERDATA property!
My idea is to use my vector and sort them, and refresh this control with new sorted data from vektor!
Any idea to do this?

thanks for any help!
termal
AnswerRe: Sorting CListCtrl with LVS_OWNERDATA property? Pin
GuyM25-Apr-07 3:39
GuyM25-Apr-07 3:39 
GeneralRe: Sorting CListCtrl with LVS_OWNERDATA property? Pin
bosfan25-Apr-07 4:15
bosfan25-Apr-07 4:15 
QuestionHELP! About CoUninitialize() Pin
kcynic25-Apr-07 3:08
kcynic25-Apr-07 3:08 
AnswerRe: HELP! About CoUninitialize() Pin
Sam_c25-Apr-07 3:15
Sam_c25-Apr-07 3:15 
GeneralRe: HELP! About CoUninitialize() Pin
kcynic25-Apr-07 5:18
kcynic25-Apr-07 5:18 
AnswerRe: HELP! About CoUninitialize() Pin
prasad_som25-Apr-07 3:21
prasad_som25-Apr-07 3:21 
GeneralRe: HELP! About CoUninitialize() Pin
kcynic25-Apr-07 12:16
kcynic25-Apr-07 12:16 
AnswerRe: HELP! About CoUninitialize() Pin
prasad_som26-Apr-07 21:01
prasad_som26-Apr-07 21:01 
QuestionTreeView_GetItem() macro problem Pin
Syamlal S Nair25-Apr-07 2:52
Syamlal S Nair25-Apr-07 2:52 
QuestionRe: TreeView_GetItem() macro problem Pin
prasad_som25-Apr-07 3:07
prasad_som25-Apr-07 3:07 
AnswerRe: TreeView_GetItem() macro problem Pin
Syamlal S Nair25-Apr-07 3:20
Syamlal S Nair25-Apr-07 3:20 
AnswerRe: TreeView_GetItem() macro problem Pin
prasad_som25-Apr-07 3:32
prasad_som25-Apr-07 3:32 
GeneralRe: TreeView_GetItem() macro problem Pin
Syamlal S Nair25-Apr-07 3:38
Syamlal S Nair25-Apr-07 3:38 
GeneralRe: TreeView_GetItem() macro problem Pin
prasad_som25-Apr-07 3:47
prasad_som25-Apr-07 3:47 
GeneralRe: TreeView_GetItem() macro problem Pin
Syamlal S Nair25-Apr-07 3:54
Syamlal S Nair25-Apr-07 3:54 
GeneralRe: TreeView_GetItem() macro problem Pin
Syamlal S Nair25-Apr-07 3:41
Syamlal S Nair25-Apr-07 3:41 
GeneralRe: TreeView_GetItem() macro problem Pin
Syamlal S Nair25-Apr-07 3:42
Syamlal S Nair25-Apr-07 3:42 

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.