pda 프로그래밍 windows ce 에디트박스 컨트롤
Bit/Win Ce / 2012. 2. 3. 21:24
에디트 박스 멀티라인 컨트롤시
줄바꿈이 가능하게 하려면
void CClientApp::ReceiveData()
{
char temp[1000];
CString strText;
client_s->Receive(temp, sizeof(temp));
UINT nPort;
client_s->GetPeerName(strText, nPort); // 상대방의 IP 주소와 포트 번호 얻음
strText = "[" +strText+ "]" + temp+"\r\n"; //<-------------요부분 "\r\n" 이걸 문장끝에 추가하면 땡!
((CEdit*)m_pMainWnd->GetDlgItem(IDC_CLIST))->ReplaceSel(strText,NULL);
}
//물론 옵션에서 멀티라인 설정을 해주어야 한다는 사실