Click here to Skip to main content
16,010,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp with OnKillFocus Pin
John Cruz26-Feb-02 19:39
John Cruz26-Feb-02 19:39 
GeneralRe: Help with OnKillFocus Pin
Derek Waters26-Feb-02 20:03
Derek Waters26-Feb-02 20:03 
GeneralRe: Help with OnKillFocus Pin
John Cruz26-Feb-02 20:00
John Cruz26-Feb-02 20:00 
GeneralRe: Help with OnKillFocus Pin
Joaquín M López Muñoz26-Feb-02 20:00
Joaquín M López Muñoz26-Feb-02 20:00 
GeneralNeed help with sychronizing list control datas in different windows Pin
David Z26-Feb-02 17:50
David Z26-Feb-02 17:50 
GeneralRe: Need help with sychronizing list control datas in different windows Pin
Derek Waters26-Feb-02 18:48
Derek Waters26-Feb-02 18:48 
GeneralRe: Need help with sychronizing list control datas in different windows Pin
David Z26-Feb-02 20:58
David Z26-Feb-02 20:58 
GeneralRe: Need help with sychronizing list control datas in different windows Pin
peterchen27-Feb-02 5:48
peterchen27-Feb-02 5:48 
LVITEM tempdata;

TCHAR textBuf[1024] = { 0 }; // unless your strings may be longer...
// specify which item to copy:
tempdata.iItem = <index of="" item="">;
tempdata.iSubItem = 0;

// specify which data to copy:
tempdata.mask = LVIF_IMAGE | LVIF_INDENT | LVIF_PARAM | LVIF_STATE | LVIF_TEXT;
tempdata.stateMask = -1;
tempdata.pszText = textBuf;
tempdata.cchTextMax = 1023;
CopiedList->GetItem(&tempdata);
int insertIdx = m_SortedList.InsertItem(&tempdata); // idx where item was isnerted

// also, you would need to copy sub item text manually...
for(colIdx=1 to columns) {
CString text = CopiedList->GetItemText( <index of="" item="">, colIdx);
m_SortedList.SetItemText(insertIdx, colIdx, text);
}

--------------

completely different approach:
probably it's to late to change now, but I'd used two virtual list controls for this
Instead of feeding the list control, it asks you what to display when something is to be displayed.
(However, you would need to sort the stuff yourself)


Peter
GeneralRe: Need help with sychronizing list control datas in different windows Pin
David Z27-Feb-02 10:46
David Z27-Feb-02 10:46 
GeneralFinding Child Windows Pin
Alan Blakely26-Feb-02 16:20
Alan Blakely26-Feb-02 16:20 
GeneralRe: Finding Child Windows Pin
Daniel Ferguson26-Feb-02 18:01
Daniel Ferguson26-Feb-02 18:01 
GeneralCWnd destruction Pin
alex.barylski26-Feb-02 13:30
alex.barylski26-Feb-02 13:30 
GeneralRe: CWnd destruction Pin
Jay Beckert26-Feb-02 13:57
Jay Beckert26-Feb-02 13:57 
GeneralRe: CWnd destruction Pin
alex.barylski26-Feb-02 13:57
alex.barylski26-Feb-02 13:57 
GeneralRe: CWnd destruction Pin
Christian Graus26-Feb-02 14:06
protectorChristian Graus26-Feb-02 14:06 
GeneralRe: CWnd destruction Pin
alex.barylski26-Feb-02 15:04
alex.barylski26-Feb-02 15:04 
GeneralRe: CWnd destruction Pin
Christian Graus26-Feb-02 15:02
protectorChristian Graus26-Feb-02 15:02 
GeneralRe: CWnd destruction Pin
Nish Nishant26-Feb-02 15:15
sitebuilderNish Nishant26-Feb-02 15:15 
GeneralRe: CWnd destruction Pin
Nish Nishant26-Feb-02 14:27
sitebuilderNish Nishant26-Feb-02 14:27 
GeneralRe: CWnd destruction Pin
Atul Dharne26-Feb-02 14:53
Atul Dharne26-Feb-02 14:53 
GeneralRe: CWnd destruction Pin
Nish Nishant26-Feb-02 14:57
sitebuilderNish Nishant26-Feb-02 14:57 
GeneralRe: CWnd destruction Pin
alex.barylski26-Feb-02 15:08
alex.barylski26-Feb-02 15:08 
GeneralRe: CWnd destruction Pin
Nish Nishant26-Feb-02 15:14
sitebuilderNish Nishant26-Feb-02 15:14 
GeneralRe: CWnd destruction Pin
alex.barylski26-Feb-02 15:46
alex.barylski26-Feb-02 15:46 
GeneralRe: CWnd destruction Pin
Atul Dharne26-Feb-02 16:28
Atul Dharne26-Feb-02 16:28 

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.