Ignore:
Timestamp:
May 23, 2008, 10:35:36 PM (17 years ago)
Author:
dai_9181
Message:

WindowInfoクラスをリファクタリング

File:
1 edited

Legend:

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

    r620 r624  
    2020    if(lstrcmp(EventName,"MenuClick")==0) return CT_MENU;
    2121
    22     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    23     BOOST_FOREACH( CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos )
     22    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     23    BOOST_FOREACH( ActiveBasic::PM::ChildWindowInfo *pChildInfo, pWindowInfo->childWindowInfos )
    2424    {
    25         if(lstrcmp(buffer,pChildInfo->IdName)==0)
     25        if( pChildInfo->GetName() == buffer )
    2626        {
    2727            return pChildInfo->Control;
     
    3636    char *buffer,**ppNames,temporary[MAX_PATH],temp2[MAX_PATH];
    3737
    38     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     38    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    3939
    4040    NameLen=pWindowInfo->GetName().size();
     
    135135    POINT pos;
    136136
    137     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     137    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    138138
    139139    hChild=OpenFileWithExtension( projectInfo.GetWorkDir().GetPath() + pWindowInfo->filepath );
     
    220220    char temporary[MAX_PATH];
    221221
    222     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     222    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    223223
    224224    MaxCount=ListView_GetItemCount(hList);
     
    298298                sprintf(EventName,"%s_%s_%s",
    299299                    pWindowInfo->GetName().c_str(),
    300                     pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->IdName,
     300                    pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetName().c_str(),
    301301                    temporary);
    302302                break;
     
    403403
    404404    WndNum=GetWndNum(GetWindow(hClient,GW_CHILD));
    405     WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     405    ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
    406406    i=0;
    407407    if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){
     
    441441            //メニュー イベント
    442442            SendDlgItemMessage(hDlg,IDC_MENU,BM_SETCHECK,BST_CHECKED,0);
    443             if(pWindowInfo->MenuID){
     443            if( pWindowInfo->HasMenu() )
     444            {
    444445                int MenuInfoNum;
    445                 MenuInfoNum=GetMenuInfoNum(pWindowInfo->MenuID);
     446                MenuInfoNum=GetMenuInfoNum(pWindowInfo->GetMenuIdName().c_str());
    446447                i=0;
    447448                i2=0;
     
    647648            {
    648649                WndNum=GetWndNum(GetWindow(hClient,GW_CHILD));
    649                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
    650                 NowMenuNum=GetMenuInfoNum(pWindowInfo->MenuID);
     650                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     651                NowMenuNum=GetMenuInfoNum(pWindowInfo->GetMenuIdName().c_str());
    651652            }
    652653            break;
Note: See TracChangeset for help on using the changeset viewer.