Ignore:
Timestamp:
May 19, 2008, 3:03:33 PM (17 years ago)
Author:
dai_9181
Message:

CHILDINFOの管理方法をstd::vectorに変更。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/abdev/ProjectControl.cpp

    r615 r616  
    10761076        windowInfos.back()->type=WNDTYPE_DEFAULT;
    10771077        windowInfos.back()->filepath="MainWnd.ab";
    1078         windowInfos.back()->NumberOfChildWindows=0;
    10791078        sprintf(temporary,"%s%s.wnd",dir,NewProjectInfo.name);
    10801079
     
    19441943
    19451944        //子ウィンドウのメモリを解放
    1946         for(i2=0;i2<pWindowInfo->NumberOfChildWindows;i2++){
    1947             HeapDefaultFree(pWindowInfo->pChildInfo[i2].IdName);
    1948             HeapDefaultFree(pWindowInfo->pChildInfo[i2].caption);
    1949             if(pWindowInfo->pChildInfo[i2].Control==CT_IMAGEBOX){
     1945        for(i2=0;i2<pWindowInfo->childWindowInfos.size();i2++){
     1946            HeapDefaultFree(pWindowInfo->childWindowInfos[i2]->IdName);
     1947            HeapDefaultFree(pWindowInfo->childWindowInfos[i2]->caption);
     1948            if(pWindowInfo->childWindowInfos[i2]->Control==CT_IMAGEBOX){
    19501949                //イメージ ボックスの場合
    1951                 HeapDefaultFree(pWindowInfo->pChildInfo[i2].ImageCtrlInfo.path);
    1952             }
    1953         }
    1954         HeapDefaultFree(pWindowInfo->pChildInfo);
     1950                HeapDefaultFree(pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path);
     1951            }
     1952
     1953            delete pWindowInfo->childWindowInfos[i2];
     1954        }
     1955        pWindowInfo->childWindowInfos.clear();
    19551956    }
    19561957    ProjectInfo.windowInfos.Clear();
Note: See TracChangeset for help on using the changeset viewer.