Changeset 616 in dev for trunk/ab5.0/abdev/abdev/RadSupport.cpp
- Timestamp:
- May 19, 2008, 3:03:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/RadSupport.cpp
r615 r616 60 60 } 61 61 62 lphFont=(HFONT *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,pWindowInfo-> NumberOfChildWindows*sizeof(DWORD));63 lphImage=(HANDLE *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,pWindowInfo-> NumberOfChildWindows*sizeof(DWORD));62 lphFont=(HFONT *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,pWindowInfo->childWindowInfos.size()*sizeof(DWORD)); 63 lphImage=(HANDLE *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,pWindowInfo->childWindowInfos.size()*sizeof(DWORD)); 64 64 65 65 //テスト用のメインウィンドウを作成 … … 73 73 74 74 //子ウィンドウ作成 75 for(i2=0;i2<pWindowInfo-> NumberOfChildWindows;i2++){76 if(pWindowInfo-> pChildInfo[i2].Control==CT_UPDOWN){75 for(i2=0;i2<pWindowInfo->childWindowInfos.size();i2++){ 76 if(pWindowInfo->childWindowInfos[i2]->Control==CT_UPDOWN){ 77 77 CreateUpDownControl( 78 pWindowInfo-> pChildInfo[i2].style,79 pWindowInfo-> pChildInfo[i2].pos.x,pWindowInfo->pChildInfo[i2].pos.y,80 pWindowInfo-> pChildInfo[i2].size.cx,pWindowInfo->pChildInfo[i2].size.cy,78 pWindowInfo->childWindowInfos[i2]->style, 79 pWindowInfo->childWindowInfos[i2]->pos.x,pWindowInfo->childWindowInfos[i2]->pos.y, 80 pWindowInfo->childWindowInfos[i2]->size.cx,pWindowInfo->childWindowInfos[i2]->size.cy, 81 81 hWnd,0,hInst, 82 82 0,0,100,0); 83 83 } 84 84 else{ 85 GetItemClassName(temporary,pWindowInfo-> pChildInfo[i2].Control);85 GetItemClassName(temporary,pWindowInfo->childWindowInfos[i2]->Control); 86 86 hChild=CreateWindowEx( 87 pWindowInfo-> pChildInfo[i2].ExStyle,87 pWindowInfo->childWindowInfos[i2]->ExStyle, 88 88 temporary, 89 pWindowInfo-> pChildInfo[i2].caption,90 pWindowInfo-> pChildInfo[i2].style,91 pWindowInfo-> pChildInfo[i2].pos.x,92 pWindowInfo-> pChildInfo[i2].pos.y,93 pWindowInfo-> pChildInfo[i2].size.cx,94 pWindowInfo-> pChildInfo[i2].size.cy,89 pWindowInfo->childWindowInfos[i2]->caption, 90 pWindowInfo->childWindowInfos[i2]->style, 91 pWindowInfo->childWindowInfos[i2]->pos.x, 92 pWindowInfo->childWindowInfos[i2]->pos.y, 93 pWindowInfo->childWindowInfos[i2]->size.cx, 94 pWindowInfo->childWindowInfos[i2]->size.cy, 95 95 hWnd,0,hInst,0); 96 96 … … 98 98 SendMessage(hChild,WM_SETFONT,(long)lphFont[i2],0); 99 99 100 if(pWindowInfo-> pChildInfo[i2].Control==CT_IMAGEBOX){100 if(pWindowInfo->childWindowInfos[i2]->Control==CT_IMAGEBOX){ 101 101 /////////////////////////// 102 102 // イメージ ボックスの場合 103 103 /////////////////////////// 104 if((pWindowInfo-> pChildInfo[i2].style&0x000F)==SS_ICON){105 if(pWindowInfo-> pChildInfo[i2].ImageCtrlInfo.type==IMGTYPE_FILE)106 lstrcpy(temporary,pWindowInfo-> pChildInfo[i2].ImageCtrlInfo.path);104 if((pWindowInfo->childWindowInfos[i2]->style&0x000F)==SS_ICON){ 105 if(pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.type==IMGTYPE_FILE) 106 lstrcpy(temporary,pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path); 107 107 else{ 108 108 for(i3=0;i3<ProjectInfo.res.NumberOfIconRes;i3++){ 109 if(lstrcmp(pWindowInfo-> pChildInfo[i2].ImageCtrlInfo.path,109 if(lstrcmp(pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path, 110 110 ProjectInfo.res.pIconResInfo[i3].IdName)==0) break; 111 111 } … … 120 120 } 121 121 } 122 else if((pWindowInfo-> pChildInfo[i2].style&0x000F)==SS_BITMAP){123 if(pWindowInfo-> pChildInfo[i2].ImageCtrlInfo.type==IMGTYPE_FILE)124 lstrcpy(temporary,pWindowInfo-> pChildInfo[i2].ImageCtrlInfo.path);122 else if((pWindowInfo->childWindowInfos[i2]->style&0x000F)==SS_BITMAP){ 123 if(pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.type==IMGTYPE_FILE) 124 lstrcpy(temporary,pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path); 125 125 else{ 126 126 for(i3=0;i3<ProjectInfo.res.NumberOfBitmapRes;i3++){ 127 if(lstrcmp(pWindowInfo-> pChildInfo[i2].ImageCtrlInfo.path,127 if(lstrcmp(pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path, 128 128 ProjectInfo.res.pBitmapResInfo[i3].IdName)==0) break; 129 129 } … … 150 150 151 151 //フォントハンドルを破棄 152 for(i2=0;i2<pWindowInfo-> NumberOfChildWindows;i2++){152 for(i2=0;i2<pWindowInfo->childWindowInfos.size();i2++){ 153 153 if(lphFont[i2]) DeleteObject(lphFont[i2]); 154 154 } … … 156 156 157 157 //イメージハンドルを破棄 158 for(i2=0;i2<pWindowInfo-> NumberOfChildWindows;i2++){158 for(i2=0;i2<pWindowInfo->childWindowInfos.size();i2++){ 159 159 if(lphImage[i2]){ 160 if((pWindowInfo-> pChildInfo[i2].style&0x000F)==SS_ICON)160 if((pWindowInfo->childWindowInfos[i2]->style&0x000F)==SS_ICON) 161 161 DestroyIcon((HICON)lphImage[i2]); 162 else if((pWindowInfo-> pChildInfo[i2].style&0x000F)==SS_BITMAP)162 else if((pWindowInfo->childWindowInfos[i2]->style&0x000F)==SS_BITMAP) 163 163 DeleteObject(lphImage[i2]); 164 164 } … … 237 237 EnableWindow(GetDlgItem(hSupport,IDC_SPIN4),1); 238 238 239 sprintf(temporary,"%d",windowInfo. pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].pos.x);239 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->pos.x); 240 240 SetDlgItemText(hSupport,IDC_XPOS,temporary); 241 241 242 sprintf(temporary,"%d",windowInfo. pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].pos.y);242 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->pos.y); 243 243 SetDlgItemText(hSupport,IDC_YPOS,temporary); 244 244 245 sprintf(temporary,"%d",windowInfo. pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].size.cx);245 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->size.cx); 246 246 SetDlgItemText(hSupport,IDC_WIDTH,temporary); 247 247 248 sprintf(temporary,"%d",windowInfo. pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].size.cy);248 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->size.cy); 249 249 SetDlgItemText(hSupport,IDC_HEIGHT,temporary); 250 250 } … … 306 306 for(i3=0;;i3++){ 307 307 if(MdiInfo[i].MdiRadInfo->SelectingItem[i3]==-1) break; 308 PointAndSize.pos=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos;309 PointAndSize.size=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size;308 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos; 309 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size; 310 310 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 311 311 } … … 315 315 for(i3=0;;i3++){ 316 316 if(MdiInfo[i].MdiRadInfo->SelectingItem[i3]==-1) break; 317 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.x=atol(temporary);317 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.x=atol(temporary); 318 318 } 319 319 } … … 323 323 for(i3=0;;i3++){ 324 324 if(MdiInfo[i].MdiRadInfo->SelectingItem[i3]==-1) break; 325 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.y=atol(temporary);325 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.y=atol(temporary); 326 326 } 327 327 } … … 334 334 for(i3=0;;i3++){ 335 335 if(MdiInfo[i].MdiRadInfo->SelectingItem[i3]==-1) break; 336 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size.cx=atol(temporary);336 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size.cx=atol(temporary); 337 337 } 338 338 } … … 346 346 for(i3=0;;i3++){ 347 347 if(MdiInfo[i].MdiRadInfo->SelectingItem[i3]==-1) break; 348 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size.cy=atol(temporary);348 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size.cy=atol(temporary); 349 349 } 350 350 }
Note:
See TracChangeset
for help on using the changeset viewer.