Ignore:
Timestamp:
Jun 2, 2008, 11:50:24 PM (16 years ago)
Author:
dai_9181
Message:

MDIINFO構造体をリファクタリング。

File:
1 edited

Legend:

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

    r625 r629  
    4444        else{
    4545            if(IsWindow(hChild)){
    46                 if(MdiInfo[GetWndNum(hChild)].DocType==WNDTYPE_BASIC){
     46                if(MdiInfo[GetWndNum(hChild)]->DocType==WNDTYPE_BASIC){
    4747                    //有効(Basicプログラムファイルを開いているとき)
    4848                    bEnableDocument=1;
     
    5252
    5353        if(IsWindow(hChild)){
    54             if(MdiInfo[GetWndNum(hChild)].DocType==WNDTYPE_BASIC){
     54            if(MdiInfo[GetWndNum(hChild)]->DocType==WNDTYPE_BASIC){
    5555                //ブレークポイント有効(Basicプログラムファイルを開いているとき)
    5656                bBreakPoint=1;
     
    251251
    252252        char temporary[MAX_PATH];
    253         sprintf(temporary,"\"%s\",%d",MdiInfo[WndNum].path.c_str(),MdiInfo[WndNum].pMdiTextEdit->StartCaretPos.y);
     253        sprintf(temporary,"\"%s\",%d",MdiInfo[WndNum]->path.c_str(),MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y);
    254254
    255255        char temp2[MAX_PATH];
     
    429429    if(WndNum==-1) return;
    430430
    431     if( !Jenga::Common::Path( MdiInfo[WndNum].path ).IsExistFile() )
     431    if( !Jenga::Common::Path( MdiInfo[WndNum]->path ).IsExistFile() )
    432432    {
    433433        return;
     
    436436    int i,i2,sw=0;
    437437    for(i=0;i<num;i++){
    438         if(lstrcmpi(MdiInfo[WndNum].path.c_str(),ppItem[i]->lpszFileName)==0){
     438        if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),ppItem[i]->lpszFileName)==0){
    439439            for(i2=0;i2<ppItem[i]->num;i2++){
    440                 if(MdiInfo[WndNum].pMdiTextEdit->StartCaretPos.y==ppItem[i]->piLine[i2]){
     440                if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==ppItem[i]->piLine[i2]){
    441441                    sw=1;
    442442                    break;
     
    449449    if(sw==0){
    450450        //ブレークポイントを追加
    451         insert(MdiInfo[WndNum].path.c_str(),MdiInfo[WndNum].pMdiTextEdit->StartCaretPos.y);
     451        insert(MdiInfo[WndNum]->path.c_str(),MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y);
    452452    }
    453453    else{
    454454        //ブレークポイントを削除
    455         remove(MdiInfo[WndNum].path.c_str(),MdiInfo[WndNum].pMdiTextEdit->StartCaretPos.y);
     455        remove(MdiInfo[WndNum]->path.c_str(),MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y);
    456456    }
    457457
     
    464464
    465465    //エディタを再描画
    466     InvalidateRect(MdiInfo[WndNum].pMdiTextEdit->hEdit,NULL,0);
     466    InvalidateRect(MdiInfo[WndNum]->pMdiTextEdit->hEdit,NULL,0);
    467467}
    468468void CDBBreakPoint::SaveToTempFile(void){
Note: See TracChangeset for help on using the changeset viewer.