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

    r624 r625  
    3939
    4040    NameLen=pWindowInfo->GetName().size();
    41     CallBackNameLen=lstrlen(pWindowInfo->CallBackName);
    42 
    43     buffer = ReadBuffer( projectInfo.GetWorkDir().GetPath() + pWindowInfo->filepath );
     41    CallBackNameLen=pWindowInfo->GetCallbackName().size();
     42
     43    buffer = ReadBuffer( projectInfo.GetWorkDir().GetPath() + pWindowInfo->GetSourceFileName() );
    4444
    4545    *num=0;
     
    117117                i2+=9;
    118118                while(buffer[i2]==' '||buffer[i2]=='\t') i2++;
    119                 if(memicmp(buffer+i2,pWindowInfo->CallBackName,CallBackNameLen)==0&&
     119                if(memicmp(buffer+i2,pWindowInfo->GetCallbackName().c_str(),CallBackNameLen)==0&&
    120120                    (buffer[i2+CallBackNameLen]==' '||buffer[i2+CallBackNameLen]=='\t'||buffer[i2+CallBackNameLen]=='(')){
    121121                    *pbAlways=1;
     
    129129}
    130130void SelectProcedureOfMessageCall(int WndInfoNum,char *ProcedureName,char *Parameter){
    131     extern MDIINFO MdiInfo[MAX_WNDNUM];
    132131    int i,i2,i3,WndNum;
    133132    char temporary[MAX_PATH],*pBuf;
     
    137136    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    138137
    139     hChild=OpenFileWithExtension( projectInfo.GetWorkDir().GetPath() + pWindowInfo->filepath );
     138    hChild=OpenFileWithExtension( projectInfo.GetWorkDir().GetPath() + pWindowInfo->GetSourceFileName() );
    140139    if(!hChild) return;
    141140    WndNum=GetWndNum(hChild);
     
    216215}
    217216BOOL GetEventProcedureNameFromListView(HWND hList,int WndNum,int WndInfoNum,char *EventName,char *Parameter,DWORD dwEventType){
    218     extern MDIINFO MdiInfo[MAX_WNDNUM];
    219217    int i,MaxCount;
    220218    char temporary[MAX_PATH];
     
    394392}
    395393void SetEventToList(HWND hDlg,DWORD dwEventType){
    396     extern MDIINFO MdiInfo[MAX_WNDNUM];
    397394    int i,i2,WndNum;
    398395    HWND hList;
     
    586583}
    587584BOOL CALLBACK DlgEventCode(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    588     extern MDIINFO MdiInfo[MAX_WNDNUM];
    589585    int WndNum,WndInfoNum,i,i2;
    590586    char temporary[MAX_PATH],temp2[MAX_PATH];
Note: See TracChangeset for help on using the changeset viewer.