Changeset 624 in dev for trunk/ab5.0/abdev/abdev/MessageCallOperation.cpp
- Timestamp:
- May 23, 2008, 10:35:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/MessageCallOperation.cpp
r620 r624 20 20 if(lstrcmp(EventName,"MenuClick")==0) return CT_MENU; 21 21 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 ) 24 24 { 25 if( lstrcmp(buffer,pChildInfo->IdName)==0)25 if( pChildInfo->GetName() == buffer ) 26 26 { 27 27 return pChildInfo->Control; … … 36 36 char *buffer,**ppNames,temporary[MAX_PATH],temp2[MAX_PATH]; 37 37 38 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];38 ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 39 39 40 40 NameLen=pWindowInfo->GetName().size(); … … 135 135 POINT pos; 136 136 137 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];137 ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 138 138 139 139 hChild=OpenFileWithExtension( projectInfo.GetWorkDir().GetPath() + pWindowInfo->filepath ); … … 220 220 char temporary[MAX_PATH]; 221 221 222 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];222 ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 223 223 224 224 MaxCount=ListView_GetItemCount(hList); … … 298 298 sprintf(EventName,"%s_%s_%s", 299 299 pWindowInfo->GetName().c_str(), 300 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]-> IdName,300 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetName().c_str(), 301 301 temporary); 302 302 break; … … 403 403 404 404 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 405 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);405 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path); 406 406 i=0; 407 407 if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ … … 441 441 //メニュー イベント 442 442 SendDlgItemMessage(hDlg,IDC_MENU,BM_SETCHECK,BST_CHECKED,0); 443 if(pWindowInfo->MenuID){ 443 if( pWindowInfo->HasMenu() ) 444 { 444 445 int MenuInfoNum; 445 MenuInfoNum=GetMenuInfoNum(pWindowInfo-> MenuID);446 MenuInfoNum=GetMenuInfoNum(pWindowInfo->GetMenuIdName().c_str()); 446 447 i=0; 447 448 i2=0; … … 647 648 { 648 649 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()); 651 652 } 652 653 break;
Note:
See TracChangeset
for help on using the changeset viewer.