Click here to Skip to main content
15,916,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Use of CStringArray Pin
CodingLover7-Jan-08 14:46
CodingLover7-Jan-08 14:46 
GeneralCFile Pin
kk.tvm6-Jan-08 21:38
kk.tvm6-Jan-08 21:38 
GeneralRe: CFile Pin
CPallini6-Jan-08 21:55
mveCPallini6-Jan-08 21:55 
QuestionProblem with CListCtrl::SetItemData [Solved] Pin
fantasy12156-Jan-08 21:31
fantasy12156-Jan-08 21:31 
GeneralRe: Problem with CListCtrl::SetItemData Pin
CPallini6-Jan-08 21:47
mveCPallini6-Jan-08 21:47 
GeneralRe: Problem with CListCtrl::SetItemData Pin
Cedric Moonen6-Jan-08 22:41
Cedric Moonen6-Jan-08 22:41 
GeneralRe: Problem with CListCtrl::SetItemData Pin
CPallini6-Jan-08 23:01
mveCPallini6-Jan-08 23:01 
GeneralRe: Problem with CListCtrl::SetItemData Pin
Member 7549607-Jan-08 3:54
Member 7549607-Jan-08 3:54 
Cedric Moonen wrote:
1) have data be a member of the class. But then, that doesn't make a lot of sense in the current scenario (why would you need to store it in the data pointer of the list control then ?)


To separate the order of the items in the control from that of the data in the control class. The control may display the items in numerous ways (alphabetical, numerical, ascending, descending, etc.) The data may not be ordered that way or convienient to do so. Nor does the data need to be a part of the list control class. It may be passed into the list control class to be acted upon but not reordered.

It mostly saves constantly looking up the item data.

However, I'm not sure if the CListCtrl item data value is guaranteed to be large enough to hold a pointer for all platforms.

YMMV
GeneralRe: Problem with CListCtrl::SetItemData Pin
fantasy12157-Jan-08 13:58
fantasy12157-Jan-08 13:58 
GeneralNeed windows login information Pin
sujtha6-Jan-08 19:50
sujtha6-Jan-08 19:50 
GeneralRe: Need windows login information Pin
David Crow7-Jan-08 3:31
David Crow7-Jan-08 3:31 
GeneralRe: Need windows login information Pin
Mark Salsbery7-Jan-08 6:43
Mark Salsbery7-Jan-08 6:43 
GeneralStrange operator new in MSDN sample code Pin
Maxwell Chen6-Jan-08 18:48
Maxwell Chen6-Jan-08 18:48 
GeneralRe: Strange operator new in MSDN sample code Pin
CPallini6-Jan-08 21:28
mveCPallini6-Jan-08 21:28 
GeneralRe: Strange operator new in MSDN sample code Pin
Maxwell Chen6-Jan-08 21:41
Maxwell Chen6-Jan-08 21:41 
GeneralRe: Strange operator new in MSDN sample code Pin
CPallini6-Jan-08 21:50
mveCPallini6-Jan-08 21:50 
GeneralRe: Strange operator new in MSDN sample code Pin
Matthew Faithfull6-Jan-08 23:45
Matthew Faithfull6-Jan-08 23:45 
GeneralRe: Strange operator new in MSDN sample code Pin
Maxwell Chen7-Jan-08 0:39
Maxwell Chen7-Jan-08 0:39 
GeneralRe: Strange operator new in MSDN sample code Pin
Matthew Faithfull7-Jan-08 0:55
Matthew Faithfull7-Jan-08 0:55 
GeneralRe: Strange operator new in MSDN sample code Pin
Maxwell Chen7-Jan-08 1:12
Maxwell Chen7-Jan-08 1:12 
GeneralRe: Strange operator new in MSDN sample code Pin
Matthew Faithfull7-Jan-08 1:36
Matthew Faithfull7-Jan-08 1:36 
GeneralRe: Strange operator new in MSDN sample code Pin
Member 7549607-Jan-08 5:00
Member 7549607-Jan-08 5:00 
GeneralRe: Strange operator new in MSDN sample code Pin
Maxwell Chen7-Jan-08 6:19
Maxwell Chen7-Jan-08 6:19 
GeneralCStatusBar Pin
vethathiri6-Jan-08 18:41
vethathiri6-Jan-08 18:41 
GeneralRe: CStatusBar Pin
Rajesh R Subramanian6-Jan-08 20:30
professionalRajesh R Subramanian6-Jan-08 20:30 

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.