Changeset 625 in dev for trunk/ab5.0/abdev/abdev/src/ProjectManager/ProjectManager.cpp
- Timestamp:
- May 27, 2008, 9:17:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/src/ProjectManager/ProjectManager.cpp
r624 r625 267 267 void Project::Save() 268 268 { 269 extern MDIINFO MdiInfo[MAX_WNDNUM];270 269 int i,i2,i3,WndNum; 271 270 char temporary[MAX_PATH],buffer[32767]; … … 284 283 for(i=0;i<this->pobj_DBFileInfo->iNum;i++){ 285 284 this->pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 286 if(lstrcmpi(MdiInfo[WndNum].path ,temporary)==0){285 if(lstrcmpi(MdiInfo[WndNum].path.c_str(),temporary)==0){ 287 286 SaveDocument(hChild,NULL); 288 287 break; … … 297 296 lstrcpy(temporary,resourceItem.filepath.c_str()); 298 297 lstrcpy( temporary, this->GetWorkDir().GetFullPath( temporary ).c_str() ); 299 if(lstrcmpi(MdiInfo[WndNum].path ,temporary)==0){298 if(lstrcmpi(MdiInfo[WndNum].path.c_str(),temporary)==0){ 300 299 SaveDocument(hChild,NULL); 301 300 break; … … 533 532 { 534 533 extern HANDLE hHeap; 535 extern MDIINFO MdiInfo[MAX_WNDNUM];536 534 int i,WndNum; 537 535 HWND hChild,hCloseChild; … … 553 551 for(i=0;i<this->pobj_DBFileInfo->iNum;i++){ 554 552 this->pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 555 if(lstrcmpi(MdiInfo[WndNum].path ,temporary)==0){553 if(lstrcmpi(MdiInfo[WndNum].path.c_str(),temporary)==0){ 556 554 557 555 //変更フラグをオフにする … … 575 573 else if(MdiInfo[WndNum].DocType==WNDTYPE_MENU){ 576 574 for(i=0;i<this->NumberOfMenu;i++){ 577 if(lstrcmp(MdiInfo[WndNum].path,this->pMenuInfo[i].IdName)==0){ 575 if( MdiInfo[WndNum].path == this->pMenuInfo[i].IdName ) 576 { 578 577 SendMessage(hCloseChild,WM_CLOSE,0,0); 579 578 break; … … 585 584 lstrcpy(temporary,this->resourceManager.iconResources[i].filepath.c_str()); 586 585 lstrcpy( temporary, this->GetWorkDir().GetFullPath( temporary ).c_str() ); 587 if(lstrcmpi(MdiInfo[WndNum].path ,temporary)==0){586 if(lstrcmpi(MdiInfo[WndNum].path.c_str(),temporary)==0){ 588 587 SendMessage(hCloseChild,WM_CLOSE,0,0); 589 588 break; … … 602 601 BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, windowInfos ) 603 602 { 604 HeapDefaultFree(pWindowInfo->CallBackName);605 HeapDefaultFree(pWindowInfo->filepath);606 607 603 //子ウィンドウのメモリを解放 608 604 BOOST_FOREACH( ActiveBasic::PM::ChildWindowInfo *pChildWindowInfo, pWindowInfo->childWindowInfos )
Note:
See TracChangeset
for help on using the changeset viewer.