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

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

File:
1 edited

Legend:

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

    r625 r629  
    4141    CallBackNameLen=pWindowInfo->GetCallbackName().size();
    4242
    43     buffer = ReadBuffer( projectInfo.GetWorkDir().GetPath() + pWindowInfo->GetSourceFileName() );
     43    buffer = ReadBuffer( projectInfo.GetWorkDir().GetPath() + pWindowInfo->GetSourceFileNameForOldVer( projectInfo.GetWorkDir().GetPath() ) );
    4444
    4545    *num=0;
     
    5050    //メッセージ
    5151    *ppItemEventInfo=(ITEMEVENTINFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,sizeof(ITEMEVENTINFO));
    52     for(i=0,i4=0;;i++){
    53         if(buffer[i]=='\0') break;
    54 
    55         //注釈(複数行)
    56         if(buffer[i]=='/'&&buffer[i+1]=='*'){
    57             i+=2;
    58             while(!(buffer[i]=='*'&&buffer[i+1]=='/')){
    59                 if(buffer[i]=='\0'){
    60                     i--;
    61                     break;
    62                 }
    63                 i++;
    64             }
    65             continue;
    66         }
    67 
    68         if((buffer[i]=='\r'&&buffer[i+1]=='\n'&&buffer[i+2]!='\0')||i==0){
    69             if(buffer[i]=='\r'&&buffer[i+1]=='\n') i2=i+2;
    70             else i2=i;
    71             while(buffer[i2]>='0'&&buffer[i2]<='9') i2++;
    72             while(buffer[i2]==' '||buffer[i2]=='\t') i2++;
    73             if(memicmp(buffer+i2,"Sub",3)==0&&(buffer[i2+3]==' '||buffer[i2+3]=='\t')){
    74                 i2+=4;
     52
     53    if( buffer )
     54    {
     55        for(i=0,i4=0;;i++){
     56            if(buffer[i]=='\0') break;
     57
     58            //注釈(複数行)
     59            if(buffer[i]=='/'&&buffer[i+1]=='*'){
     60                i+=2;
     61                while(!(buffer[i]=='*'&&buffer[i+1]=='/')){
     62                    if(buffer[i]=='\0'){
     63                        i--;
     64                        break;
     65                    }
     66                    i++;
     67                }
     68                continue;
     69            }
     70
     71            if((buffer[i]=='\r'&&buffer[i+1]=='\n'&&buffer[i+2]!='\0')||i==0){
     72                if(buffer[i]=='\r'&&buffer[i+1]=='\n') i2=i+2;
     73                else i2=i;
     74                while(buffer[i2]>='0'&&buffer[i2]<='9') i2++;
    7575                while(buffer[i2]==' '||buffer[i2]=='\t') i2++;
    76                 strncpy(temporary,buffer+i2,NameLen);
    77                 temporary[NameLen]=0;
    78                 if( pWindowInfo->GetName() == temporary && buffer[i2+NameLen] == '_' ){
    79                     for(i2+=NameLen+1,i3=0;;i2++,i3++){
    80                         if(!IsVariableChar(buffer[i2])){
    81                             temporary[i3]=0;
    82                             break;
    83                         }
    84                         temporary[i3]=buffer[i2];
    85                     }
    86                     i6=GetItemMessageInfo(WndInfoNum,temporary,temp2);
    87                     if(i6){
    88                         //アイテムメッセージ(WM_COMMAND、WM_NOTIFY)
    89                         for(i5=0;;i5++){
    90                             if((*ppItemEventInfo)[i5].IdName==0){
    91                                 *ppItemEventInfo=(ITEMEVENTINFO *)HeapReAlloc(hHeap,HEAP_ZERO_MEMORY,*ppItemEventInfo,(i4+2)*sizeof(ITEMEVENTINFO));
    92                                 (*ppItemEventInfo)[i4].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
    93                                 lstrcpy((*ppItemEventInfo)[i4].IdName,temporary);
    94                                 (*ppItemEventInfo)[i4].pEventNames=(char **)HeapAlloc(hHeap,0,1);
    95                                 (*ppItemEventInfo)[i4].ClassID=i6;
    96                                 i4++;
     76                if(memicmp(buffer+i2,"Sub",3)==0&&(buffer[i2+3]==' '||buffer[i2+3]=='\t')){
     77                    i2+=4;
     78                    while(buffer[i2]==' '||buffer[i2]=='\t') i2++;
     79                    strncpy(temporary,buffer+i2,NameLen);
     80                    temporary[NameLen]=0;
     81                    if( pWindowInfo->GetName() == temporary && buffer[i2+NameLen] == '_' ){
     82                        for(i2+=NameLen+1,i3=0;;i2++,i3++){
     83                            if(!IsVariableChar(buffer[i2])){
     84                                temporary[i3]=0;
    9785                                break;
    9886                            }
    99                             if(lstrcmp((*ppItemEventInfo)[i5].IdName,temporary)==0) break;
     87                            temporary[i3]=buffer[i2];
    10088                        }
    101                         (*ppItemEventInfo)[i5].pEventNames=(char **)HeapReAlloc(hHeap,0,(*ppItemEventInfo)[i5].pEventNames,((*ppItemEventInfo)[i5].EventNum+1)*sizeof(char *));
    102                         (*ppItemEventInfo)[i5].pEventNames[(*ppItemEventInfo)[i5].EventNum]=(char *)HeapAlloc(hHeap,0,lstrlen(temp2)+1);
    103                         lstrcpy((*ppItemEventInfo)[i5].pEventNames[(*ppItemEventInfo)[i5].EventNum],temp2);
    104                         (*ppItemEventInfo)[i5].EventNum++;
     89                        i6=GetItemMessageInfo(WndInfoNum,temporary,temp2);
     90                        if(i6){
     91                            //アイテムメッセージ(WM_COMMAND、WM_NOTIFY)
     92                            for(i5=0;;i5++){
     93                                if((*ppItemEventInfo)[i5].IdName==0){
     94                                    *ppItemEventInfo=(ITEMEVENTINFO *)HeapReAlloc(hHeap,HEAP_ZERO_MEMORY,*ppItemEventInfo,(i4+2)*sizeof(ITEMEVENTINFO));
     95                                    (*ppItemEventInfo)[i4].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
     96                                    lstrcpy((*ppItemEventInfo)[i4].IdName,temporary);
     97                                    (*ppItemEventInfo)[i4].pEventNames=(char **)HeapAlloc(hHeap,0,1);
     98                                    (*ppItemEventInfo)[i4].ClassID=i6;
     99                                    i4++;
     100                                    break;
     101                                }
     102                                if(lstrcmp((*ppItemEventInfo)[i5].IdName,temporary)==0) break;
     103                            }
     104                            (*ppItemEventInfo)[i5].pEventNames=(char **)HeapReAlloc(hHeap,0,(*ppItemEventInfo)[i5].pEventNames,((*ppItemEventInfo)[i5].EventNum+1)*sizeof(char *));
     105                            (*ppItemEventInfo)[i5].pEventNames[(*ppItemEventInfo)[i5].EventNum]=(char *)HeapAlloc(hHeap,0,lstrlen(temp2)+1);
     106                            lstrcpy((*ppItemEventInfo)[i5].pEventNames[(*ppItemEventInfo)[i5].EventNum],temp2);
     107                            (*ppItemEventInfo)[i5].EventNum++;
     108                        }
     109                        else if(temporary[0]){
     110                            //一般メッセージ
     111                            ppNames=(char **)HeapReAlloc(hHeap,0,ppNames,(*num+1)*sizeof(char *));
     112                            ppNames[*num]=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
     113                            lstrcpy(ppNames[*num],temporary);
     114                            (*num)++;
     115                        }
    105116                    }
    106                     else if(temporary[0]){
    107                         //一般メッセージ
    108                         ppNames=(char **)HeapReAlloc(hHeap,0,ppNames,(*num+1)*sizeof(char *));
    109                         ppNames[*num]=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
    110                         lstrcpy(ppNames[*num],temporary);
    111                         (*num)++;
     117                }
     118                if(memicmp(buffer+i2,"Function",8)==0&&(buffer[i2+8]==' '||buffer[i2+8]=='\t')){
     119                    //[WndName]_WindowProcのみFunction定義
     120                    i2+=9;
     121                    while(buffer[i2]==' '||buffer[i2]=='\t') i2++;
     122                    if(memicmp(buffer+i2,pWindowInfo->GetCallbackName().c_str(),CallBackNameLen)==0&&
     123                        (buffer[i2+CallBackNameLen]==' '||buffer[i2+CallBackNameLen]=='\t'||buffer[i2+CallBackNameLen]=='(')){
     124                        *pbAlways=1;
    112125                    }
    113126                }
    114127            }
    115             if(memicmp(buffer+i2,"Function",8)==0&&(buffer[i2+8]==' '||buffer[i2+8]=='\t')){
    116                 //[WndName]_WindowProcのみFunction定義
    117                 i2+=9;
    118                 while(buffer[i2]==' '||buffer[i2]=='\t') i2++;
    119                 if(memicmp(buffer+i2,pWindowInfo->GetCallbackName().c_str(),CallBackNameLen)==0&&
    120                     (buffer[i2+CallBackNameLen]==' '||buffer[i2+CallBackNameLen]=='\t'||buffer[i2+CallBackNameLen]=='(')){
    121                     *pbAlways=1;
    122                 }
    123             }
    124         }
    125     }
    126     HeapDefaultFree(buffer);
     128        }
     129        HeapDefaultFree(buffer);
     130    }
    127131
    128132    return ppNames;
     
    136140    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    137141
    138     hChild=OpenFileWithExtension( projectInfo.GetWorkDir().GetPath() + pWindowInfo->GetSourceFileName() );
     142    hChild=OpenFileWithExtension( projectInfo.GetWorkDir().GetPath() + pWindowInfo->GetSourceFileNameForOldVer( projectInfo.GetWorkDir().GetPath() ) );
    139143    if(!hChild) return;
    140144    WndNum=GetWndNum(hChild);
    141145
    142     pBuf=MdiInfo[WndNum].pMdiTextEdit->buffer;
     146    pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer;
    143147
    144148    for(i=0;;i++){
     
    195199        TextEdit_SetSel(WndNum,i+2,i+i2);
    196200    }
    197     SetFocus(MdiInfo[WndNum].pMdiTextEdit->hEdit);
     201    SetFocus(MdiInfo[WndNum]->pMdiTextEdit->hEdit);
    198202}
    199203void InsertEventToList(HWND hList,int ItemNum,char *EventName,char *MessageName,char *OutLine){
     
    221225
    222226    MaxCount=ListView_GetItemCount(hList);
    223     if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){
     227    if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){
    224228        if(dwEventType==EVENTTYPE_DEFAULT){
    225229            for(i=0;i<MaxCount;i++){
     
    296300                sprintf(EventName,"%s_%s_%s",
    297301                    pWindowInfo->GetName().c_str(),
    298                     pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetName().c_str(),
     302                    pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->GetName().c_str(),
    299303                    temporary);
    300304                break;
     
    303307        if(i==MaxCount) return 0;
    304308
    305         if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW){
     309        if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW){
    306310            //ListView
    307311            if(i==0) lstrcpy(Parameter,"ByRef nmListView As NMLISTVIEW");
     
    327331            else if(i==20) lstrcpy(Parameter,"ByRef nmLVDispInfo As NMLVDISPINFO");
    328332        }
    329         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR){
     333        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR){
    330334            //ProgressBar
    331335            lstrcpy(Parameter,"ByRef nmHdr As NMHDR");
    332336        }
    333         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR){
     337        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR){
    334338            //TrackBar
    335339            lstrcpy(Parameter,"ByRef nmHdr As NMHDR");
    336340        }
    337         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW){
     341        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW){
    338342            //TreeView
    339343            if(0<=i&&i<=7) lstrcpy(Parameter,"ByRef nmHdr As NMHDR");
    340344            else lstrcpy(Parameter,"ByRef nmTreeView As NMTREEVIEW");
    341345        }
    342         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN){
     346        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN){
    343347            //UpDown
    344348            if(i==0) lstrcpy(Parameter,"ByRef nmHdr As NMHDR");
     
    400404
    401405    WndNum=GetWndNum(GetWindow(hClient,GW_CHILD));
    402     ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     406    ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum]->path);
    403407    i=0;
    404     if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){
     408    if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){
    405409        EnableWindow(GetDlgItem(hDlg,IDC_DEFAULT),1);
    406410        EnableWindow(GetDlgItem(hDlg,IDC_MENU),1);
     
    458462        EnableWindow(GetDlgItem(hDlg,IDC_MMSYS),0);
    459463        SendDlgItemMessage(hDlg,IDC_DEFAULT,BM_SETCHECK,BST_CHECKED,0);
    460         if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_BUTTON){
     464        if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_BUTTON){
    461465            //Button
    462466            InsertEventToList(hList,i++,"Click","BN_CLICKED","ボタンがクリックされた時");
    463467            InsertEventToList(hList,i++,"DblClick","BN_DBLCLK","ボタンがダブル クリックされた時");
    464468        }
    465         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX){
     469        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX){
    466470            //CheckBox
    467471            InsertEventToList(hList,i++,"Click","BN_CLICKED","チェック ボックスがクリックされた時");
    468472            InsertEventToList(hList,i++,"DblClick","BN_DBLCLK","チェック ボックスがダブル クリックされた時");
    469473        }
    470         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_COMBOBOX){
     474        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_COMBOBOX){
    471475            //ComboBox
    472476            InsertEventToList(hList,i++,"CloseUp","CBN_CLOSEUP","リスト ボックスが非表示になる時");
     
    482486            InsertEventToList(hList,i++,"SetFocus","CBN_SETFOCUS","入力フォーカスを取得した時");
    483487        }
    484         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT){
     488        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT){
    485489            //Edit
    486490            InsertEventToList(hList,i++,"Change","EN_CHANGE","エディット ボックスの内容が変更された時(後処理)");
     
    493497            InsertEventToList(hList,i++,"VScroll","EN_VSCROLL","垂直スクロールを行った時");
    494498        }
    495         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX){
     499        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX){
    496500            //ImageBox
    497501            InsertEventToList(hList,i++,"Click","STN_CLICKED","イメージ ボックスがクリックされた時");
    498502            InsertEventToList(hList,i++,"DblClick","STN_DBLCLK","イメージ ボックスがダブル クリックされた時");
    499503        }
    500         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX){
     504        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX){
    501505            //ListBox
    502506            InsertEventToList(hList,i++,"SelChange","LBN_SELCHANGE","リスト内の選択が変更された時");
     
    507511            InsertEventToList(hList,i++,"SetFocus","LBN_SETFOCUS","入力フォーカスを取得した時");
    508512        }
    509         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW){
     513        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW){
    510514            //ListView
    511515            i=SetDefaultNotifyMessagesInList(hList,CT_LISTVIEW);
    512516        }
    513         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR){
     517        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR){
    514518            //ProgressBar
    515519            InsertEventToList(hList,i++,"OutOfMemory","NM_OUTOFMEMORY","メモリ不足でコントロールの動作が完了できない時");
    516520        }
    517         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON){
     521        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON){
    518522            //RadioButton
    519523            InsertEventToList(hList,i++,"Click","BN_CLICKED","ラジオ ボタンがクリックされた時");
    520524            InsertEventToList(hList,i++,"DblClick","BN_DBLCLK","ラジオ ボタンがダブル クリックされた時");
    521525        }
    522         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC){
     526        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC){
    523527            //Static
    524528            InsertEventToList(hList,i++,"Click","STN_CLICKED","スタティック テキストがクリックされた時");
    525529            InsertEventToList(hList,i++,"DblClick","STN_DBLCLK","スタティック テキストがダブル クリックされた時");
    526530        }
    527         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR){
     531        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR){
    528532            //TrackBar
    529533            InsertEventToList(hList,i++,"OutOfMemory","NM_OUTOFMEMORY","メモリ不足でコントロールの動作が完了できない時");
     
    531535            InsertEventToList(hList,i++,"CustomDraw","NM_CUSTOMDRAW ","カスタム描画操作の通知");
    532536        }
    533         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW){
     537        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW){
    534538            //TreeView
    535539            i=SetDefaultNotifyMessagesInList(hList,CT_TREEVIEW);
    536540        }
    537         else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN){
     541        else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN){
    538542            //UpDown
    539543            InsertEventToList(hList,i++,"OutOfMemory","NM_OUTOFMEMORY","メモリ不足でコントロールの動作が完了できない時");
     
    595599        hList=GetDlgItem(hwnd,IDC_EVENTLIST);
    596600        WndNum=GetWndNum(GetWindow(hClient,GW_CHILD));
    597         WndInfoNum=GetWndInfoNum(MdiInfo[WndNum].path);
     601        WndInfoNum=GetWndInfoNum(MdiInfo[WndNum]->path);
    598602
    599603        ListView_DeleteAllItems(hList);
     
    644648            {
    645649                WndNum=GetWndNum(GetWindow(hClient,GW_CHILD));
    646                 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     650                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum]->path);
    647651                NowMenuNum=GetMenuInfoNum(pWindowInfo->GetMenuIdName().c_str());
    648652            }
     
    671675                    hList=GetDlgItem(hwnd,IDC_EVENTLIST);
    672676                    WndNum=GetWndNum(GetWindow(hClient,GW_CHILD));
    673                     WndInfoNum=GetWndInfoNum(MdiInfo[WndNum].path);
     677                    WndInfoNum=GetWndInfoNum(MdiInfo[WndNum]->path);
    674678                    if(GetEventProcedureNameFromListView(hList,WndNum,WndInfoNum,temporary,temp2,dwEventType)){
    675679                        SelectProcedureOfMessageCall(WndInfoNum,temporary,temp2);
     
    689693                    hList=GetDlgItem(hwnd,IDC_EVENTLIST);
    690694                    WndNum=GetWndNum(GetWindow(hClient,GW_CHILD));
    691                     WndInfoNum=GetWndInfoNum(MdiInfo[WndNum].path);
     695                    WndInfoNum=GetWndInfoNum(MdiInfo[WndNum]->path);
    692696                    if(GetEventProcedureNameFromListView(hList,WndNum,WndInfoNum,temporary,temp2,dwEventType)){
    693697                        sprintf(temporary+lstrlen(temporary),"(%s)",temp2);
Note: See TracChangeset for help on using the changeset viewer.