두가지 형태의 출력 방법
AddString(); 무조건 맨 마지막에 항목을 추가하는 함수
InsertString(); 인덱스를 지정해서 원하는 위치에 항목을 추가한다.
/* cstrMsg.Format(_T("MsgType:%d_"), SafSpdPacket->MsgType); cstrSMsg.Format(_T("SubMsgType:%d_"), SafSpdPacket->SubMsgType); cstrCycle.Format(_T("CycCnt:%d_"), SafSpdPacket->CycCnt); cstrChDist.Format(_T("SpdCngDist:%d_"), SafSpdPacket->SpdCngDist); cstrCurSafe.Format(_T("CurSafSpd:%d_"), SafSpdPacket->CurSafSpd); cstrNxtSafe.Format(_T("NxtSafSpd:%d_"), SafSpdPacket->NxtSafSpd); cstrCRType.Format(_T("CurRdType:%d_"), SafSpdPacket->CurRdType); cstrNRType.Format(_T("NxtRdType:%d_"), SafSpdPacket->NxtRdType); //cstrRes.Format(_T("Reserved: %d"), SafSpdPacket->Reserved); */ FirstLine.Format(_T("MsgType:[%d],SubMsgType:[%d],CycCnt:[%d],SpdCngDist:[%d]"), (unsigned int)SafSpdPacket->MsgType, (unsigned int)SafSpdPacket->SubMsgType, (unsigned int)SafSpdPacket->CycCnt, (unsigned int)SafSpdPacket->SpdCngDist); SecondLine.Format(_T("CurSafSpd:[%d],NxtSafSpd:[%d],CurRdType:[%d],NxtRdType:[%d]"), (unsigned int)SafSpdPacket->CurSafSpd, (unsigned int)SafSpdPacket->NxtSafSpd, (unsigned int)SafSpdPacket->CurRdType, (unsigned int)SafSpdPacket->NxtRdType); //cstrInfo = cstrMsg + cstrSMsg + cstrCycle + cstrChDist; //cstrInfo2 = cstrCurSafe + cstrNxtSafe + cstrCRType + cstrNRType; m_MessageList = (CListBox*)GetDlgItem(IDC_LIST2); //m_MessageList->AddString(cstrInfo); //m_MessageList->AddString(cstrInfo2); m_MessageList->InsertString(0,FirstLine); m_MessageList->InsertString(1,SecondLine);
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
8 | foobar, ASIO 설정법 | Pjk | 2010.06.02 | 12900 |
7 | 연금술사, The Alchemist. | Pjk | 2010.05.14 | 5279 |
6 | 도스내부명령어 | Pjk | 2009.11.17 | 5914 |
5 | DYNALINUX-SERVER1-part1,2 | Pjk | 2009.09.11 | 4047 |
4 | 백제도, 동학군도 품어안은 ‘붉은 비단’ [1] | Pjk | 2009.09.09 | 1931 |
3 | 여행의 기술 (The)art of travel | Pjk | 2009.09.01 | 4640 |
2 | 신 (Le Souffle des Dieux) [1] | 박종규 | 2009.08.21 | 4288 |
1 | 지식e (가슴으로 읽는 우리시대의 智識) 시즌1 | 박종규 | 2009.08.20 | 4394 |