Changeset 24 in dev for ProjectEditor/ProjectControl.cpp
- Timestamp:
- Dec 30, 2006, 10:18:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ProjectEditor/ProjectControl.cpp
r3 r24 137 137 //ResetScrollbarが再描画時に呼び出されるので、再描画する 138 138 WndNum=GetWndNum(hChild); 139 InvalidateRect(MdiInfo[WndNum].p mti->hEdit,NULL,0);140 UpdateWindow(MdiInfo[WndNum].p mti->hEdit);139 InvalidateRect(MdiInfo[WndNum].pMdiTextEdit->hEdit,NULL,0); 140 UpdateWindow(MdiInfo[WndNum].pMdiTextEdit->hEdit); 141 141 TextEdit_SelectOneLine(WndNum,pobj_ClassTreeView->pProcInfo[i].code_pos,TRUE); 142 142 … … 1491 1491 1492 1492 //ResetScrollbarが再描画時に呼び出されるので、再描画する 1493 InvalidateRect(MdiInfo[WndNum].p mti->hEdit,NULL,0);1494 UpdateWindow(MdiInfo[WndNum].p mti->hEdit);1493 InvalidateRect(MdiInfo[WndNum].pMdiTextEdit->hEdit,NULL,0); 1494 UpdateWindow(MdiInfo[WndNum].pMdiTextEdit->hEdit); 1495 1495 1496 1496 if(temp2[i2]=='\0') goto EndToSetWorkFile; … … 1520 1520 si.fMask=SIF_POS; 1521 1521 si.nPos=pos.x; 1522 SetScrollInfo(MdiInfo[WndNum].p mti->hEdit,SB_HORZ,&si,1);1522 SetScrollInfo(MdiInfo[WndNum].pMdiTextEdit->hEdit,SB_HORZ,&si,1); 1523 1523 si.nPos=pos.y; 1524 SetScrollInfo(MdiInfo[WndNum].p mti->hEdit,SB_VERT,&si,1);1524 SetScrollInfo(MdiInfo[WndNum].pMdiTextEdit->hEdit,SB_VERT,&si,1); 1525 1525 1526 1526 if(temp2[i2]=='\0') goto EndToSetWorkFile; … … 1802 1802 sw=0; 1803 1803 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum].DocType)){ 1804 if( MdiInfo[WndNum].pmti->bModify){1804 if( MdiInfo[WndNum].pMdiTextEdit->IsModified() ){ 1805 1805 for(i=0;i<ProjectInfo.pobj_DBFileInfo->iNum;i++){ 1806 1806 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); … … 1859 1859 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 1860 1860 if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){ 1861 MdiInfo[WndNum].pmti->bModify=0; 1861 1862 //変更フラグをオフにする 1863 MdiInfo[WndNum].pMdiTextEdit->UnModify(); 1864 1862 1865 SendMessage(hCloseChild,WM_CLOSE,0,0); 1863 1866 break; … … 1993 1996 si.cbSize=sizeof(SCROLLINFO); 1994 1997 si.fMask=SIF_POS; 1995 GetScrollInfo(MdiInfo[WndNum].p mti->hEdit,SB_HORZ,&si);1998 GetScrollInfo(MdiInfo[WndNum].pMdiTextEdit->hEdit,SB_HORZ,&si); 1996 1999 pos.x=si.nPos; 1997 GetScrollInfo(MdiInfo[WndNum].p mti->hEdit,SB_VERT,&si);2000 GetScrollInfo(MdiInfo[WndNum].pMdiTextEdit->hEdit,SB_VERT,&si); 1998 2001 pos.y=si.nPos; 1999 2002 … … 2102 2105 WndNum=GetWndNum(hChild); 2103 2106 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum].DocType)){ 2104 if( MdiInfo[WndNum].pmti->bModify){2107 if( MdiInfo[WndNum].pMdiTextEdit->IsModified() ){ 2105 2108 for(i=0;i<ProjectInfo.pobj_DBFileInfo->iNum;i++){ 2106 2109 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary);
Note:
See TracChangeset
for help on using the changeset viewer.