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/ClassTree.cpp

    r619 r625  
    444444}
    445445void SetClassTreeFromOneFile(char *lpszFilePath,int iFileNum){
    446     extern MDIINFO MdiInfo[MAX_WNDNUM];
    447446    int WndNum;
    448447    HWND hChild=GetWindow(hClient,GW_CHILD);
    449448    while(hChild){
    450449        WndNum=GetWndNum(hChild);
    451         if(IS_DOCUMENT_TEXT(MdiInfo[WndNum].DocType)){
    452             if(lstrcmpi(MdiInfo[WndNum].path,lpszFilePath)==0) break;
    453         }
    454         hChild=GetNextWindow(hChild,GW_HWNDNEXT);
     450        if( WndNum != -1 )
     451        {
     452            if(IS_DOCUMENT_TEXT(MdiInfo[WndNum].DocType)){
     453                if(lstrcmpi(MdiInfo[WndNum].path.c_str(),lpszFilePath)==0) break;
     454            }
     455            hChild=GetNextWindow(hChild,GW_HWNDNEXT);
     456        }
    455457    }
    456458
Note: See TracChangeset for help on using the changeset viewer.