Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Custom data iterator Pin
Ryan Binns7-Sep-04 18:15
Ryan Binns7-Sep-04 18:15 
GeneralRe: Custom data iterator Pin
Anonymous8-Sep-04 3:40
Anonymous8-Sep-04 3:40 
GeneralRe: Custom data iterator Pin
Mike Beckerleg7-Sep-04 22:12
Mike Beckerleg7-Sep-04 22:12 
GeneralFile indexing question Pin
kfaday7-Sep-04 11:26
kfaday7-Sep-04 11:26 
GeneralGetting Information From other Devices Pin
S.DARWIN PAUL RAJ7-Sep-04 9:59
S.DARWIN PAUL RAJ7-Sep-04 9:59 
GeneralSocket problem Pin
GGConsulting7-Sep-04 9:49
GGConsulting7-Sep-04 9:49 
GeneralRe: Socket problem Pin
Magnus7657-Sep-04 22:43
Magnus7657-Sep-04 22:43 
GeneralDeletion of Pointers in ClistCtrl Data Pin
Cedar Sith7-Sep-04 8:05
Cedar Sith7-Sep-04 8:05 
I am working on a project where I need to track information for each row in a listctrl.

I have create a class for the tracking.

Then when I load the listctrl I create a new class and store the pointer in the SetItemData of the row.

Example:

SetItemData( GetItemCount() - 1 , ( DWORD ) new CTrackingObject() );

This works great. The problem I have: "How do I delete the class when the ListCtrl is destroyed.

I have tried overloading the DeleteAllItems() but when I call the GetItemCount() method, I get an error.

Any ideas of how I can call the pointers from the listctrl and delete the classes?
GeneralRe: Deletion of Pointers in ClistCtrl Data Pin
David Crow7-Sep-04 8:58
David Crow7-Sep-04 8:58 
GeneralRe: Deletion of Pointers in ClistCtrl Data Pin
Cedar Sith7-Sep-04 9:39
Cedar Sith7-Sep-04 9:39 
GeneralRe: Deletion of Pointers in ClistCtrl Data Pin
David Crow7-Sep-04 9:54
David Crow7-Sep-04 9:54 
GeneralRe: Deletion of Pointers in ClistCtrl Data Pin
Cedar Sith7-Sep-04 10:33
Cedar Sith7-Sep-04 10:33 
GeneralRe: Deletion of Pointers in ClistCtrl Data Pin
Ryan Binns7-Sep-04 18:22
Ryan Binns7-Sep-04 18:22 
GeneralRe: Deletion of Pointers in ClistCtrl Data Pin
Cedar Sith8-Sep-04 9:24
Cedar Sith8-Sep-04 9:24 
GeneralRe: Deletion of Pointers in ClistCtrl Data Pin
Ryan Binns8-Sep-04 13:47
Ryan Binns8-Sep-04 13:47 
GeneralRe: Deletion of Pointers in ClistCtrl Data Pin
Cedar Sith8-Sep-04 14:15
Cedar Sith8-Sep-04 14:15 
GeneralRe: Deletion of Pointers in ClistCtrl Data Pin
Cedar Sith7-Sep-04 12:25
Cedar Sith7-Sep-04 12:25 
GeneralSTL / elegant file input (basic question!) Pin
LiquidEyes7-Sep-04 8:03
LiquidEyes7-Sep-04 8:03 
GeneralRe: STL / elegant file input (basic question!) Pin
Ryan Binns7-Sep-04 18:32
Ryan Binns7-Sep-04 18:32 
GeneralRe: STL / elegant file input (basic question!) Pin
LiquidEyes7-Sep-04 23:03
LiquidEyes7-Sep-04 23:03 
GeneralRe: STL / elegant file input (basic question!) Pin
Kevin McFarlane8-Sep-04 2:14
Kevin McFarlane8-Sep-04 2:14 
GeneralRe: STL / elegant file input (basic question!) Pin
LiquidEyes8-Sep-04 2:21
LiquidEyes8-Sep-04 2:21 
GeneralRe: STL / elegant file input (basic question!) Pin
Kevin McFarlane8-Sep-04 6:43
Kevin McFarlane8-Sep-04 6:43 
GeneralRe: STL / elegant file input (basic question!) Pin
Ryan Binns8-Sep-04 3:55
Ryan Binns8-Sep-04 3:55 
GeneralRe: STL / elegant file input (basic question!) Pin
LiquidEyes8-Sep-04 4:10
LiquidEyes8-Sep-04 4:10 

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.