Changeset 24 in dev for ProjectEditor/FileOperation.cpp
- Timestamp:
- Dec 30, 2006, 10:18:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ProjectEditor/FileOperation.cpp
r22 r24 423 423 //文字コードを復元 424 424 char *pBuf; 425 pBuf=nkf.RestoreBuffer(MdiInfo[WndNum].p mti->buffer,MdiInfo[WndNum].pmti->iCharCode);425 pBuf=nkf.RestoreBuffer(MdiInfo[WndNum].pMdiTextEdit->buffer,MdiInfo[WndNum].pMdiTextEdit->iCharCode); 426 426 427 427 //改行コードを復元 428 if(MdiInfo[WndNum].p mti->iLfCode==LFCODE_LF) nkf.ToLF(pBuf);429 else if(MdiInfo[WndNum].p mti->iLfCode==LFCODE_CR) nkf.ToCR(pBuf);428 if(MdiInfo[WndNum].pMdiTextEdit->iLfCode==LFCODE_LF) nkf.ToLF(pBuf); 429 else if(MdiInfo[WndNum].pMdiTextEdit->iLfCode==LFCODE_CR) nkf.ToCR(pBuf); 430 430 431 431 … … 446 446 HeapDefaultFree(pBuf); 447 447 448 //変更フラグ に0をセット449 MdiInfo[WndNum].p mti->bModify=0;448 //変更フラグをオフにする 449 MdiInfo[WndNum].pMdiTextEdit->UnModify(); 450 450 } 451 451 else if(MdiInfo[WndNum].DocType==WNDTYPE_ICONEDIT){ … … 496 496 COLORREF color; 497 497 color=pobj_MainTab->GetItemColor(szOldTitle); 498 pobj_MainTab-> delete_item(szOldTitle,0);499 pobj_MainTab-> insert(MdiInfo[WndNum].title,0,color);498 pobj_MainTab->DeleteItem( szOldTitle, false ); 499 pobj_MainTab->InsertItem( MdiInfo[WndNum].title, false, color ); 500 500 } 501 501 else{ 502 pobj_MainTab-> reset_item(szOldTitle,MdiInfo[WndNum].title);502 pobj_MainTab->RenameItem( szOldTitle, MdiInfo[WndNum].title ); 503 503 } 504 504
Note:
See TracChangeset
for help on using the changeset viewer.