Click here to Skip to main content
15,926,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I'm This Far Now Pin
AlexO18-Feb-03 8:13
AlexO18-Feb-03 8:13 
GeneralRe: I'm This Far Now Pin
will138318-Feb-03 8:33
will138318-Feb-03 8:33 
GeneralRe: I'm This Far Now Pin
Alvaro Mendez18-Feb-03 8:50
Alvaro Mendez18-Feb-03 8:50 
GeneralRe: I'm This Far Now Pin
AlexO18-Feb-03 9:02
AlexO18-Feb-03 9:02 
GeneralRe: I'm This Far Now Pin
Alvaro Mendez18-Feb-03 9:36
Alvaro Mendez18-Feb-03 9:36 
GeneralRe: I'm This Far Now Pin
will138318-Feb-03 9:48
will138318-Feb-03 9:48 
GeneralRe: I'm This Far Now Pin
AlexO18-Feb-03 9:59
AlexO18-Feb-03 9:59 
GeneralRe: I'm This Far Now Pin
will138318-Feb-03 10:05
will138318-Feb-03 10:05 
Here's where I initialize the ITEMINFO. I do this for every item in the list that is to be shown in my ListView.

//
// Allocate a new ITEMINFO structure and initialize it with information
// about the item.
//
ITEMINFO* pItem;
try {
pItem = new ITEMINFO;
}
catch (CMemoryException* e) {
e->Delete ();
return FALSE;
}

pItem->strFileName = fileName;
pItem->nFileSizeLow = fileSize / 1024; // in KB
pItem->ftLastWriteTime = fileAccessTime;

//
// Add the item to the list view.
//
LV_ITEM lvi;
lvi.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_PARAM;
lvi.iItem = nIndex;
lvi.iSubItem = 0;
lvi.iImage = 0;
lvi.pszText = LPSTR_TEXTCALLBACK;
lvi.lParam = (LPARAM) pItem;

if (GetListCtrl ().InsertItem (&lvi) == -1)
return FALSE;
// now add the file data text
GetListCtrl().SetItemText(nIndex,3,(LPCSTR) fileDataType);



Dan Willis
GeneralRe: I'm This Far Now Pin
will138318-Feb-03 10:08
will138318-Feb-03 10:08 
GeneralTemp directory Pin
-Dy18-Feb-03 2:07
-Dy18-Feb-03 2:07 
GeneralRe: Temp directory Pin
Hans Ruck18-Feb-03 2:42
Hans Ruck18-Feb-03 2:42 
GeneralRe: Temp directory Pin
HENDRIK R18-Feb-03 3:37
HENDRIK R18-Feb-03 3:37 
GeneralRe: Temp directory Pin
-Dy18-Feb-03 4:04
-Dy18-Feb-03 4:04 
GeneralRe: Temp directory Pin
Joel Lucsy18-Feb-03 4:17
Joel Lucsy18-Feb-03 4:17 
GeneralQuestion about __FUNCTION__ precompile directive. Pin
George218-Feb-03 2:01
George218-Feb-03 2:01 
GeneralRe: Question about __FUNCTION__ precompile directive. Pin
AlexO18-Feb-03 2:49
AlexO18-Feb-03 2:49 
GeneralRe: Question about __FUNCTION__ precompile directive. Pin
George218-Feb-03 2:53
George218-Feb-03 2:53 
GeneralRe: Question about __FUNCTION__ precompile directive. Pin
AlexO18-Feb-03 3:25
AlexO18-Feb-03 3:25 
GeneralRe: Question about __FUNCTION__ precompile directive. Pin
George218-Feb-03 14:53
George218-Feb-03 14:53 
GeneralProblem with Certificates ....cryptography ...plz help Pin
Dimitri Denamany17-Feb-03 23:51
sussDimitri Denamany17-Feb-03 23:51 
Generalformatting output in control box Pin
emrosa17-Feb-03 23:46
emrosa17-Feb-03 23:46 
GeneralRe: formatting output in control box Pin
HENDRIK R18-Feb-03 0:40
HENDRIK R18-Feb-03 0:40 
GeneralRe: formatting output in control box Pin
jhwurmbach18-Feb-03 2:41
jhwurmbach18-Feb-03 2:41 
GeneralCDC & Blitblt Pin
vijayaramaraju17-Feb-03 23:30
vijayaramaraju17-Feb-03 23:30 
GeneralRe: CDC & Blitblt Pin
Pavel Krupets17-Feb-03 23:41
Pavel Krupets17-Feb-03 23:41 

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.