Click here to Skip to main content
16,008,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnChange() Pin
Christian Graus10-Jul-01 13:22
protectorChristian Graus10-Jul-01 13:22 
GeneralRe: OnChange() Pin
RobJones10-Jul-01 13:42
RobJones10-Jul-01 13:42 
GeneralRe: OnChange() Pin
RobJones10-Jul-01 13:47
RobJones10-Jul-01 13:47 
GeneralRe: OnChange() Pin
Christian Graus10-Jul-01 14:14
protectorChristian Graus10-Jul-01 14:14 
GeneralRe: OnChange() Pin
10-Jul-01 16:54
suss10-Jul-01 16:54 
GeneralMultiple resource dlls Pin
Troels_Gram10-Jul-01 12:18
Troels_Gram10-Jul-01 12:18 
GeneralRe: Multiple resource dlls Pin
Ben Burnett10-Jul-01 12:37
Ben Burnett10-Jul-01 12:37 
GeneralBeginner Question: Updating Items in a list control Pin
10-Jul-01 9:07
suss10-Jul-01 9:07 
I try to change the value of a subitem of a item.

I do this :
-------------
int Index;
LVITEM ItemData;
CString strItem;
CString FileName;

Index = m_FindItemListCtrl(FileName);
ItemData.iItem = Index;
ItemData.mask = LVIF_TEXT | LVIF_STATE;
ItemData.iSubItem = 0;
ItemData.stateMask = 0xFFFF; // get all state flags

TransControlList.GetItem(&ItemData);

//Change subitem 3
strItem.Format(Progress);
ItemData.iSubItem = 3;
ItemData.pszText = (LPTSTR)(LPCTSTR)(strItem);
TransControlList.SetItem(&ItemData);
TransControlList.Update(Index);

This doesn't work! what's wrong?

Thanks a lot

GeneralRe: Beginner Question: Updating Items in a list control Pin
Michael Dunn10-Jul-01 10:58
sitebuilderMichael Dunn10-Jul-01 10:58 
GeneralEnumerating sibling windows in MFC Pin
Patrick Hogan10-Jul-01 8:39
Patrick Hogan10-Jul-01 8:39 
GeneralRe: Enumerating sibling windows in MFC Pin
Tomasz Sowinski10-Jul-01 9:32
Tomasz Sowinski10-Jul-01 9:32 
GeneralP Pin
10-Jul-01 8:23
suss10-Jul-01 8:23 
GeneralExcuse me on the missing title:" PropertySheet and PropertyPages," Please URGENT !!! Pin
10-Jul-01 8:29
suss10-Jul-01 8:29 
GeneralRe: P Pin
Carlos Antollini10-Jul-01 8:29
Carlos Antollini10-Jul-01 8:29 
QuestionVirtual message map functions? Pin
Jake Palmer10-Jul-01 8:11
Jake Palmer10-Jul-01 8:11 
AnswerRe: Virtual message map functions? Pin
Tomasz Sowinski10-Jul-01 8:19
Tomasz Sowinski10-Jul-01 8:19 
QuestionAvoid the availability of F8 when loading win2k? Pin
Joan M10-Jul-01 6:27
professionalJoan M10-Jul-01 6:27 
GeneralON_CONTROL_RANGE Pin
10-Jul-01 6:08
suss10-Jul-01 6:08 
GeneralRe: ON_CONTROL_RANGE Pin
Tim Deveaux10-Jul-01 7:08
Tim Deveaux10-Jul-01 7:08 
GeneralNT Service with a GUI Pin
James Spibey10-Jul-01 5:54
James Spibey10-Jul-01 5:54 
GeneralRe: NT Service with a GUI Pin
10-Jul-01 6:28
suss10-Jul-01 6:28 
GeneralRe: NT Service with a GUI Pin
Joan M10-Jul-01 6:33
professionalJoan M10-Jul-01 6:33 
GeneralRe: NT Service with a GUI Pin
Tim Deveaux10-Jul-01 7:21
Tim Deveaux10-Jul-01 7:21 
GeneralRe: NT Service with a GUI Pin
Giles10-Jul-01 8:28
Giles10-Jul-01 8:28 
GeneralRe: NT Service with a GUI Pin
Gennady Oster10-Jul-01 21:47
Gennady Oster10-Jul-01 21:47 

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.