Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Automated Testing tools for MFC / VC++ application Pin
Joe Woodbury25-Sep-03 18:20
professionalJoe Woodbury25-Sep-03 18:20 
GeneralCD Writing Pin
Member 45104625-Sep-03 8:25
Member 45104625-Sep-03 8:25 
GeneralRe: CD Writing Pin
David Crow25-Sep-03 8:51
David Crow25-Sep-03 8:51 
GeneralRe: CD Writing Pin
Alexander M.,27-Sep-03 12:00
Alexander M.,27-Sep-03 12:00 
GeneralQuestion about CListCtrl Pin
b_girl25-Sep-03 7:19
b_girl25-Sep-03 7:19 
GeneralRe: Question about CListCtrl Pin
Michael Dunn25-Sep-03 7:32
sitebuilderMichael Dunn25-Sep-03 7:32 
GeneralRe: Question about CListCtrl Pin
b_girl25-Sep-03 7:39
b_girl25-Sep-03 7:39 
GeneralRe: Question about CListCtrl Pin
vcplusplus25-Sep-03 7:39
vcplusplus25-Sep-03 7:39 
Check your list control properties. If you have "Sort" equal to "ascending" or "descending," the final position is not necessarily the one where you inserted your text.

Check the value of InsertItem() after inserting the text;

LVITEM lvi = {0};
..
..
..
INT nRow;
// Column 0
nRow = m_elementList.InsertItem(&lvi); // Column 0

// Column 1
lvi.iItem = nRow;
strItem.Format(_T(tempstr));
lvi.iSubItem = 1;
lvi.pszText = (LPTSTR)(LPCTSTR)(strItem);
m_elementList.SetItem(&lvi);

GeneralRe: Question about CListCtrl Pin
b_girl25-Sep-03 7:55
b_girl25-Sep-03 7:55 
GeneralRe: Question about CListCtrl Pin
b_girl25-Sep-03 8:34
b_girl25-Sep-03 8:34 
GeneralRe: Question about CListCtrl Pin
Ravi Bhavnani25-Sep-03 8:38
professionalRavi Bhavnani25-Sep-03 8:38 
GeneralCache draw output Pin
Mathias S.25-Sep-03 6:55
Mathias S.25-Sep-03 6:55 
GeneralRe: Cache draw output Pin
JWood25-Sep-03 8:08
JWood25-Sep-03 8:08 
GeneralRe: Cache draw output Pin
JWood25-Sep-03 8:14
JWood25-Sep-03 8:14 
GeneralBringing an application to the top Pin
MarcoNedwig25-Sep-03 6:37
MarcoNedwig25-Sep-03 6:37 
GeneralRe: Bringing an application to the top Pin
Neville Franks25-Sep-03 7:38
Neville Franks25-Sep-03 7:38 
GeneralRe: Bringing an application to the top Pin
igor196025-Sep-03 8:37
igor196025-Sep-03 8:37 
GeneralRe: Bringing an application to the top Pin
Bo Hunter25-Sep-03 10:12
Bo Hunter25-Sep-03 10:12 
GeneralRe: Bringing an application to the top Pin
igor196025-Sep-03 10:30
igor196025-Sep-03 10:30 
GeneralRe: Bringing an application to the top Pin
igor196025-Sep-03 10:44
igor196025-Sep-03 10:44 
GeneralTree getting grayed Pin
Binayak25-Sep-03 6:29
Binayak25-Sep-03 6:29 
Generalcorruption of comctl32 Pin
JWood25-Sep-03 6:18
JWood25-Sep-03 6:18 
GeneralRe: corruption of comctl32 Pin
Neville Franks25-Sep-03 7:42
Neville Franks25-Sep-03 7:42 
GeneralRe: corruption of comctl32 Pin
JWood25-Sep-03 7:55
JWood25-Sep-03 7:55 
GeneralRe: corruption of comctl32 Pin
JWood25-Sep-03 11:09
JWood25-Sep-03 11:09 

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.