Ignore:
Timestamp:
May 27, 2008, 9:17:34 PM (16 years ago)
Author:
dai_9181
Message:

・WindowInfoクラスをリファクタリング
・MdiInfoを単純配列からvectorに変更した。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/abdev/src/ProjectManager/ProjectManager.cpp

    r624 r625  
    267267void Project::Save()
    268268{
    269     extern MDIINFO MdiInfo[MAX_WNDNUM];
    270269    int i,i2,i3,WndNum;
    271270    char temporary[MAX_PATH],buffer[32767];
     
    284283                for(i=0;i<this->pobj_DBFileInfo->iNum;i++){
    285284                    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){
    287286                        SaveDocument(hChild,NULL);
    288287                        break;
     
    297296                    lstrcpy(temporary,resourceItem.filepath.c_str());
    298297                    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){
    300299                        SaveDocument(hChild,NULL);
    301300                        break;
     
    533532{
    534533    extern HANDLE hHeap;
    535     extern MDIINFO MdiInfo[MAX_WNDNUM];
    536534    int i,WndNum;
    537535    HWND hChild,hCloseChild;
     
    553551            for(i=0;i<this->pobj_DBFileInfo->iNum;i++){
    554552                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){
    556554
    557555                    //変更フラグをオフにする
     
    575573        else if(MdiInfo[WndNum].DocType==WNDTYPE_MENU){
    576574            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                {
    578577                    SendMessage(hCloseChild,WM_CLOSE,0,0);
    579578                    break;
     
    585584                lstrcpy(temporary,this->resourceManager.iconResources[i].filepath.c_str());
    586585                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){
    588587                    SendMessage(hCloseChild,WM_CLOSE,0,0);
    589588                    break;
     
    602601    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, windowInfos )
    603602    {
    604         HeapDefaultFree(pWindowInfo->CallBackName);
    605         HeapDefaultFree(pWindowInfo->filepath);
    606 
    607603        //子ウィンドウのメモリを解放
    608604        BOOST_FOREACH( ActiveBasic::PM::ChildWindowInfo *pChildWindowInfo, pWindowInfo->childWindowInfos )
Note: See TracChangeset for help on using the changeset viewer.