Changeset 617 in dev for trunk/ab5.0/abdev/abdev/RadProc.cpp
- Timestamp:
- May 19, 2008, 4:31:37 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/RadProc.cpp
r616 r617 19 19 i=GetWndNum(hChild); 20 20 if(MdiInfo[i].DocType==WNDTYPE_RAD){ 21 if(lstrcmpi(MdiInfo[i].path,windowInfo. name)==0) break;21 if(lstrcmpi(MdiInfo[i].path,windowInfo.GetName().c_str())==0) break; 22 22 } 23 23 hChild=GetNextWindow(hChild,GW_HWNDNEXT); … … 28 28 } 29 29 30 mdic.szTitle=windowInfo. name;30 mdic.szTitle=windowInfo.GetName().c_str(); 31 31 mdic.szClass="MDIClientWindow_Rad"; 32 32 mdic.hOwner=hInst; … … 85 85 MdiInfo[i].hwnd=hChild; 86 86 MdiInfo[i].DocType=WNDTYPE_RAD; 87 MdiInfo[i].title=(char *)GlobalAlloc(GMEM_FIXED, lstrlen(windowInfo.name)+1);88 lstrcpy(MdiInfo[i].title,windowInfo. name);89 MdiInfo[i].path=(char *)GlobalAlloc(GMEM_FIXED, lstrlen(windowInfo.name)+1);90 lstrcpy(MdiInfo[i].path,windowInfo. name);87 MdiInfo[i].title=(char *)GlobalAlloc(GMEM_FIXED,windowInfo.GetName().size()+1); 88 lstrcpy(MdiInfo[i].title,windowInfo.GetName().c_str()); 89 MdiInfo[i].path=(char *)GlobalAlloc(GMEM_FIXED,windowInfo.GetName().size()+1); 90 lstrcpy(MdiInfo[i].path,windowInfo.GetName().c_str()); 91 91 92 92 … … 141 141 ResizeToRadToolWindows(i,rect.right,rect.bottom); 142 142 143 i=SendMessage(hDocCombo,CB_ADDSTRING,0,(long)windowInfo. name); //Docコンボボックスに追加143 i=SendMessage(hDocCombo,CB_ADDSTRING,0,(long)windowInfo.GetName().c_str()); //Docコンボボックスに追加 144 144 SendMessage(hDocCombo,CB_SETCURSEL,i,0); 145 145 146 146 //タブに追加 147 pobj_MainTab->InsertItem( windowInfo. name, true );147 pobj_MainTab->InsertItem( windowInfo.GetName().c_str(), true ); 148 148 149 149 //メニュー状態を設定 … … 268 268 extern HANDLE hHeap; 269 269 extern MDIINFO MdiInfo[MAX_WNDNUM]; 270 int i;271 270 272 271 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; … … 1449 1448 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX|| 1450 1449 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON|| 1451 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC){ 1452 sprintf(temporary,"%s_%s_Click",pWindowInfo->name,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1450 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC) 1451 { 1452 sprintf(temporary,"%s_%s_Click", 1453 pWindowInfo->GetName().c_str(), 1454 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName 1455 ); 1453 1456 } 1454 1457 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_COMBOBOX) 1455 sprintf(temporary,"%s_%s_EditChange",pWindowInfo->name,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1458 { 1459 sprintf(temporary,"%s_%s_EditChange", 1460 pWindowInfo->GetName().c_str(), 1461 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1462 } 1456 1463 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT) 1457 sprintf(temporary,"%s_%s_Change",pWindowInfo->name,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1464 { 1465 sprintf(temporary,"%s_%s_Change", 1466 pWindowInfo->GetName().c_str(), 1467 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1468 } 1458 1469 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX) 1459 sprintf(temporary,"%s_%s_SelChange",pWindowInfo->name,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1470 { 1471 sprintf(temporary,"%s_%s_SelChange", 1472 pWindowInfo->GetName().c_str(), 1473 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1474 } 1460 1475 else temporary[0]=0; 1461 1476 if(temporary[0]) SelectProcedureOfMessageCall(i2,temporary,temp2);
Note:
See TracChangeset
for help on using the changeset viewer.