Click here to Skip to main content
15,936,119 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: list control Pin
David Crow10-Jul-06 7:31
David Crow10-Jul-06 7:31 
GeneralRe: list control Pin
jokefake11-Jul-06 1:57
jokefake11-Jul-06 1:57 
GeneralRe: list control Pin
David Crow11-Jul-06 2:07
David Crow11-Jul-06 2:07 
GeneralRe: list control Pin
jokefake11-Jul-06 2:57
jokefake11-Jul-06 2:57 
GeneralRe: list control Pin
David Crow11-Jul-06 4:52
David Crow11-Jul-06 4:52 
QuestionRe: list control Pin
jokefake11-Jul-06 5:29
jokefake11-Jul-06 5:29 
AnswerRe: list control Pin
David Crow11-Jul-06 5:39
David Crow11-Jul-06 5:39 
GeneralRe: list control Pin
jokefake11-Jul-06 6:01
jokefake11-Jul-06 6:01 
i did sth like this and the result was no good at all

void CTestingDlg::OnUp()
{


int nIndex;
CString strCommand,strCommand2;
nIndex = m_cListCtrl.GetNextItem(-1, LVNI_SELECTED);
ASSERT(-1 != nIndex);
strCommand = m_cListCtrl.GetItemText(nIndex, 0);
strCommand2 = m_cListCtrl.GetItemText(0,nIndex);
m_cListCtrl.DeleteItem(nIndex);
nIndex = m_cListCtrl.InsertItem(nIndex - 1, strCommand);
m_cListCtrl.SetItemText(nIndex-1,1, strCommand2);
}
GeneralRe: list control Pin
David Crow11-Jul-06 6:19
David Crow11-Jul-06 6:19 
QuestionRe: list control Pin
jokefake11-Jul-06 7:02
jokefake11-Jul-06 7:02 
QuestionRe: list control Pin
David Crow11-Jul-06 7:11
David Crow11-Jul-06 7:11 
AnswerRe: list control [modified] Pin
jokefake11-Jul-06 23:50
jokefake11-Jul-06 23:50 
GeneralRe: list control Pin
David Crow12-Jul-06 2:23
David Crow12-Jul-06 2:23 
AnswerRe: list control Pin
FarPointer10-Jul-06 4:23
FarPointer10-Jul-06 4:23 
GeneralRe: list control Pin
jokefake10-Jul-06 5:49
jokefake10-Jul-06 5:49 
QuestionWIN32 and MFC FAQ's Pin
Abhi Lahare10-Jul-06 3:39
Abhi Lahare10-Jul-06 3:39 
AnswerRe: WIN32 and MFC FAQ's Pin
Sarath C10-Jul-06 4:13
Sarath C10-Jul-06 4:13 
AnswerRe: WIN32 and MFC FAQ's Pin
Jun Du10-Jul-06 4:32
Jun Du10-Jul-06 4:32 
AnswerRe: WIN32 and MFC FAQ's Pin
earl10-Jul-06 5:26
earl10-Jul-06 5:26 
AnswerRe: WIN32 and MFC FAQ's Pin
Joe Woodbury10-Jul-06 8:30
professionalJoe Woodbury10-Jul-06 8:30 
Questionpipe to istream Pin
khb10-Jul-06 3:27
khb10-Jul-06 3:27 
QuestionHelp!! Pin
Smith#10-Jul-06 3:05
Smith#10-Jul-06 3:05 
AnswerRe: Help!! Pin
David Crow10-Jul-06 3:07
David Crow10-Jul-06 3:07 
QuestionOT Pin
Smith#10-Jul-06 3:19
Smith#10-Jul-06 3:19 
AnswerRe: OT Pin
David Crow10-Jul-06 3:30
David Crow10-Jul-06 3:30 

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.