Changeset 24 in dev for ProjectEditor/Search.cpp
- Timestamp:
- Dec 30, 2006, 10:18:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ProjectEditor/Search.cpp
r3 r24 35 35 hEdit=GetWindow(GetWindow(hClient,GW_CHILD),GW_CHILD); 36 36 37 i=lstrlen(MdiInfo[WndNum].p mti->buffer)+1;37 i=lstrlen(MdiInfo[WndNum].pMdiTextEdit->buffer)+1; 38 38 39 39 buffer=(char *)HeapAlloc(hHeap,0,i); 40 lstrcpy(buffer,MdiInfo[WndNum].p mti->buffer);40 lstrcpy(buffer,MdiInfo[WndNum].pMdiTextEdit->buffer); 41 41 42 42 LineStr=(char *)HeapAlloc(hHeap,0,i+64); … … 106 106 107 107 char *pBuf; 108 pBuf=MdiInfo[WndNum].p mti->buffer;108 pBuf=MdiInfo[WndNum].pMdiTextEdit->buffer; 109 109 110 110 //行の末端位置を取得 … … 146 146 if(WndNum==-1) return 0; 147 147 148 pBuf=MdiInfo[WndNum].p mti->buffer;148 pBuf=MdiInfo[WndNum].pMdiTextEdit->buffer; 149 149 150 150 TextEdit_GetSel(WndNum,&CharRange); … … 241 241 pTemp=(char *)HeapAlloc(hHeap,0,CharRange.cpMax-CharRange.cpMin+1); 242 242 memcpy(pTemp, 243 MdiInfo[WndNum].p mti->buffer+CharRange.cpMin,243 MdiInfo[WndNum].pMdiTextEdit->buffer+CharRange.cpMin, 244 244 CharRange.cpMax-CharRange.cpMin); 245 245 pTemp[CharRange.cpMax-CharRange.cpMin]=0; … … 329 329 pTemp=(char *)HeapAlloc(hHeap,0,CharRange.cpMax-CharRange.cpMin+1); 330 330 memcpy(pTemp, 331 MdiInfo[WndNum].p mti->buffer+CharRange.cpMin,331 MdiInfo[WndNum].pMdiTextEdit->buffer+CharRange.cpMin, 332 332 CharRange.cpMax-CharRange.cpMin); 333 333 pTemp[CharRange.cpMax-CharRange.cpMin]=0; … … 394 394 pTemp=(char *)HeapAlloc(hHeap,0,CharRange.cpMax-CharRange.cpMin+1); 395 395 memcpy(pTemp, 396 MdiInfo[WndNum].p mti->buffer+CharRange.cpMin,396 MdiInfo[WndNum].pMdiTextEdit->buffer+CharRange.cpMin, 397 397 CharRange.cpMax-CharRange.cpMin); 398 398 pTemp[CharRange.cpMax-CharRange.cpMin]=0; … … 468 468 pTemp=(char *)HeapAlloc(hHeap,0,CharRange.cpMax-CharRange.cpMin+1); 469 469 memcpy(pTemp, 470 MdiInfo[WndNum].p mti->buffer+CharRange.cpMin,470 MdiInfo[WndNum].pMdiTextEdit->buffer+CharRange.cpMin, 471 471 CharRange.cpMax-CharRange.cpMin); 472 472 pTemp[CharRange.cpMax-CharRange.cpMin]=0;
Note:
See TracChangeset
for help on using the changeset viewer.