Changeset 616 in dev
- Timestamp:
- May 19, 2008, 3:03:33 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/abdev
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/DrawWindow.cpp
r615 r616 1017 1017 //子ウィンドウ(ダイアログアイテム)を描画 1018 1018 hFont=CreateFontIndirect(&pWindowInfo->LogFont); 1019 for(i=0;i<pWindowInfo->NumberOfChildWindows;i++){ 1020 pos=pWindowInfo->pChildInfo[i].pos; 1021 size=pWindowInfo->pChildInfo[i].size; 1019 BOOST_FOREACH( CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos ) 1020 { 1021 pos=pChildInfo->pos; 1022 size=pChildInfo->size; 1022 1023 1023 1024 //ExStyleによる縁を描画 1024 DrawItemEdgeByExStyle(WndNum,p WindowInfo->pChildInfo[i].ExStyle,&pos,&size);1025 1026 if(p WindowInfo->pChildInfo[i].Control==CT_BUTTON){1025 DrawItemEdgeByExStyle(WndNum,pChildInfo->ExStyle,&pos,&size); 1026 1027 if(pChildInfo->Control==CT_BUTTON){ 1027 1028 //////////////////////// 1028 1029 // Button コントロール 1029 1030 1030 if((p WindowInfo->pChildInfo[i].style&0x0000000F)==BS_DEFPUSHBUTTON){1031 if((pChildInfo->style&0x0000000F)==BS_DEFPUSHBUTTON){ 1031 1032 //標準のボタンの場合(黒枠描画) 1032 1033 DrawRectangleInClient(WndNum, … … 1043 1044 DrawButtonEdge(WndNum,&pos,&size); 1044 1045 1045 if(!(p WindowInfo->pChildInfo[i].style&(BS_ICON|BS_BITMAP))){1046 if(!(pChildInfo->style&(BS_ICON|BS_BITMAP))){ 1046 1047 //キャプション テキスト 1047 1048 … … 1051 1052 rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum].MdiRadInfo->ClientPos.y; 1052 1053 1053 if(p WindowInfo->pChildInfo[i].style&BS_MULTILINE) i4=0;1054 if(pChildInfo->style&BS_MULTILINE) i4=0; 1054 1055 else i4=DT_SINGLELINE; 1055 1056 1056 1057 //ビットを考慮してBS_CENTERを最初に比較する 1057 if((p WindowInfo->pChildInfo[i].style&BS_CENTER)==BS_CENTER) i2=DT_CENTER;1058 else if(p WindowInfo->pChildInfo[i].style&BS_LEFT) i2=DT_LEFT;1059 else if(p WindowInfo->pChildInfo[i].style&BS_RIGHT) i2=DT_RIGHT;1058 if((pChildInfo->style&BS_CENTER)==BS_CENTER) i2=DT_CENTER; 1059 else if(pChildInfo->style&BS_LEFT) i2=DT_LEFT; 1060 else if(pChildInfo->style&BS_RIGHT) i2=DT_RIGHT; 1060 1061 else i2=DT_CENTER; 1061 1062 1062 1063 //ビットを考慮してBS_VCENTERを最初に比較する 1063 if((p WindowInfo->pChildInfo[i].style&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER;1064 else if(p WindowInfo->pChildInfo[i].style&BS_TOP) i3=DT_TOP;1065 else if(p WindowInfo->pChildInfo[i].style&BS_BOTTOM) i3=DT_BOTTOM;1064 if((pChildInfo->style&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER; 1065 else if(pChildInfo->style&BS_TOP) i3=DT_TOP; 1066 else if(pChildInfo->style&BS_BOTTOM) i3=DT_BOTTOM; 1066 1067 else i3=DT_VCENTER; 1067 1068 1068 1069 hOldFont=(HFONT)SelectObject(hdc,hFont); 1069 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED){1070 if(pChildInfo->style&WS_DISABLED){ 1070 1071 SetTextColor(hdc,RGB(255,255,255)); 1071 1072 rc2.left=rect.left+1; … … 1073 1074 rc2.right=rect.right+1; 1074 1075 rc2.bottom=rect.bottom+1; 1075 DrawText(hdc,p WindowInfo->pChildInfo[i].caption,-1,&rc2,i4|i2|i3);1076 DrawText(hdc,pChildInfo->caption,-1,&rc2,i4|i2|i3); 1076 1077 SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT)); 1077 1078 } 1078 1079 else SetTextColor(hdc,GetSysColor(COLOR_BTNTEXT)); 1079 1080 1080 DrawText(hdc,p WindowInfo->pChildInfo[i].caption,-1,&rect,i4|i2|i3);1081 DrawText(hdc,pChildInfo->caption,-1,&rect,i4|i2|i3); 1081 1082 SelectObject(hdc,hOldFont); 1082 1083 } 1083 1084 } 1084 else if(p WindowInfo->pChildInfo[i].Control==CT_CHECKBOX){1085 else if(pChildInfo->Control==CT_CHECKBOX){ 1085 1086 ////////////////////////// 1086 1087 // CheckBox コントロール 1087 1088 1088 if(p WindowInfo->pChildInfo[i].style&BS_PUSHLIKE){1089 if(pChildInfo->style&BS_PUSHLIKE){ 1089 1090 //ボタンの縁を描画 1090 1091 DrawButtonEdge(WndNum,&pos,&size); … … 1094 1095 size2.cx=13; 1095 1096 size2.cy=13; 1096 if(p WindowInfo->pChildInfo[i].style&BS_LEFTTEXT)1097 if(pChildInfo->style&BS_LEFTTEXT) 1097 1098 pos2.x=pos.x+size.cx-size2.cx; 1098 1099 else pos2.x=pos.x; 1099 if((p WindowInfo->pChildInfo[i].style&BS_VCENTER)==BS_VCENTER||1100 (p WindowInfo->pChildInfo[i].style&BS_VCENTER)==0)1100 if((pChildInfo->style&BS_VCENTER)==BS_VCENTER|| 1101 (pChildInfo->style&BS_VCENTER)==0) 1101 1102 pos2.y=pos.y+(size.cy/2)-(size2.cy/2); 1102 else if(p WindowInfo->pChildInfo[i].style&BS_TOP)1103 else if(pChildInfo->style&BS_TOP) 1103 1104 pos2.y=pos.y+1; 1104 else if(p WindowInfo->pChildInfo[i].style&BS_BOTTOM)1105 else if(pChildInfo->style&BS_BOTTOM) 1105 1106 pos2.y=pos.y+size.cy-size2.cy-1; 1106 1107 DrawItemEdgeByExStyle(WndNum,WS_EX_CLIENTEDGE,&pos2,&size2); 1107 1108 1108 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED)1109 if(pChildInfo->style&WS_DISABLED) 1109 1110 rgb=GetSysColor(COLOR_3DFACE); 1110 1111 else rgb=GetSysColor(COLOR_WINDOW); … … 1112 1113 pos2.x+size2.cx, pos2.y+size2.cy, 1113 1114 rgb,rgb,1); 1114 if(!(p WindowInfo->pChildInfo[i].style&BS_LEFTTEXT)) pos.x+=17;1115 if(!(pChildInfo->style&BS_LEFTTEXT)) pos.x+=17; 1115 1116 else pos.x++; 1116 1117 size.cx-=17; 1117 1118 } 1118 1119 1119 if(!(p WindowInfo->pChildInfo[i].style&(BS_ICON|BS_BITMAP))){1120 if(!(pChildInfo->style&(BS_ICON|BS_BITMAP))){ 1120 1121 //キャプション テキスト 1121 1122 rect.left=pos.x+1+MdiInfo[WndNum].MdiRadInfo->ClientPos.x; … … 1124 1125 rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum].MdiRadInfo->ClientPos.y; 1125 1126 1126 if(p WindowInfo->pChildInfo[i].style&BS_MULTILINE) i4=0;1127 if(pChildInfo->style&BS_MULTILINE) i4=0; 1127 1128 else i4=DT_SINGLELINE; 1128 1129 1129 1130 //ビットを考慮してBS_CENTERを最初に比較する 1130 if((p WindowInfo->pChildInfo[i].style&BS_CENTER)==BS_CENTER) i2=DT_CENTER;1131 else if(p WindowInfo->pChildInfo[i].style&BS_LEFT) i2=DT_LEFT;1132 else if(p WindowInfo->pChildInfo[i].style&BS_RIGHT) i2=DT_RIGHT;1131 if((pChildInfo->style&BS_CENTER)==BS_CENTER) i2=DT_CENTER; 1132 else if(pChildInfo->style&BS_LEFT) i2=DT_LEFT; 1133 else if(pChildInfo->style&BS_RIGHT) i2=DT_RIGHT; 1133 1134 else i2=DT_LEFT; 1134 1135 1135 1136 //ビットを考慮してBS_VCENTERを最初に比較する 1136 if((p WindowInfo->pChildInfo[i].style&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER;1137 else if(p WindowInfo->pChildInfo[i].style&BS_TOP) i3=DT_TOP;1138 else if(p WindowInfo->pChildInfo[i].style&BS_BOTTOM) i3=DT_BOTTOM;1137 if((pChildInfo->style&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER; 1138 else if(pChildInfo->style&BS_TOP) i3=DT_TOP; 1139 else if(pChildInfo->style&BS_BOTTOM) i3=DT_BOTTOM; 1139 1140 else i3=DT_VCENTER; 1140 1141 1141 1142 hOldFont=(HFONT)SelectObject(hdc,hFont); 1142 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED){1143 if(pChildInfo->style&WS_DISABLED){ 1143 1144 SetTextColor(hdc,RGB(255,255,255)); 1144 1145 rc2.left=rect.left+1; … … 1146 1147 rc2.right=rect.right+1; 1147 1148 rc2.bottom=rect.bottom+1; 1148 DrawText(hdc,p WindowInfo->pChildInfo[i].caption,-1,&rc2,i4|i2|i3);1149 DrawText(hdc,pChildInfo->caption,-1,&rc2,i4|i2|i3); 1149 1150 SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT)); 1150 1151 } 1151 1152 else SetTextColor(hdc,GetSysColor(COLOR_BTNTEXT)); 1152 1153 1153 DrawText(hdc,p WindowInfo->pChildInfo[i].caption,-1,&rect,i4|i2|i3);1154 DrawText(hdc,pChildInfo->caption,-1,&rect,i4|i2|i3); 1154 1155 SelectObject(hdc,hOldFont); 1155 1156 } 1156 1157 } 1157 else if(p WindowInfo->pChildInfo[i].Control==CT_COMBOBOX){1158 else if(pChildInfo->Control==CT_COMBOBOX){ 1158 1159 ////////////////////////// 1159 1160 // ComboBox コントロール … … 1165 1166 1166 1167 //内部 1167 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED)1168 if(pChildInfo->style&WS_DISABLED) 1168 1169 rgb=GetSysColor(COLOR_3DFACE); 1169 1170 else rgb=GetSysColor(COLOR_WINDOW); … … 1173 1174 rgb,rgb,1); 1174 1175 1175 if((p WindowInfo->pChildInfo[i].style&0x000F)==CBS_SIMPLE){1176 if((pChildInfo->style&0x000F)==CBS_SIMPLE){ 1176 1177 pos.y+=20; 1177 1178 size.cy-=20; … … 1199 1200 1200 1201 pos2.x--; 1201 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED){1202 if(pChildInfo->style&WS_DISABLED){ 1202 1203 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT)); 1203 1204 hOldPen=(HPEN)SelectObject(hdc,hPen); … … 1225 1226 } 1226 1227 } 1227 else if(p WindowInfo->pChildInfo[i].Control==CT_EDIT){1228 else if(pChildInfo->Control==CT_EDIT){ 1228 1229 ////////////////////// 1229 1230 // Edit コントロール 1230 1231 1231 1232 //内部 1232 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED||pWindowInfo->pChildInfo[i].style&ES_READONLY)1233 if(pChildInfo->style&WS_DISABLED||pChildInfo->style&ES_READONLY) 1233 1234 rgb=GetSysColor(COLOR_3DFACE); 1234 1235 else rgb=GetSysColor(COLOR_WINDOW); … … 1244 1245 rect.bottom=pos.y+size.cy-1+MdiInfo[WndNum].MdiRadInfo->ClientPos.y; 1245 1246 1246 if(p WindowInfo->pChildInfo[i].style&ES_MULTILINE) i4=0;1247 if(pChildInfo->style&ES_MULTILINE) i4=0; 1247 1248 else i4=DT_SINGLELINE; 1248 1249 1249 1250 //ビットを考慮してES_LEFTを最後に検討する 1250 if(p WindowInfo->pChildInfo[i].style&ES_CENTER) i2=DT_CENTER;1251 else if(p WindowInfo->pChildInfo[i].style&ES_RIGHT) i2=DT_RIGHT;1251 if(pChildInfo->style&ES_CENTER) i2=DT_CENTER; 1252 else if(pChildInfo->style&ES_RIGHT) i2=DT_RIGHT; 1252 1253 else i2=DT_LEFT; 1253 1254 1254 1255 //文字色を設定 1255 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED)1256 if(pChildInfo->style&WS_DISABLED) 1256 1257 SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT)); 1257 1258 else … … 1259 1260 1260 1261 hOldFont=(HFONT)SelectObject(hdc,hFont); 1261 DrawText(hdc,p WindowInfo->pChildInfo[i].caption,-1,&rect,i4|i2);1262 DrawText(hdc,pChildInfo->caption,-1,&rect,i4|i2); 1262 1263 SelectObject(hdc,hOldFont); 1263 1264 } 1264 1265 1265 else if(p WindowInfo->pChildInfo[i].Control==CT_GROUPBOX){1266 else if(pChildInfo->Control==CT_GROUPBOX){ 1266 1267 /////////////////////////////////// 1267 1268 // グループ ボックス コントロール 1268 1269 1269 1270 hOldFont=(HFONT)SelectObject(hdc,hFont); 1270 GetTextExtentPoint32(hdc,p WindowInfo->pChildInfo[i].caption,lstrlen(pWindowInfo->pChildInfo[i].caption),&size2);1271 GetTextExtentPoint32(hdc,pChildInfo->caption,lstrlen(pChildInfo->caption),&size2); 1271 1272 1272 1273 //枠を描画 … … 1278 1279 1279 1280 //ビットを考慮してBS_CENTERを最初に検討する 1280 if((p WindowInfo->pChildInfo[i].style&BS_CENTER)==BS_CENTER){1281 if((pChildInfo->style&BS_CENTER)==BS_CENTER){ 1281 1282 rect.left=pos.x+(size.cx/2)-(size2.cx/2)-3; 1282 1283 rect.right=rect.left+size2.cx+4; 1283 1284 } 1284 else if(p WindowInfo->pChildInfo[i].style&BS_RIGHT){1285 else if(pChildInfo->style&BS_RIGHT){ 1285 1286 rect.right=pos.x+size.cx-7; 1286 1287 rect.left=rect.right-size2.cx-4; … … 1297 1298 DrawRectangleInClient(WndNum,rect.left,rect.top,rect.right,rect.bottom,rgb,rgb,1); 1298 1299 1299 if(!((p WindowInfo->pChildInfo[i].style&BS_ICON)||(pWindowInfo->pChildInfo[i].style&BS_BITMAP))){1300 if(!((pChildInfo->style&BS_ICON)||(pChildInfo->style&BS_BITMAP))){ 1300 1301 rect.left+=MdiInfo[WndNum].MdiRadInfo->ClientPos.x; 1301 1302 rect.top+=MdiInfo[WndNum].MdiRadInfo->ClientPos.y; … … 1306 1307 1307 1308 //テキストを描画 1308 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED){1309 if(pChildInfo->style&WS_DISABLED){ 1309 1310 SetTextColor(hdc,RGB(255,255,255)); 1310 1311 rc2.left=rect.left+1; … … 1312 1313 rc2.right=rect.right+1; 1313 1314 rc2.bottom=rect.bottom+1; 1314 DrawText(hdc,p WindowInfo->pChildInfo[i].caption,-1,&rc2,DT_SINGLELINE);1315 DrawText(hdc,pChildInfo->caption,-1,&rc2,DT_SINGLELINE); 1315 1316 SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT)); 1316 1317 } … … 1318 1319 SetTextColor(hdc,GetSysColor(COLOR_BTNTEXT)); 1319 1320 1320 DrawText(hdc,p WindowInfo->pChildInfo[i].caption,-1,&rect,DT_SINGLELINE);1321 DrawText(hdc,pChildInfo->caption,-1,&rect,DT_SINGLELINE); 1321 1322 } 1322 1323 SelectObject(hdc,hOldFont); 1323 1324 } 1324 1325 1325 else if(p WindowInfo->pChildInfo[i].Control==CT_HSCROLLBAR){1326 else if(pChildInfo->Control==CT_HSCROLLBAR){ 1326 1327 //////////////////////////////////// 1327 1328 // 水平スクロールバー コントロール 1328 DrawScrollBar(WndNum,p WindowInfo->pChildInfo[i].style,0,&pos,&size);1329 } 1330 1331 else if(p WindowInfo->pChildInfo[i].Control==CT_IMAGEBOX){1329 DrawScrollBar(WndNum,pChildInfo->style,0,&pos,&size); 1330 } 1331 1332 else if(pChildInfo->Control==CT_IMAGEBOX){ 1332 1333 ///////////////////// 1333 1334 // イメージ ボックス 1334 1335 HDC memdc; 1335 1336 1336 if((p WindowInfo->pChildInfo[i].style&0x0000000F)==SS_BLACKFRAME)1337 if((pChildInfo->style&0x0000000F)==SS_BLACKFRAME) 1337 1338 DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,RGB(0,0,0),0,0); 1338 else if((p WindowInfo->pChildInfo[i].style&0x0000000F)==SS_GRAYFRAME)1339 else if((pChildInfo->style&0x0000000F)==SS_GRAYFRAME) 1339 1340 DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,GetSysColor(COLOR_3DSHADOW),0,0); 1340 else if((p WindowInfo->pChildInfo[i].style&0x0000000F)==SS_WHITEFRAME)1341 else if((pChildInfo->style&0x0000000F)==SS_WHITEFRAME) 1341 1342 DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,RGB(255,255,255),0,0); 1342 else if((p WindowInfo->pChildInfo[i].style&0x0000001F)==SS_ETCHEDFRAME){1343 else if((pChildInfo->style&0x0000001F)==SS_ETCHEDFRAME){ 1343 1344 rect.left=pos.x+MdiInfo[WndNum].MdiRadInfo->ClientPos.x; 1344 1345 rect.top=pos.y+MdiInfo[WndNum].MdiRadInfo->ClientPos.y; … … 1347 1348 DrawEdge(hdc,&rect,EDGE_ETCHED,BF_RECT); 1348 1349 } 1349 else if((p WindowInfo->pChildInfo[i].style&0x0000000F)==SS_BLACKRECT)1350 else if((pChildInfo->style&0x0000000F)==SS_BLACKRECT) 1350 1351 DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,GetSysColor(COLOR_3DDKSHADOW),GetSysColor(COLOR_3DDKSHADOW),1); 1351 else if((p WindowInfo->pChildInfo[i].style&0x0000000F)==SS_GRAYRECT)1352 else if((pChildInfo->style&0x0000000F)==SS_GRAYRECT) 1352 1353 DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,GetSysColor(COLOR_3DSHADOW),GetSysColor(COLOR_3DSHADOW),1); 1353 else if((p WindowInfo->pChildInfo[i].style&0x0000000F)==SS_WHITERECT)1354 else if((pChildInfo->style&0x0000000F)==SS_WHITERECT) 1354 1355 DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,RGB(255,255,255),RGB(255,255,255),1); 1355 else if((p WindowInfo->pChildInfo[i].style&0x0000000F)==SS_ICON){1356 if(p WindowInfo->pChildInfo[i].ImageCtrlInfo.type==IMGTYPE_FILE)1357 lstrcpy(temporary,p WindowInfo->pChildInfo[i].ImageCtrlInfo.path);1356 else if((pChildInfo->style&0x0000000F)==SS_ICON){ 1357 if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_FILE) 1358 lstrcpy(temporary,pChildInfo->ImageCtrlInfo.path); 1358 1359 else{ 1359 1360 for(i2=0;i2<ProjectInfo.res.NumberOfIconRes;i2++){ 1360 if(lstrcmp(p WindowInfo->pChildInfo[i].ImageCtrlInfo.path,1361 if(lstrcmp(pChildInfo->ImageCtrlInfo.path, 1361 1362 ProjectInfo.res.pIconResInfo[i2].IdName)==0) break; 1362 1363 } … … 1368 1369 hImage=LoadImage(NULL,temporary,IMAGE_ICON,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE); 1369 1370 if(hImage){ 1370 p WindowInfo->pChildInfo[i].size.cx=32+(pWindowInfo->pChildInfo[i].size.cx-size.cx);1371 p WindowInfo->pChildInfo[i].size.cy=32+(pWindowInfo->pChildInfo[i].size.cy-size.cy);1372 pos=p WindowInfo->pChildInfo[i].pos;1373 size=p WindowInfo->pChildInfo[i].size;1371 pChildInfo->size.cx=32+(pChildInfo->size.cx-size.cx); 1372 pChildInfo->size.cy=32+(pChildInfo->size.cy-size.cy); 1373 pos=pChildInfo->pos; 1374 size=pChildInfo->size; 1374 1375 1375 1376 //ExStyleによる縁を再描画 1376 DrawItemEdgeByExStyle(WndNum,p WindowInfo->pChildInfo[i].ExStyle,&pos,&size);1377 DrawItemEdgeByExStyle(WndNum,pChildInfo->ExStyle,&pos,&size); 1377 1378 1378 1379 DrawIcon(hdc, … … 1395 1396 } 1396 1397 } 1397 else if((p WindowInfo->pChildInfo[i].style&0x0000000F)==SS_BITMAP){1398 else if((pChildInfo->style&0x0000000F)==SS_BITMAP){ 1398 1399 BITMAP Bitmap; 1399 1400 1400 if(p WindowInfo->pChildInfo[i].ImageCtrlInfo.type==IMGTYPE_FILE)1401 lstrcpy(temporary,p WindowInfo->pChildInfo[i].ImageCtrlInfo.path);1401 if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_FILE) 1402 lstrcpy(temporary,pChildInfo->ImageCtrlInfo.path); 1402 1403 else{ 1403 1404 for(i2=0;i2<ProjectInfo.res.NumberOfBitmapRes;i2++){ 1404 if(lstrcmp(p WindowInfo->pChildInfo[i].ImageCtrlInfo.path,1405 if(lstrcmp(pChildInfo->ImageCtrlInfo.path, 1405 1406 ProjectInfo.res.pBitmapResInfo[i2].IdName)==0) break; 1406 1407 } … … 1414 1415 GetObject(hImage,sizeof(BITMAP),&Bitmap); 1415 1416 1416 p WindowInfo->pChildInfo[i].size.cx=Bitmap.bmWidth+(pWindowInfo->pChildInfo[i].size.cx-size.cx);1417 p WindowInfo->pChildInfo[i].size.cy=Bitmap.bmHeight+(pWindowInfo->pChildInfo[i].size.cy-size.cy);1418 pos=p WindowInfo->pChildInfo[i].pos;1419 size=p WindowInfo->pChildInfo[i].size;1417 pChildInfo->size.cx=Bitmap.bmWidth+(pChildInfo->size.cx-size.cx); 1418 pChildInfo->size.cy=Bitmap.bmHeight+(pChildInfo->size.cy-size.cy); 1419 pos=pChildInfo->pos; 1420 size=pChildInfo->size; 1420 1421 1421 1422 //ExStyleによる縁を再描画 1422 DrawItemEdgeByExStyle(WndNum,p WindowInfo->pChildInfo[i].ExStyle,&pos,&size);1423 DrawItemEdgeByExStyle(WndNum,pChildInfo->ExStyle,&pos,&size); 1423 1424 1424 1425 memdc=CreateCompatibleDC(hdc); … … 1448 1449 } 1449 1450 1450 else if(p WindowInfo->pChildInfo[i].Control==CT_LISTBOX){1451 else if(pChildInfo->Control==CT_LISTBOX){ 1451 1452 ///////////////////////// 1452 1453 // ListBox コントロール 1453 1454 1454 1455 //内部 1455 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED)1456 if(pChildInfo->style&WS_DISABLED) 1456 1457 rgb=GetSysColor(COLOR_3DFACE); 1457 1458 else rgb=GetSysColor(COLOR_WINDOW); … … 1461 1462 rgb,rgb,1); 1462 1463 1463 if(p WindowInfo->pChildInfo[i].style&LBS_DISABLENOSCROLL)1464 DrawWindowScrollBar(WndNum,p WindowInfo->pChildInfo[i].style|WS_DISABLED,&pos,&size);1465 } 1466 1467 else if(p WindowInfo->pChildInfo[i].Control==CT_LISTVIEW){1464 if(pChildInfo->style&LBS_DISABLENOSCROLL) 1465 DrawWindowScrollBar(WndNum,pChildInfo->style|WS_DISABLED,&pos,&size); 1466 } 1467 1468 else if(pChildInfo->Control==CT_LISTVIEW){ 1468 1469 ////////////////////////// 1469 1470 // ListView コントロール 1470 1471 1471 1472 //内部 1472 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED)1473 if(pChildInfo->style&WS_DISABLED) 1473 1474 rgb=GetSysColor(COLOR_3DFACE); 1474 1475 else rgb=GetSysColor(COLOR_WINDOW); … … 1478 1479 rgb,rgb,1); 1479 1480 1480 if((p WindowInfo->pChildInfo[i].style&LVS_REPORT)&&1481 (!((p WindowInfo->pChildInfo[i].style&LVS_LIST)==LVS_LIST))){1481 if((pChildInfo->style&LVS_REPORT)&& 1482 (!((pChildInfo->style&LVS_LIST)==LVS_LIST))){ 1482 1483 //レポート ビュー 1483 1484 size.cy=16; … … 1486 1487 } 1487 1488 1488 else if(p WindowInfo->pChildInfo[i].Control==CT_PROGRESSBAR){1489 else if(pChildInfo->Control==CT_PROGRESSBAR){ 1489 1490 ///////////////////////////// 1490 1491 // ProgressBar コントロール … … 1496 1497 size.cy-=2; 1497 1498 rgb=GetSysColor(COLOR_ACTIVECAPTION); 1498 if(p WindowInfo->pChildInfo[i].style&PBS_SMOOTH){1499 if(p WindowInfo->pChildInfo[i].style&PBS_VERTICAL){1499 if(pChildInfo->style&PBS_SMOOTH){ 1500 if(pChildInfo->style&PBS_VERTICAL){ 1500 1501 pos.y+=(long)((double)size.cy*0.3); 1501 1502 DrawRectangleInClient(WndNum, … … 1512 1513 } 1513 1514 else{ 1514 if(p WindowInfo->pChildInfo[i].style&PBS_VERTICAL){1515 if(pChildInfo->style&PBS_VERTICAL){ 1515 1516 pos.y+=(long)((double)size.cy*0.3); 1516 1517 i3=(size.cx*2)/3; … … 1536 1537 } 1537 1538 1538 else if(p WindowInfo->pChildInfo[i].Control==CT_RADIOBUTTON){1539 else if(pChildInfo->Control==CT_RADIOBUTTON){ 1539 1540 ///////////////////////////// 1540 1541 // RadioButton コントロール 1541 1542 1542 if(p WindowInfo->pChildInfo[i].style&BS_PUSHLIKE){1543 if(pChildInfo->style&BS_PUSHLIKE){ 1543 1544 //ボタンの縁を描画 1544 1545 DrawButtonEdge(WndNum,&pos,&size); … … 1548 1549 size2.cx=12; 1549 1550 size2.cy=12; 1550 if(p WindowInfo->pChildInfo[i].style&BS_LEFTTEXT)1551 if(pChildInfo->style&BS_LEFTTEXT) 1551 1552 pos2.x=pos.x+size.cx-size2.cx; 1552 1553 else pos2.x=pos.x+1; 1553 if((p WindowInfo->pChildInfo[i].style&BS_VCENTER)==BS_VCENTER||1554 (p WindowInfo->pChildInfo[i].style&BS_VCENTER)==0)1554 if((pChildInfo->style&BS_VCENTER)==BS_VCENTER|| 1555 (pChildInfo->style&BS_VCENTER)==0) 1555 1556 pos2.y=pos.y+(size.cy/2)-(size2.cy/2); 1556 else if(p WindowInfo->pChildInfo[i].style&BS_TOP)1557 else if(pChildInfo->style&BS_TOP) 1557 1558 pos2.y=pos.y+1; 1558 else if(p WindowInfo->pChildInfo[i].style&BS_BOTTOM)1559 else if(pChildInfo->style&BS_BOTTOM) 1559 1560 pos2.y=pos.y+size.cy-size2.cy-1; 1560 1561 … … 1581 1582 //内部 1582 1583 else if(rgb==RGB(255,255,255)){ 1583 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED) rgb=GetSysColor(COLOR_3DFACE);1584 if(pChildInfo->style&WS_DISABLED) rgb=GetSysColor(COLOR_3DFACE); 1584 1585 } 1585 1586 … … 1599 1600 GlobalFree(pByte2); 1600 1601 1601 if(!(p WindowInfo->pChildInfo[i].style&BS_LEFTTEXT)) pos.x+=17;1602 if(!(pChildInfo->style&BS_LEFTTEXT)) pos.x+=17; 1602 1603 else pos.x++; 1603 1604 size.cx-=17; 1604 1605 } 1605 1606 1606 if(!(p WindowInfo->pChildInfo[i].style&(BS_ICON|BS_BITMAP))){1607 if(!(pChildInfo->style&(BS_ICON|BS_BITMAP))){ 1607 1608 //キャプション テキスト 1608 1609 rect.left=pos.x+1+MdiInfo[WndNum].MdiRadInfo->ClientPos.x; … … 1611 1612 rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum].MdiRadInfo->ClientPos.y; 1612 1613 1613 if(p WindowInfo->pChildInfo[i].style&BS_MULTILINE) i4=0;1614 if(pChildInfo->style&BS_MULTILINE) i4=0; 1614 1615 else i4=DT_SINGLELINE; 1615 1616 1616 1617 //ビットを考慮してBS_CENTERを最初に比較する 1617 if((p WindowInfo->pChildInfo[i].style&BS_CENTER)==BS_CENTER) i2=DT_CENTER;1618 else if(p WindowInfo->pChildInfo[i].style&BS_LEFT) i2=DT_LEFT;1619 else if(p WindowInfo->pChildInfo[i].style&BS_RIGHT) i2=DT_RIGHT;1618 if((pChildInfo->style&BS_CENTER)==BS_CENTER) i2=DT_CENTER; 1619 else if(pChildInfo->style&BS_LEFT) i2=DT_LEFT; 1620 else if(pChildInfo->style&BS_RIGHT) i2=DT_RIGHT; 1620 1621 else i2=DT_LEFT; 1621 1622 1622 1623 //ビットを考慮してBS_VCENTERを最初に比較する 1623 if((p WindowInfo->pChildInfo[i].style&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER;1624 else if(p WindowInfo->pChildInfo[i].style&BS_TOP) i3=DT_TOP;1625 else if(p WindowInfo->pChildInfo[i].style&BS_BOTTOM) i3=DT_BOTTOM;1624 if((pChildInfo->style&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER; 1625 else if(pChildInfo->style&BS_TOP) i3=DT_TOP; 1626 else if(pChildInfo->style&BS_BOTTOM) i3=DT_BOTTOM; 1626 1627 else i3=DT_VCENTER; 1627 1628 1628 1629 hOldFont=(HFONT)SelectObject(hdc,hFont); 1629 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED){1630 if(pChildInfo->style&WS_DISABLED){ 1630 1631 SetTextColor(hdc,RGB(255,255,255)); 1631 1632 rc2.left=rect.left+1; … … 1633 1634 rc2.right=rect.right+1; 1634 1635 rc2.bottom=rect.bottom+1; 1635 DrawText(hdc,p WindowInfo->pChildInfo[i].caption,-1,&rc2,i4|i2|i3);1636 DrawText(hdc,pChildInfo->caption,-1,&rc2,i4|i2|i3); 1636 1637 SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT)); 1637 1638 } 1638 1639 else SetTextColor(hdc,GetSysColor(COLOR_BTNTEXT)); 1639 1640 1640 DrawText(hdc,p WindowInfo->pChildInfo[i].caption,-1,&rect,i4|i2|i3);1641 DrawText(hdc,pChildInfo->caption,-1,&rect,i4|i2|i3); 1641 1642 SelectObject(hdc,hOldFont); 1642 1643 } 1643 1644 } 1644 1645 1645 else if(p WindowInfo->pChildInfo[i].Control==CT_STATIC){1646 else if(pChildInfo->Control==CT_STATIC){ 1646 1647 //////////////////////// 1647 1648 // Static コントロール … … 1654 1655 1655 1656 //ビットを考慮してSS_LEFTを最後に検討する 1656 if(p WindowInfo->pChildInfo[i].style&SS_CENTER) i2=DT_CENTER;1657 else if(p WindowInfo->pChildInfo[i].style&SS_RIGHT) i2=DT_RIGHT;1657 if(pChildInfo->style&SS_CENTER) i2=DT_CENTER; 1658 else if(pChildInfo->style&SS_RIGHT) i2=DT_RIGHT; 1658 1659 else i2=DT_LEFT; 1659 1660 1660 1661 hOldFont=(HFONT)SelectObject(hdc,hFont); 1661 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED){1662 if(pChildInfo->style&WS_DISABLED){ 1662 1663 SetTextColor(hdc,RGB(255,255,255)); 1663 1664 rc2.left=rect.left+1; … … 1665 1666 rc2.right=rect.right+1; 1666 1667 rc2.bottom=rect.bottom+1; 1667 DrawText(hdc,p WindowInfo->pChildInfo[i].caption,-1,&rc2,i2);1668 DrawText(hdc,pChildInfo->caption,-1,&rc2,i2); 1668 1669 SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT)); 1669 1670 } … … 1672 1673 1673 1674 //折り返すかどうか 1674 if(!(p WindowInfo->pChildInfo[i].style&SS_LEFTNOWORDWRAP)){1675 if(!(pChildInfo->style&SS_LEFTNOWORDWRAP)){ 1675 1676 i2|=DT_WORDBREAK; 1676 1677 } 1677 1678 1678 DrawText(hdc,p WindowInfo->pChildInfo[i].caption,-1,&rect,i2);1679 DrawText(hdc,pChildInfo->caption,-1,&rect,i2); 1679 1680 SelectObject(hdc,hOldFont); 1680 1681 } 1681 1682 1682 else if(p WindowInfo->pChildInfo[i].Control==CT_TRACKBAR){1683 else if(pChildInfo->Control==CT_TRACKBAR){ 1683 1684 ////////////////////////// 1684 1685 // TrackBar コントロール 1685 1686 1686 if(p WindowInfo->pChildInfo[i].style&TBS_VERT){1687 if(pChildInfo->style&TBS_VERT){ 1687 1688 pos.x+=2; 1688 1689 size.cx-=2; … … 1718 1719 } 1719 1720 1720 else if(p WindowInfo->pChildInfo[i].Control==CT_TREEVIEW){1721 else if(pChildInfo->Control==CT_TREEVIEW){ 1721 1722 ////////////////////////// 1722 1723 // TreeView コントロール 1723 1724 1724 1725 //内部 1725 if(p WindowInfo->pChildInfo[i].style&WS_DISABLED)1726 if(pChildInfo->style&WS_DISABLED) 1726 1727 rgb=GetSysColor(COLOR_3DFACE); 1727 1728 else rgb=GetSysColor(COLOR_WINDOW); … … 1732 1733 } 1733 1734 1734 else if(p WindowInfo->pChildInfo[i].Control==CT_UPDOWN){1735 else if(pChildInfo->Control==CT_UPDOWN){ 1735 1736 /////////////////////////////// 1736 1737 // アップ ダウン コントロール 1737 if(p WindowInfo->pChildInfo[i].style&UDS_HORZ)1738 DrawUpDownControl(WndNum,p WindowInfo->pChildInfo[i].style,0,&pos,&size);1739 else DrawUpDownControl(WndNum,p WindowInfo->pChildInfo[i].style,1,&pos,&size);1740 } 1741 1742 else if(p WindowInfo->pChildInfo[i].Control==CT_VSCROLLBAR){1738 if(pChildInfo->style&UDS_HORZ) 1739 DrawUpDownControl(WndNum,pChildInfo->style,0,&pos,&size); 1740 else DrawUpDownControl(WndNum,pChildInfo->style,1,&pos,&size); 1741 } 1742 1743 else if(pChildInfo->Control==CT_VSCROLLBAR){ 1743 1744 //////////////////////////////////// 1744 1745 // 垂直スクロールバー コントロール 1745 DrawScrollBar(WndNum,p WindowInfo->pChildInfo[i].style,1,&pos,&size);1746 DrawScrollBar(WndNum,pChildInfo->style,1,&pos,&size); 1746 1747 } 1747 1748 } -
trunk/ab5.0/abdev/abdev/MessageCallOperation.cpp
r615 r616 21 21 22 22 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 23 for(i=0;i<pWindowInfo->NumberOfChildWindows;i++){ 24 if(lstrcmp(buffer,pWindowInfo->pChildInfo[i].IdName)==0) break; 25 } 26 if(i==pWindowInfo->NumberOfChildWindows) return 0; 27 28 return pWindowInfo->pChildInfo[i].Control; 23 BOOST_FOREACH( CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos ) 24 { 25 if(lstrcmp(buffer,pChildInfo->IdName)==0) 26 { 27 return pChildInfo->Control; 28 } 29 } 30 31 return 0; 29 32 } 30 33 char **GetProcedureNamesOfMessageCall(int WndInfoNum,ITEMEVENTINFO **ppItemEventInfo,int *num,BOOL *pbAlways){ … … 297 300 sprintf(EventName,"%s_%s_%s", 298 301 pWindowInfo->name, 299 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].IdName,302 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->IdName, 300 303 temporary); 301 304 break; … … 304 307 if(i==MaxCount) return 0; 305 308 306 if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_LISTVIEW){309 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW){ 307 310 //ListView 308 311 if(i==0) lstrcpy(Parameter,"ByRef nmListView As NMLISTVIEW"); … … 328 331 else if(i==20) lstrcpy(Parameter,"ByRef nmLVDispInfo As NMLVDISPINFO"); 329 332 } 330 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_PROGRESSBAR){333 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR){ 331 334 //ProgressBar 332 335 lstrcpy(Parameter,"ByRef nmHdr As NMHDR"); 333 336 } 334 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_TRACKBAR){337 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR){ 335 338 //TrackBar 336 339 lstrcpy(Parameter,"ByRef nmHdr As NMHDR"); 337 340 } 338 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_TREEVIEW){341 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW){ 339 342 //TreeView 340 343 if(0<=i&&i<=7) lstrcpy(Parameter,"ByRef nmHdr As NMHDR"); 341 344 else lstrcpy(Parameter,"ByRef nmTreeView As NMTREEVIEW"); 342 345 } 343 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_UPDOWN){346 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN){ 344 347 //UpDown 345 348 if(i==0) lstrcpy(Parameter,"ByRef nmHdr As NMHDR"); … … 459 462 EnableWindow(GetDlgItem(hDlg,IDC_MMSYS),0); 460 463 SendDlgItemMessage(hDlg,IDC_DEFAULT,BM_SETCHECK,BST_CHECKED,0); 461 if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_BUTTON){464 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_BUTTON){ 462 465 //Button 463 466 InsertEventToList(hList,i++,"Click","BN_CLICKED","ボタンがクリックされた時"); 464 467 InsertEventToList(hList,i++,"DblClick","BN_DBLCLK","ボタンがダブル クリックされた時"); 465 468 } 466 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_CHECKBOX){469 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX){ 467 470 //CheckBox 468 471 InsertEventToList(hList,i++,"Click","BN_CLICKED","チェック ボックスがクリックされた時"); 469 472 InsertEventToList(hList,i++,"DblClick","BN_DBLCLK","チェック ボックスがダブル クリックされた時"); 470 473 } 471 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_COMBOBOX){474 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_COMBOBOX){ 472 475 //ComboBox 473 476 InsertEventToList(hList,i++,"CloseUp","CBN_CLOSEUP","リスト ボックスが非表示になる時"); … … 483 486 InsertEventToList(hList,i++,"SetFocus","CBN_SETFOCUS","入力フォーカスを取得した時"); 484 487 } 485 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_EDIT){488 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT){ 486 489 //Edit 487 490 InsertEventToList(hList,i++,"Change","EN_CHANGE","エディット ボックスの内容が変更された時(後処理)"); … … 494 497 InsertEventToList(hList,i++,"VScroll","EN_VSCROLL","垂直スクロールを行った時"); 495 498 } 496 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_IMAGEBOX){499 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX){ 497 500 //ImageBox 498 501 InsertEventToList(hList,i++,"Click","STN_CLICKED","イメージ ボックスがクリックされた時"); 499 502 InsertEventToList(hList,i++,"DblClick","STN_DBLCLK","イメージ ボックスがダブル クリックされた時"); 500 503 } 501 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_LISTBOX){504 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX){ 502 505 //ListBox 503 506 InsertEventToList(hList,i++,"SelChange","LBN_SELCHANGE","リスト内の選択が変更された時"); … … 508 511 InsertEventToList(hList,i++,"SetFocus","LBN_SETFOCUS","入力フォーカスを取得した時"); 509 512 } 510 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_LISTVIEW){513 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW){ 511 514 //ListView 512 515 i=SetDefaultNotifyMessagesInList(hList,CT_LISTVIEW); 513 516 } 514 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_PROGRESSBAR){517 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR){ 515 518 //ProgressBar 516 519 InsertEventToList(hList,i++,"OutOfMemory","NM_OUTOFMEMORY","メモリ不足でコントロールの動作が完了できない時"); 517 520 } 518 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_RADIOBUTTON){521 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON){ 519 522 //RadioButton 520 523 InsertEventToList(hList,i++,"Click","BN_CLICKED","ラジオ ボタンがクリックされた時"); 521 524 InsertEventToList(hList,i++,"DblClick","BN_DBLCLK","ラジオ ボタンがダブル クリックされた時"); 522 525 } 523 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_STATIC){526 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC){ 524 527 //Static 525 528 InsertEventToList(hList,i++,"Click","STN_CLICKED","スタティック テキストがクリックされた時"); 526 529 InsertEventToList(hList,i++,"DblClick","STN_DBLCLK","スタティック テキストがダブル クリックされた時"); 527 530 } 528 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_TRACKBAR){531 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR){ 529 532 //TrackBar 530 533 InsertEventToList(hList,i++,"OutOfMemory","NM_OUTOFMEMORY","メモリ不足でコントロールの動作が完了できない時"); … … 532 535 InsertEventToList(hList,i++,"CustomDraw","NM_CUSTOMDRAW ","カスタム描画操作の通知"); 533 536 } 534 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_TREEVIEW){537 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW){ 535 538 //TreeView 536 539 i=SetDefaultNotifyMessagesInList(hList,CT_TREEVIEW); 537 540 } 538 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_UPDOWN){541 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN){ 539 542 //UpDown 540 543 InsertEventToList(hList,i++,"OutOfMemory","NM_OUTOFMEMORY","メモリ不足でコントロールの動作が完了できない時"); -
trunk/ab5.0/abdev/abdev/ProjectControl.cpp
r615 r616 1076 1076 windowInfos.back()->type=WNDTYPE_DEFAULT; 1077 1077 windowInfos.back()->filepath="MainWnd.ab"; 1078 windowInfos.back()->NumberOfChildWindows=0;1079 1078 sprintf(temporary,"%s%s.wnd",dir,NewProjectInfo.name); 1080 1079 … … 1944 1943 1945 1944 //子ウィンドウのメモリを解放 1946 for(i2=0;i2<pWindowInfo-> NumberOfChildWindows;i2++){1947 HeapDefaultFree(pWindowInfo-> pChildInfo[i2].IdName);1948 HeapDefaultFree(pWindowInfo-> pChildInfo[i2].caption);1949 if(pWindowInfo-> pChildInfo[i2].Control==CT_IMAGEBOX){1945 for(i2=0;i2<pWindowInfo->childWindowInfos.size();i2++){ 1946 HeapDefaultFree(pWindowInfo->childWindowInfos[i2]->IdName); 1947 HeapDefaultFree(pWindowInfo->childWindowInfos[i2]->caption); 1948 if(pWindowInfo->childWindowInfos[i2]->Control==CT_IMAGEBOX){ 1950 1949 //イメージ ボックスの場合 1951 HeapDefaultFree(pWindowInfo->pChildInfo[i2].ImageCtrlInfo.path); 1952 } 1953 } 1954 HeapDefaultFree(pWindowInfo->pChildInfo); 1950 HeapDefaultFree(pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path); 1951 } 1952 1953 delete pWindowInfo->childWindowInfos[i2]; 1954 } 1955 pWindowInfo->childWindowInfos.clear(); 1955 1956 } 1956 1957 ProjectInfo.windowInfos.Clear(); -
trunk/ab5.0/abdev/abdev/RadProc.cpp
r615 r616 163 163 int i,i2,NewItemNum; 164 164 char temporary[MAX_PATH]; 165 CHILDINFO *pChildInfo;166 165 167 166 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 168 167 169 pWindowInfo->pChildInfo=(CHILDINFO *)HeapReAlloc(hHeap,0,pWindowInfo->pChildInfo,(pWindowInfo->NumberOfChildWindows+1)*sizeof(WindowInfo)); 168 CHILDINFO *pChildInfo = new CHILDINFO(); 169 170 170 if(ItemNum==-1) 171 NewItemNum=pWindowInfo->NumberOfChildWindows; 172 else{ 173 for(i=pWindowInfo->NumberOfChildWindows;i>ItemNum;i--) 174 pWindowInfo->pChildInfo[i]=pWindowInfo->pChildInfo[i-1]; 171 { 172 NewItemNum = pWindowInfo->childWindowInfos.size(); 173 pWindowInfo->childWindowInfos.push_back( pChildInfo ); 174 } 175 else 176 { 177 std::vector<CHILDINFO *>::iterator it = pWindowInfo->childWindowInfos.begin(); 178 for( int i=0; i<ItemNum; i++ ) 179 { 180 it++; 181 } 182 pWindowInfo->childWindowInfos.insert( it, pChildInfo ); 183 175 184 NewItemNum=ItemNum; 176 185 } 177 pChildInfo=&pWindowInfo->pChildInfo[NewItemNum];178 186 179 187 //ID … … 197 205 else sprintf(temporary,"%s%d",IdName,i2); 198 206 SearchStart: 199 for(i=0;i<pWindowInfo-> NumberOfChildWindows;i++){207 for(i=0;i<pWindowInfo->childWindowInfos.size();i++){ 200 208 if(i!=NewItemNum){ 201 if(lstrcmp(pWindowInfo-> pChildInfo[i].IdName,temporary)==0){209 if(lstrcmp(pWindowInfo->childWindowInfos[i]->IdName,temporary)==0){ 202 210 i2++; 203 211 sprintf(temporary,"%s%d",IdName,i2); … … 254 262 Rad_NoticeChanging(WndNum,RAD_UNDO_INSERTITEM,NewItemNum,(DWORD)pChildInfo); 255 263 256 pWindowInfo->NumberOfChildWindows++;257 258 264 DrawRadWindow(WndNum,pWindowInfo); 259 265 return NewItemNum; … … 268 274 //変更情報 269 275 if(bNoticeChanging) 270 Rad_NoticeChanging(WndNum,RAD_UNDO_DELETEITEM,ItemNum,(DWORD) &pWindowInfo->pChildInfo[ItemNum]);276 Rad_NoticeChanging(WndNum,RAD_UNDO_DELETEITEM,ItemNum,(DWORD)pWindowInfo->childWindowInfos[ItemNum]); 271 277 272 278 //子ウィンドウのメモリを解放 273 HeapDefaultFree(pWindowInfo-> pChildInfo[ItemNum].IdName);274 HeapDefaultFree(pWindowInfo-> pChildInfo[ItemNum].caption);275 if(pWindowInfo-> pChildInfo[ItemNum].Control==CT_IMAGEBOX){279 HeapDefaultFree(pWindowInfo->childWindowInfos[ItemNum]->IdName); 280 HeapDefaultFree(pWindowInfo->childWindowInfos[ItemNum]->caption); 281 if(pWindowInfo->childWindowInfos[ItemNum]->Control==CT_IMAGEBOX){ 276 282 //イメージ ボックスの場合 277 HeapDefaultFree(pWindowInfo->pChildInfo[ItemNum].ImageCtrlInfo.path); 278 } 279 280 pWindowInfo->NumberOfChildWindows--; 281 for(i=ItemNum;i<pWindowInfo->NumberOfChildWindows;i++) 283 HeapDefaultFree(pWindowInfo->childWindowInfos[ItemNum]->ImageCtrlInfo.path); 284 } 285 delete pWindowInfo->childWindowInfos[ItemNum]; 286 287 std::vector<CHILDINFO *>::iterator it = pWindowInfo->childWindowInfos.begin(); 288 for( int i=0; i<ItemNum; i++ ) 282 289 { 283 pWindowInfo->pChildInfo[i]=pWindowInfo->pChildInfo[i+1]; 284 } 285 if( pWindowInfo->NumberOfChildWindows == 0 ) 286 { 287 pWindowInfo->pChildInfo=(CHILDINFO *)HeapReAlloc(hHeap,0,pWindowInfo->pChildInfo,1); 288 } 289 else 290 { 291 pWindowInfo->pChildInfo=(CHILDINFO *)HeapReAlloc(hHeap,0,pWindowInfo->pChildInfo,pWindowInfo->NumberOfChildWindows*sizeof(CHILDINFO)); 292 } 290 it++; 291 } 292 pWindowInfo->childWindowInfos.erase( it ); 293 293 294 294 DrawRadWindow(WndNum,pWindowInfo); … … 353 353 sw=0; 354 354 if(pobj_nv->bLineAdjust&&bLA){ 355 for(i=0;i<pWindowInfo->NumberOfChildWindows;i++){ 355 for(i=0;i<pWindowInfo->childWindowInfos.size();i++){ 356 const CHILDINFO *pChildInfo = pWindowInfo->childWindowInfos[i]; 356 357 if(i==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]) continue; 357 if(p WindowInfo->pChildInfo[i].Control !=358 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control) continue;358 if(pChildInfo->Control != 359 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control) continue; 359 360 360 361 if(NewRect->left<OldRect->left){ 361 if(p WindowInfo->pChildInfo[i].pos.x362 if(pChildInfo->pos.x 362 363 > 363 364 NewRect->left - MdiInfo[WndNum].MdiRadInfo->ClientPos.x 364 365 && 365 p WindowInfo->pChildInfo[i].pos.x-10366 pChildInfo->pos.x-10 366 367 < 367 368 NewRect->left - MdiInfo[WndNum].MdiRadInfo->ClientPos.x){ … … 369 370 //左側をストップする 370 371 x=NewRect->right-NewRect->left; 371 NewRect->left=p WindowInfo->pChildInfo[i].pos.x + MdiInfo[WndNum].MdiRadInfo->ClientPos.x;372 NewRect->left=pChildInfo->pos.x + MdiInfo[WndNum].MdiRadInfo->ClientPos.x; 372 373 NewRect->right=NewRect->left+x; 373 374 … … 384 385 } 385 386 if(NewRect->top<OldRect->top){ 386 if(p WindowInfo->pChildInfo[i].pos.y387 if(pChildInfo->pos.y 387 388 > 388 389 NewRect->top - MdiInfo[WndNum].MdiRadInfo->ClientPos.y 389 390 && 390 p WindowInfo->pChildInfo[i].pos.y-10391 pChildInfo->pos.y-10 391 392 < 392 393 NewRect->top - MdiInfo[WndNum].MdiRadInfo->ClientPos.y){ … … 394 395 //左側をストップする 395 396 y=NewRect->bottom-NewRect->top; 396 NewRect->top=p WindowInfo->pChildInfo[i].pos.y + MdiInfo[WndNum].MdiRadInfo->ClientPos.y;397 NewRect->top=pChildInfo->pos.y + MdiInfo[WndNum].MdiRadInfo->ClientPos.y; 397 398 NewRect->bottom=NewRect->top+y; 398 399 … … 460 461 else{ 461 462 //子ウィンドウを選択 462 rect->left=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]].pos.x-LEVER_THICK;463 rect->top=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]].pos.y-LEVER_THICK;464 rect->right=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]].pos.x+pWindowInfo->pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]].size.cx+LEVER_THICK;465 rect->bottom=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]].pos.y+pWindowInfo->pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]].size.cy+LEVER_THICK;463 rect->left=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]]->pos.x-LEVER_THICK; 464 rect->top=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]]->pos.y-LEVER_THICK; 465 rect->right=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]]->pos.x+pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]]->size.cx+LEVER_THICK; 466 rect->bottom=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]]->pos.y+pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]]->size.cy+LEVER_THICK; 466 467 } 467 468 } … … 561 562 } 562 563 else{ 563 if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_BUTTON)564 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_BUTTON) 564 565 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_BUTTON),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ButtonProc); 565 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_CHECKBOX)566 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX) 566 567 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_CHECKBOX),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_CheckBoxProc); 567 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_COMBOBOX)568 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_COMBOBOX) 568 569 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_COMBOBOX),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ComboBoxProc); 569 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_EDIT)570 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT) 570 571 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_EDIT),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_EditProc); 571 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_GROUPBOX)572 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_GROUPBOX) 572 573 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_GROUPBOX),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_GroupBoxProc); 573 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_HSCROLLBAR)574 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_HSCROLLBAR) 574 575 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_SCROLLBAR),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ScrollBarProc); 575 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_IMAGEBOX)576 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX) 576 577 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_IMAGEBOX),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ImageBoxProc); 577 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_LISTBOX)578 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX) 578 579 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_LISTBOX),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ListBoxProc); 579 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_LISTVIEW)580 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW) 580 581 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_LISTVIEW),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ListViewProc); 581 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_PROGRESSBAR)582 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR) 582 583 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_PROGRESSBAR),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ProgressBarProc); 583 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_RADIOBUTTON)584 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON) 584 585 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_RADIOBUTTON),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_RadioButtonProc); 585 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_STATIC)586 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC) 586 587 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_STATIC),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_StaticProc); 587 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_TRACKBAR)588 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR) 588 589 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_TRACKBAR),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_TrackBarProc); 589 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_TREEVIEW)590 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW) 590 591 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_TREEVIEW),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_TreeViewProc); 591 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_UPDOWN)592 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN) 592 593 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_UPDOWN),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_UpDownProc); 593 else if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_VSCROLLBAR)594 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_VSCROLLBAR) 594 595 MdiInfo[WndNum].MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_SCROLLBAR),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ScrollBarProc); 595 596 … … 609 610 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 610 611 611 for(i=pWindowInfo-> NumberOfChildWindows-1;i>=0;i--){612 if(pWindowInfo-> pChildInfo[i].Control==CT_COMBOBOX&&613 (pWindowInfo-> pChildInfo[i].style&0x000F)!=CBS_SIMPLE){612 for(i=pWindowInfo->childWindowInfos.size()-1;i>=0;i--){ 613 if(pWindowInfo->childWindowInfos[i]->Control==CT_COMBOBOX&& 614 (pWindowInfo->childWindowInfos[i]->style&0x000F)!=CBS_SIMPLE){ 614 615 //コンボ ボックスの場合は表示部分をターゲットに選択する(高さ20pixel) 615 if(x>=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[i].pos.x&&616 x<=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[i].pos.x+pWindowInfo->pChildInfo[i].size.cx&&617 y>=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[i].pos.y&&618 y<=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[i].pos.y+20){616 if(x>=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x&& 617 x<=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx&& 618 y>=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y&& 619 y<=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+20){ 619 620 break; 620 621 } 621 622 } 622 else if(pWindowInfo-> pChildInfo[i].Control==CT_GROUPBOX){623 else if(pWindowInfo->childWindowInfos[i]->Control==CT_GROUPBOX){ 623 624 //グループ ボックスの場合は中央をあける 624 625 if(( 625 x>=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[i].pos.x&&626 x<=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[i].pos.x+pWindowInfo->pChildInfo[i].size.cx&&627 y>=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[i].pos.y&&628 y<=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[i].pos.y+pWindowInfo->pChildInfo[i].size.cy626 x>=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x&& 627 x<=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx&& 628 y>=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y&& 629 y<=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+pWindowInfo->childWindowInfos[i]->size.cy 629 630 )&& 630 631 (!( 631 x>=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[i].pos.x+LEVER_THICK*2&&632 x<=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[i].pos.x+pWindowInfo->pChildInfo[i].size.cx-LEVER_THICK*2&&633 y>=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[i].pos.y+LEVER_THICK*3&&634 y<=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[i].pos.y+pWindowInfo->pChildInfo[i].size.cy-LEVER_THICK*2632 x>=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+LEVER_THICK*2&& 633 x<=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx-LEVER_THICK*2&& 634 y>=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+LEVER_THICK*3&& 635 y<=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+pWindowInfo->childWindowInfos[i]->size.cy-LEVER_THICK*2 635 636 )) 636 637 ){ … … 638 639 } 639 640 } 640 else if(x>=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[i].pos.x&&641 x<=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[i].pos.x+pWindowInfo->pChildInfo[i].size.cx&&642 y>=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[i].pos.y&&643 y<=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[i].pos.y+pWindowInfo->pChildInfo[i].size.cy){641 else if(x>=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x&& 642 x<=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx&& 643 y>=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y&& 644 y<=MdiInfo[WndNum].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+pWindowInfo->childWindowInfos[i]->size.cy){ 644 645 break; 645 646 } … … 682 683 if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) sw=0; 683 684 else sw=1; 684 for(i=pWindowInfo-> NumberOfChildWindows-1,i2=0;i>=0;i--){685 if(rect.left <= pWindowInfo-> pChildInfo[i].pos.x+MdiInfo[WndNum].MdiRadInfo->ClientPos.x&&686 rect.top <= pWindowInfo-> pChildInfo[i].pos.y+MdiInfo[WndNum].MdiRadInfo->ClientPos.y&&687 rect.right >= pWindowInfo-> pChildInfo[i].pos.x+pWindowInfo->pChildInfo[i].size.cx+MdiInfo[WndNum].MdiRadInfo->ClientPos.x&&688 rect.bottom >= pWindowInfo-> pChildInfo[i].pos.y+pWindowInfo->pChildInfo[i].size.cy+MdiInfo[WndNum].MdiRadInfo->ClientPos.y){685 for(i=pWindowInfo->childWindowInfos.size()-1,i2=0;i>=0;i--){ 686 if(rect.left <= pWindowInfo->childWindowInfos[i]->pos.x+MdiInfo[WndNum].MdiRadInfo->ClientPos.x&& 687 rect.top <= pWindowInfo->childWindowInfos[i]->pos.y+MdiInfo[WndNum].MdiRadInfo->ClientPos.y&& 688 rect.right >= pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx+MdiInfo[WndNum].MdiRadInfo->ClientPos.x&& 689 rect.bottom >= pWindowInfo->childWindowInfos[i]->pos.y+pWindowInfo->childWindowInfos[i]->size.cy+MdiInfo[WndNum].MdiRadInfo->ClientPos.y){ 689 690 MdiInfo[WndNum].MdiRadInfo->SelectingItem[i2]=i; 690 691 i2++; … … 710 711 if(x>=rect.left+LEVER_THICK&&x<=rect.right-LEVER_THICK&& 711 712 y>=rect.top+LEVER_THICK&&y<=rect.bottom-LEVER_THICK){ 712 if(pWindowInfo->pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[i]].Control==CT_GROUPBOX){713 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[i]]->Control==CT_GROUPBOX){ 713 714 //グループボックスの場合は中央をあける 714 715 if(!(x>=rect.left+LEVER_THICK*2&&x<=rect.right-LEVER_THICK*2&& … … 728 729 if(x>=rect.left+LEVER_THICK&&x<=rect.right-LEVER_THICK&& 729 730 y>=rect.top+LEVER_THICK&&y<=rect.bottom-LEVER_THICK){ 730 if(pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].Control==CT_GROUPBOX){731 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->Control==CT_GROUPBOX){ 731 732 //グループ ボックスの場合は中央をあける 732 733 if(!(x>=rect.left+LEVER_THICK*3&&x<=rect.right-LEVER_THICK*3&& … … 855 856 i3=0; 856 857 while(MdiInfo[i].MdiRadInfo->SelectingItem[i3]!=-1){ 857 RadInfo.DraggingRect[i3].left=MdiInfo[i].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.x;858 RadInfo.DraggingRect[i3].top=MdiInfo[i].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.y;859 RadInfo.DraggingRect[i3].right=MdiInfo[i].MdiRadInfo->ClientPos.x+pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.x+pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size.cx;860 RadInfo.DraggingRect[i3].bottom=MdiInfo[i].MdiRadInfo->ClientPos.y+pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.y+pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size.cy;858 RadInfo.DraggingRect[i3].left=MdiInfo[i].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.x; 859 RadInfo.DraggingRect[i3].top=MdiInfo[i].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.y; 860 RadInfo.DraggingRect[i3].right=MdiInfo[i].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.x+pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size.cx; 861 RadInfo.DraggingRect[i3].bottom=MdiInfo[i].MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.y+pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size.cy; 861 862 RadInfo.DragStartRect[i3]=RadInfo.DraggingRect[i3]; 862 863 i3++; … … 930 931 while(MdiInfo[i].MdiRadInfo->SelectingItem[i3]!=-1){ 931 932 //アイテム枠の調整完了 932 PointAndSize.pos=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos;933 PointAndSize.size=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size;933 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos; 934 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size; 934 935 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 935 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.x=RadInfo.DraggingRect[i3].left-MdiInfo[i].MdiRadInfo->ClientPos.x;936 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.y=RadInfo.DraggingRect[i3].top-MdiInfo[i].MdiRadInfo->ClientPos.y;937 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size.cx=RadInfo.DraggingRect[i3].right-RadInfo.DraggingRect[i3].left;938 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size.cy=RadInfo.DraggingRect[i3].bottom-RadInfo.DraggingRect[i3].top;936 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.x=RadInfo.DraggingRect[i3].left-MdiInfo[i].MdiRadInfo->ClientPos.x; 937 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.y=RadInfo.DraggingRect[i3].top-MdiInfo[i].MdiRadInfo->ClientPos.y; 938 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size.cx=RadInfo.DraggingRect[i3].right-RadInfo.DraggingRect[i3].left; 939 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size.cy=RadInfo.DraggingRect[i3].bottom-RadInfo.DraggingRect[i3].top; 939 940 DrawRadWindow(i,pWindowInfo); 940 941 i3++; … … 1444 1445 if(MdiInfo[i].MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW){ 1445 1446 temp2[0]=0; 1446 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_BUTTON||1447 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_CHECKBOX||1448 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_IMAGEBOX||1449 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_RADIOBUTTON||1450 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_STATIC){1451 sprintf(temporary,"%s_%s_Click",pWindowInfo->name,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);1452 } 1453 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_COMBOBOX)1454 sprintf(temporary,"%s_%s_EditChange",pWindowInfo->name,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);1455 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_EDIT)1456 sprintf(temporary,"%s_%s_Change",pWindowInfo->name,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);1457 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_LISTBOX)1458 sprintf(temporary,"%s_%s_SelChange",pWindowInfo->name,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);1447 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_BUTTON|| 1448 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX|| 1449 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX|| 1450 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); 1453 } 1454 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); 1456 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); 1458 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); 1459 1460 else temporary[0]=0; 1460 1461 if(temporary[0]) SelectProcedureOfMessageCall(i2,temporary,temp2); … … 1496 1497 } 1497 1498 else{ 1498 PointAndSize.pos=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].pos;1499 PointAndSize.size=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size;1499 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->pos; 1500 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size; 1500 1501 if(wParam==VK_RIGHT){ 1501 1502 if(GetKeyState(VK_SHIFT)&0x8000){ 1502 1503 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1503 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx++;1504 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size.cx++; 1504 1505 } 1505 1506 else{ 1506 1507 for(i3=0;;i3++){ 1507 1508 if(MdiInfo[i].MdiRadInfo->SelectingItem[i3]==-1) break; 1508 PointAndSize.pos=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos;1509 PointAndSize.size=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size;1509 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos; 1510 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size; 1510 1511 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 1511 1512 1512 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.x++;1513 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.x++; 1513 1514 } 1514 1515 } … … 1522 1523 if(GetKeyState(VK_SHIFT)&0x8000){ 1523 1524 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1524 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx--;1525 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size.cx--; 1525 1526 } 1526 1527 else{ 1527 1528 for(i3=0;;i3++){ 1528 1529 if(MdiInfo[i].MdiRadInfo->SelectingItem[i3]==-1) break; 1529 PointAndSize.pos=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos;1530 PointAndSize.size=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size;1530 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos; 1531 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size; 1531 1532 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 1532 1533 1533 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.x--;1534 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.x--; 1534 1535 } 1535 1536 } … … 1543 1544 if(GetKeyState(VK_SHIFT)&0x8000){ 1544 1545 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1545 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cy--;1546 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size.cy--; 1546 1547 } 1547 1548 else{ 1548 1549 for(i3=0;;i3++){ 1549 1550 if(MdiInfo[i].MdiRadInfo->SelectingItem[i3]==-1) break; 1550 PointAndSize.pos=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos;1551 PointAndSize.size=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size;1551 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos; 1552 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size; 1552 1553 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 1553 1554 1554 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.y--;1555 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.y--; 1555 1556 } 1556 1557 } … … 1564 1565 if(GetKeyState(VK_SHIFT)&0x8000){ 1565 1566 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1566 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cy++;1567 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size.cy++; 1567 1568 } 1568 1569 else{ 1569 1570 for(i3=0;;i3++){ 1570 1571 if(MdiInfo[i].MdiRadInfo->SelectingItem[i3]==-1) break; 1571 PointAndSize.pos=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos;1572 PointAndSize.size=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].size;1572 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos; 1573 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->size; 1573 1574 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 1574 1575 1575 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[i3]].pos.y++;1576 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.y++; 1576 1577 } 1577 1578 } -
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 } -
trunk/ab5.0/abdev/abdev/RadToolsAndPropertyProc.cpp
r615 r616 1126 1126 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->caption); 1127 1127 else 1128 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption);1128 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption); 1129 1129 break; 1130 1130 } … … 1153 1153 } 1154 1154 else{ 1155 if(lstrcmp(temporary,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption)==0){1155 if(lstrcmp(temporary,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption)==0){ 1156 1156 HeapDefaultFree(temporary); 1157 1157 SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); … … 1160 1160 1161 1161 //変更情報を更新 1162 Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption);1163 1164 HeapDefaultFree(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption);1165 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption=temporary;1166 1167 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_STATIC){1162 Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption); 1163 1164 HeapDefaultFree(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption); 1165 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption=temporary; 1166 1167 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC){ 1168 1168 //スタティック テキスト 1169 1169 //テキストが表示できるようにサイズを拡大する 1170 1170 1171 PointAndSize.pos=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].pos;1172 PointAndSize.size=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size;1171 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->pos; 1172 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size; 1173 1173 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1174 1174 … … 1183 1183 PointAndSize.size.cx+=5; 1184 1184 1185 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx<PointAndSize.size.cx)1186 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx=PointAndSize.size.cx;1185 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size.cx<PointAndSize.size.cx) 1186 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size.cx=PointAndSize.size.cx; 1187 1187 } 1188 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_CHECKBOX){1188 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX){ 1189 1189 //チェック ボックス 1190 1190 //テキストが表示できるようにサイズを拡大する 1191 1191 1192 PointAndSize.pos=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].pos;1193 PointAndSize.size=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size;1192 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->pos; 1193 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size; 1194 1194 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1195 1195 … … 1204 1204 PointAndSize.size.cx+=21; 1205 1205 1206 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx<PointAndSize.size.cx)1207 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx=PointAndSize.size.cx;1206 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size.cx<PointAndSize.size.cx) 1207 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size.cx=PointAndSize.size.cx; 1208 1208 } 1209 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].Control==CT_RADIOBUTTON){1209 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON){ 1210 1210 //ラジオ ボックス 1211 1211 //テキストが表示できるようにサイズを拡大する 1212 1212 1213 PointAndSize.pos=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].pos;1214 PointAndSize.size=pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size;1213 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->pos; 1214 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size; 1215 1215 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1216 1216 … … 1225 1225 PointAndSize.size.cx+=20; 1226 1226 1227 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx<PointAndSize.size.cx)1228 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].size.cx=PointAndSize.size.cx;1227 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size.cx<PointAndSize.size.cx) 1228 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->size.cx=PointAndSize.size.cx; 1229 1229 } 1230 1230 } … … 1254 1254 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1255 1255 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1256 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);1256 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1257 1257 } 1258 1258 break; … … 1272 1272 temporary=(char *)HeapAlloc(hHeap,0,i3); 1273 1273 GetDlgItemText(hwnd,IDC_IDNAME,temporary,i3); 1274 if(lstrcmp(temporary,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName)==0){1274 if(lstrcmp(temporary,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName)==0){ 1275 1275 HeapDefaultFree(temporary); 1276 1276 SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); … … 1282 1282 1283 1283 //変更情報を更新 1284 Rad_NoticeChanging(i,RAD_UNDO_NAME,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);1285 1286 HeapDefaultFree(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);1287 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName=temporary;1284 Rad_NoticeChanging(i,RAD_UNDO_NAME,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1285 1286 HeapDefaultFree(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1287 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName=temporary; 1288 1288 1289 1289 EndDialog(hwnd,1); … … 1307 1307 case IDC_RENAMEID: 1308 1308 if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMEID),hwnd,(DLGPROC)DlgRadProperty_Item_RenameID)) return 1; 1309 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].IdName);1309 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->IdName); 1310 1310 return 1; 1311 1311 case IDC_RENAMECAPTION: 1312 1312 if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMECAPTION),hwnd,(DLGPROC)DlgRadProperty_Item_RenameCaption)) return 1; 1313 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].caption);1313 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->caption); 1314 1314 return 1; 1315 1315 case IDC_STYLE_DISABLED: 1316 1316 if(HIWORD(wParam)==BN_CLICKED){ 1317 1317 //変更情報 1318 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style);1318 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style); 1319 1319 1320 1320 if(SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_GETCHECK,0,0)) 1321 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style|=WS_DISABLED;1321 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style|=WS_DISABLED; 1322 1322 else 1323 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style&=~WS_DISABLED;1323 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style&=~WS_DISABLED; 1324 1324 DrawRadWindow(WndNum,pWindowInfo); 1325 1325 return 1; … … 1329 1329 if(HIWORD(wParam)==BN_CLICKED){ 1330 1330 //変更情報 1331 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style);1331 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style); 1332 1332 1333 1333 if(SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_GETCHECK,0,0)) 1334 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style|=WS_VISIBLE;1334 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style|=WS_VISIBLE; 1335 1335 else 1336 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style&=~WS_VISIBLE;1336 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style&=~WS_VISIBLE; 1337 1337 return 1; 1338 1338 } … … 1341 1341 if(HIWORD(wParam)==BN_CLICKED){ 1342 1342 //変更情報 1343 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style);1343 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style); 1344 1344 1345 1345 if(SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_GETCHECK,0,0)) 1346 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style|=WS_GROUP;1346 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style|=WS_GROUP; 1347 1347 else 1348 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style&=~WS_GROUP;1348 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style&=~WS_GROUP; 1349 1349 return 1; 1350 1350 } … … 1353 1353 if(HIWORD(wParam)==BN_CLICKED){ 1354 1354 //変更情報 1355 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style);1355 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style); 1356 1356 1357 1357 if(SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_GETCHECK,0,0)) 1358 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style|=WS_TABSTOP;1358 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style|=WS_TABSTOP; 1359 1359 else 1360 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].style&=~WS_TABSTOP;1360 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style&=~WS_TABSTOP; 1361 1361 return 1; 1362 1362 } … … 1375 1375 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1376 1376 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1377 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0);1378 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle&WS_EX_TRANSPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_SETCHECK,BST_CHECKED,0);1379 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle&WS_EX_DLGMODALFRAME) SendDlgItemMessage(hwnd,IDC_EXSTYLE_DLGMODALFRAME,BM_SETCHECK,BST_CHECKED,0);1380 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle&WS_EX_CLIENTEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_SETCHECK,BST_CHECKED,0);1381 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle&WS_EX_STATICEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_SETCHECK,BST_CHECKED,0);1377 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0); 1378 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle&WS_EX_TRANSPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_SETCHECK,BST_CHECKED,0); 1379 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle&WS_EX_DLGMODALFRAME) SendDlgItemMessage(hwnd,IDC_EXSTYLE_DLGMODALFRAME,BM_SETCHECK,BST_CHECKED,0); 1380 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle&WS_EX_CLIENTEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_SETCHECK,BST_CHECKED,0); 1381 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle&WS_EX_STATICEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_SETCHECK,BST_CHECKED,0); 1382 1382 break; 1383 1383 } … … 1402 1402 style|=WS_EX_STATICEDGE; 1403 1403 1404 if(style==pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle){1404 if(style==pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle){ 1405 1405 SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); 1406 1406 return 1; … … 1408 1408 1409 1409 //変更情報 1410 Rad_NoticeChanging(i,RAD_UNDO_EXSTYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle);1411 1412 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle=style;1410 Rad_NoticeChanging(i,RAD_UNDO_EXSTYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle); 1411 1412 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle=style; 1413 1413 EndDialog(hwnd,1); 1414 1414 return 1; … … 1439 1439 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1440 1440 1441 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);1442 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption);1441 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1442 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption); 1443 1443 1444 1444 … … 1446 1446 //スタイル 1447 1447 1448 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);1449 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);1450 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);1451 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);1452 1453 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_OWNERDRAW)==BS_OWNERDRAW) SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_CHECKED,0);1454 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_DEFPUSHBUTTON) SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_CHECKED,0);1455 1456 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);1457 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);1458 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);1459 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);1448 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 1449 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 1450 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 1451 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 1452 1453 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_OWNERDRAW)==BS_OWNERDRAW) SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_CHECKED,0); 1454 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_DEFPUSHBUTTON) SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_CHECKED,0); 1455 1456 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); 1457 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); 1458 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0); 1459 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 1460 1460 1461 1461 … … 1474 1474 1475 1475 //ビットを考慮してBS_CENTERを最初に比較する 1476 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);1477 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);1478 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);1476 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0); 1477 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0); 1478 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0); 1479 1479 else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0); 1480 1480 … … 1494 1494 1495 1495 //ビットを考慮してBS_VCENTERを最初に比較する 1496 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);1497 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);1498 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);1496 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0); 1497 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0); 1498 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0); 1499 1499 else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0); 1500 1500 … … 1519 1519 if(HIWORD(wParam)==BN_CLICKED){ 1520 1520 //変更情報 1521 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1521 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1522 1522 1523 1523 if(SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_GETCHECK,0,0)){ 1524 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_OWNERDRAW;1525 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_DEFPUSHBUTTON;1524 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_OWNERDRAW; 1525 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_DEFPUSHBUTTON; 1526 1526 SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_UNCHECKED,0); 1527 1527 } 1528 1528 else 1529 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_DEFPUSHBUTTON;1529 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_DEFPUSHBUTTON; 1530 1530 DrawRadWindow(i,pWindowInfo); 1531 1531 return 1; … … 1535 1535 if(HIWORD(wParam)==BN_CLICKED){ 1536 1536 //変更情報 1537 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1537 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1538 1538 1539 1539 if(SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_GETCHECK,0,0)){ 1540 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_DEFPUSHBUTTON;1541 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_OWNERDRAW;1540 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_DEFPUSHBUTTON; 1541 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_OWNERDRAW; 1542 1542 SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_UNCHECKED,0); 1543 1543 } 1544 1544 else 1545 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_OWNERDRAW;1545 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_OWNERDRAW; 1546 1546 DrawRadWindow(i,pWindowInfo); 1547 1547 return 1; … … 1551 1551 if(HIWORD(wParam)==BN_CLICKED){ 1552 1552 //変更情報 1553 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1553 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1554 1554 1555 1555 if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){ 1556 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_ICON;1557 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP;1556 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_ICON; 1557 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP; 1558 1558 SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0); 1559 1559 } 1560 1560 else 1561 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON;1561 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON; 1562 1562 DrawRadWindow(i,pWindowInfo); 1563 1563 return 1; … … 1567 1567 if(HIWORD(wParam)==BN_CLICKED){ 1568 1568 //変更情報 1569 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1569 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1570 1570 1571 1571 if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){ 1572 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BITMAP;1573 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON;1572 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BITMAP; 1573 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON; 1574 1574 SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0); 1575 1575 } 1576 1576 else 1577 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP;1577 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP; 1578 1578 DrawRadWindow(i,pWindowInfo); 1579 1579 return 1; … … 1583 1583 if(HIWORD(wParam)==BN_CLICKED){ 1584 1584 //変更情報 1585 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1585 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1586 1586 1587 1587 if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0)) 1588 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_MULTILINE;1589 else 1590 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_MULTILINE;1588 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_MULTILINE; 1589 else 1590 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_MULTILINE; 1591 1591 DrawRadWindow(i,pWindowInfo); 1592 1592 return 1; … … 1596 1596 if(HIWORD(wParam)==BN_CLICKED){ 1597 1597 //変更情報 1598 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1598 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1599 1599 1600 1600 if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) 1601 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_NOTIFY;1602 else 1603 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_NOTIFY;1601 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_NOTIFY; 1602 else 1603 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_NOTIFY; 1604 1604 return 1; 1605 1605 } … … 1609 1609 if(HIWORD(wParam)==CBN_SELCHANGE){ 1610 1610 //変更情報 1611 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1611 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1612 1612 1613 1613 i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0); 1614 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_LEFT|BS_RIGHT|BS_CENTER);1615 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFT;1616 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_RIGHT;1617 else if(i3==3) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CENTER;1614 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_LEFT|BS_RIGHT|BS_CENTER); 1615 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFT; 1616 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_RIGHT; 1617 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CENTER; 1618 1618 DrawRadWindow(i,pWindowInfo); 1619 1619 return 1; … … 1623 1623 if(HIWORD(wParam)==CBN_SELCHANGE){ 1624 1624 //変更情報 1625 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1625 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1626 1626 1627 1627 i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0); 1628 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER);1629 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_TOP;1630 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BOTTOM;1631 else if(i3==3) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_VCENTER;1628 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER); 1629 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_TOP; 1630 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BOTTOM; 1631 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_VCENTER; 1632 1632 DrawRadWindow(i,pWindowInfo); 1633 1633 return 1; … … 1661 1661 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1662 1662 1663 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);1664 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption);1663 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1664 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption); 1665 1665 1666 1666 … … 1668 1668 //スタイル 1669 1669 1670 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);1671 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);1672 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);1673 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);1674 1675 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_AUTOCHECKBOX)==BS_AUTOCHECKBOX) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0);1676 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_AUTO3STATE)==BS_AUTO3STATE){1670 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 1671 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 1672 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 1673 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 1674 1675 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_AUTOCHECKBOX)==BS_AUTOCHECKBOX) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0); 1676 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_AUTO3STATE)==BS_AUTO3STATE){ 1677 1677 SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0); 1678 1678 SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0); 1679 1679 } 1680 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_3STATE)==BS_3STATE) SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0);1681 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0);1682 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0);1683 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);1684 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);1685 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);1686 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);1680 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_3STATE)==BS_3STATE) SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0); 1681 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0); 1682 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0); 1683 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); 1684 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); 1685 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0); 1686 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 1687 1687 1688 1688 … … 1701 1701 1702 1702 //ビットを考慮してBS_CENTERを最初に比較する 1703 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);1704 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);1705 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);1703 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0); 1704 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0); 1705 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0); 1706 1706 else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0); 1707 1707 … … 1721 1721 1722 1722 //ビットを考慮してBS_VCENTERを最初に比較する 1723 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);1724 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);1725 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);1723 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0); 1724 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0); 1725 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0); 1726 1726 else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0); 1727 1727 … … 1746 1746 if(HIWORD(wParam)==BN_CLICKED){ 1747 1747 //変更情報 1748 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1748 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1749 1749 1750 1750 if(SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_GETCHECK,0,0)){ 1751 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x04){1751 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x04){ 1752 1752 //3state 1753 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0;1754 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_AUTO3STATE;1753 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0; 1754 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_AUTO3STATE; 1755 1755 } 1756 1756 else{ 1757 1757 //2state 1758 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0;1759 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_AUTOCHECKBOX;1758 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0; 1759 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_AUTOCHECKBOX; 1760 1760 } 1761 1761 } 1762 1762 else{ 1763 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x04){1763 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x04){ 1764 1764 //3state 1765 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0;1766 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_3STATE;1765 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0; 1766 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_3STATE; 1767 1767 } 1768 1768 else{ 1769 1769 //2state 1770 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0;1771 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CHECKBOX;1770 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0; 1771 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CHECKBOX; 1772 1772 } 1773 1773 } … … 1778 1778 if(HIWORD(wParam)==BN_CLICKED){ 1779 1779 //変更情報 1780 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1780 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1781 1781 1782 1782 if(SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_GETCHECK,0,0)){ 1783 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0F)==BS_CHECKBOX){1784 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0;1785 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_3STATE;1783 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0F)==BS_CHECKBOX){ 1784 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0; 1785 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_3STATE; 1786 1786 } 1787 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0F)==BS_AUTOCHECKBOX){1787 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0F)==BS_AUTOCHECKBOX){ 1788 1788 //自動チェック 1789 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0;1790 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_AUTO3STATE;1789 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0; 1790 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_AUTO3STATE; 1791 1791 } 1792 1792 } 1793 1793 else{ 1794 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0F)==BS_3STATE){1795 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0;1796 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CHECKBOX;1794 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0F)==BS_3STATE){ 1795 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0; 1796 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CHECKBOX; 1797 1797 } 1798 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0F)==BS_AUTO3STATE){1798 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0F)==BS_AUTO3STATE){ 1799 1799 //自動チェック 1800 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0;1801 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_AUTOCHECKBOX;1800 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0; 1801 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_AUTOCHECKBOX; 1802 1802 } 1803 1803 } … … 1808 1808 if(HIWORD(wParam)==BN_CLICKED){ 1809 1809 //変更情報 1810 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1810 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1811 1811 1812 1812 if(SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_GETCHECK,0,0)) 1813 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_PUSHLIKE;1814 else 1815 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_PUSHLIKE;1813 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_PUSHLIKE; 1814 else 1815 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_PUSHLIKE; 1816 1816 DrawRadWindow(i,pWindowInfo); 1817 1817 return 1; … … 1821 1821 if(HIWORD(wParam)==BN_CLICKED){ 1822 1822 //変更情報 1823 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1823 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1824 1824 1825 1825 if(SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_GETCHECK,0,0)) 1826 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFTTEXT;1827 else 1828 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_LEFTTEXT;1826 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFTTEXT; 1827 else 1828 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_LEFTTEXT; 1829 1829 DrawRadWindow(i,pWindowInfo); 1830 1830 return 1; … … 1834 1834 if(HIWORD(wParam)==BN_CLICKED){ 1835 1835 //変更情報 1836 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1836 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1837 1837 1838 1838 if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){ 1839 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_ICON;1840 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP;1839 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_ICON; 1840 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP; 1841 1841 SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0); 1842 1842 } 1843 1843 else 1844 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON;1844 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON; 1845 1845 DrawRadWindow(i,pWindowInfo); 1846 1846 return 1; … … 1850 1850 if(HIWORD(wParam)==BN_CLICKED){ 1851 1851 //変更情報 1852 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1852 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1853 1853 1854 1854 if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){ 1855 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BITMAP;1856 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON;1855 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BITMAP; 1856 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON; 1857 1857 SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0); 1858 1858 } 1859 1859 else 1860 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP;1860 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP; 1861 1861 DrawRadWindow(i,pWindowInfo); 1862 1862 return 1; … … 1866 1866 if(HIWORD(wParam)==BN_CLICKED){ 1867 1867 //変更情報 1868 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1868 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1869 1869 1870 1870 if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0)) 1871 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_MULTILINE;1872 else 1873 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_MULTILINE;1871 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_MULTILINE; 1872 else 1873 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_MULTILINE; 1874 1874 DrawRadWindow(i,pWindowInfo); 1875 1875 return 1; … … 1879 1879 if(HIWORD(wParam)==BN_CLICKED){ 1880 1880 //変更情報 1881 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1881 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1882 1882 1883 1883 if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) 1884 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_NOTIFY;1885 else 1886 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_NOTIFY;1884 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_NOTIFY; 1885 else 1886 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_NOTIFY; 1887 1887 return 1; 1888 1888 } … … 1892 1892 if(HIWORD(wParam)==CBN_SELCHANGE){ 1893 1893 //変更情報 1894 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1894 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1895 1895 1896 1896 i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0); 1897 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_LEFT|BS_RIGHT|BS_CENTER);1898 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFT;1899 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_RIGHT;1900 else if(i3==3) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CENTER;1897 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_LEFT|BS_RIGHT|BS_CENTER); 1898 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFT; 1899 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_RIGHT; 1900 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CENTER; 1901 1901 DrawRadWindow(i,pWindowInfo); 1902 1902 return 1; … … 1906 1906 if(HIWORD(wParam)==CBN_SELCHANGE){ 1907 1907 //変更情報 1908 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1908 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 1909 1909 1910 1910 i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0); 1911 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER);1912 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_TOP;1913 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BOTTOM;1914 else if(i3==3) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_VCENTER;1911 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER); 1912 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_TOP; 1913 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BOTTOM; 1914 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_VCENTER; 1915 1915 DrawRadWindow(i,pWindowInfo); 1916 1916 return 1; … … 1952 1952 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1953 1953 1954 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);1954 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 1955 1955 1956 1956 … … 1959 1959 //////////// 1960 1960 1961 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);1962 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);1963 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);1964 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);1961 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 1962 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 1963 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 1964 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 1965 1965 1966 1966 //////// … … 1976 1976 1977 1977 //ビットを考慮してCBS_DROPDOWNLISTを最初に比較する 1978 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_DROPDOWNLIST)==CBS_DROPDOWNLIST) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,2,0);1979 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_SIMPLE) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,0,0);1980 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_DROPDOWN) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,1,0);1978 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_DROPDOWNLIST)==CBS_DROPDOWNLIST) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,2,0); 1979 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_SIMPLE) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,0,0); 1980 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_DROPDOWN) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,1,0); 1981 1981 1982 1982 … … 1992 1992 SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_OWNERDRAW_VARIABLE); 1993 1993 1994 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,1,0);1995 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,2,0);1994 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,1,0); 1995 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,2,0); 1996 1996 else SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,0,0); 1997 1997 1998 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0);1999 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_SORT) SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_SETCHECK,BST_CHECKED,0);2000 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_NOINTEGRALHEIGHT) SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_SETCHECK,BST_CHECKED,0);2001 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0);2002 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);2003 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0);2004 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0);2005 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_UPPERCASE) SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_SETCHECK,BST_CHECKED,0);2006 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&CBS_LOWERCASE) SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_SETCHECK,BST_CHECKED,0);2007 2008 RadProperty_ComboBox_StylingOrder(hwnd,&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);1998 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0); 1999 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_SORT) SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_SETCHECK,BST_CHECKED,0); 2000 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_NOINTEGRALHEIGHT) SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_SETCHECK,BST_CHECKED,0); 2001 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0); 2002 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0); 2003 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0); 2004 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0); 2005 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_UPPERCASE) SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_SETCHECK,BST_CHECKED,0); 2006 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_LOWERCASE) SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_SETCHECK,BST_CHECKED,0); 2007 2008 RadProperty_ComboBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2009 2009 2010 2010 … … 2028 2028 if(HIWORD(wParam)==CBN_SELCHANGE){ 2029 2029 //変更情報 2030 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2030 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2031 2031 2032 2032 i3=SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_GETCURSEL,0,0); 2033 2033 //CBS_DROPDOWNLIST=CBS_SIMPLE | CBS_DROPDOWN 2034 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(CBS_DROPDOWNLIST);2035 if(i3==0) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_SIMPLE;2036 else if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_DROPDOWN;2037 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_DROPDOWNLIST;2034 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(CBS_DROPDOWNLIST); 2035 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_SIMPLE; 2036 else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_DROPDOWN; 2037 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_DROPDOWNLIST; 2038 2038 2039 2039 DrawRadWindow(i,pWindowInfo); … … 2044 2044 if(HIWORD(wParam)==CBN_SELCHANGE){ 2045 2045 //変更情報 2046 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2046 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2047 2047 2048 2048 i3=SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_GETCURSEL,0,0); 2049 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(CBS_OWNERDRAWFIXED|CBS_OWNERDRAWVARIABLE);2050 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_OWNERDRAWFIXED;2051 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_OWNERDRAWVARIABLE;2052 2053 RadProperty_ComboBox_StylingOrder(hwnd,&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2049 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(CBS_OWNERDRAWFIXED|CBS_OWNERDRAWVARIABLE); 2050 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_OWNERDRAWFIXED; 2051 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_OWNERDRAWVARIABLE; 2052 2053 RadProperty_ComboBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2054 2054 return 1; 2055 2055 } … … 2059 2059 if(HIWORD(wParam)==BN_CLICKED){ 2060 2060 //変更情報 2061 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2061 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2062 2062 2063 2063 if(SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_GETCHECK,0,0)) 2064 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_HASSTRINGS;2065 else 2066 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_HASSTRINGS;2064 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_HASSTRINGS; 2065 else 2066 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_HASSTRINGS; 2067 2067 return 1; 2068 2068 } … … 2071 2071 if(HIWORD(wParam)==BN_CLICKED){ 2072 2072 //変更情報 2073 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2073 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2074 2074 2075 2075 if(SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_GETCHECK,0,0)) 2076 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_SORT;2077 else 2078 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_SORT;2076 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_SORT; 2077 else 2078 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_SORT; 2079 2079 return 1; 2080 2080 } … … 2083 2083 if(HIWORD(wParam)==BN_CLICKED){ 2084 2084 //変更情報 2085 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2085 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2086 2086 2087 2087 if(SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_GETCHECK,0,0)) 2088 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_NOINTEGRALHEIGHT;2089 else 2090 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_NOINTEGRALHEIGHT;2088 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_NOINTEGRALHEIGHT; 2089 else 2090 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_NOINTEGRALHEIGHT; 2091 2091 return 1; 2092 2092 } … … 2095 2095 if(HIWORD(wParam)==BN_CLICKED){ 2096 2096 //変更情報 2097 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2097 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2098 2098 2099 2099 if(SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_GETCHECK,0,0)) 2100 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_OEMCONVERT;2101 else 2102 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_OEMCONVERT;2100 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_OEMCONVERT; 2101 else 2102 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_OEMCONVERT; 2103 2103 return 1; 2104 2104 } … … 2107 2107 if(HIWORD(wParam)==BN_CLICKED){ 2108 2108 //変更情報 2109 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2109 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2110 2110 2111 2111 if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0)) 2112 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=WS_VSCROLL;2113 else 2114 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~WS_VSCROLL;2112 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=WS_VSCROLL; 2113 else 2114 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~WS_VSCROLL; 2115 2115 DrawRadWindow(i,pWindowInfo); 2116 2116 return 1; … … 2120 2120 if(HIWORD(wParam)==BN_CLICKED){ 2121 2121 //変更情報 2122 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2122 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2123 2123 2124 2124 if(SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_GETCHECK,0,0)) 2125 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_AUTOHSCROLL;2126 else 2127 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_AUTOHSCROLL;2125 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_AUTOHSCROLL; 2126 else 2127 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_AUTOHSCROLL; 2128 2128 return 1; 2129 2129 } … … 2132 2132 if(HIWORD(wParam)==BN_CLICKED){ 2133 2133 //変更情報 2134 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2134 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2135 2135 2136 2136 if(SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_GETCHECK,0,0)) 2137 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_DISABLENOSCROLL;2138 else 2139 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_DISABLENOSCROLL;2137 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_DISABLENOSCROLL; 2138 else 2139 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_DISABLENOSCROLL; 2140 2140 DrawRadWindow(i,pWindowInfo); 2141 2141 return 1; … … 2145 2145 if(HIWORD(wParam)==BN_CLICKED){ 2146 2146 //変更情報 2147 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2147 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2148 2148 2149 2149 if(SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_GETCHECK,0,0)) 2150 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_UPPERCASE;2151 else 2152 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_UPPERCASE;2150 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_UPPERCASE; 2151 else 2152 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_UPPERCASE; 2153 2153 return 1; 2154 2154 } … … 2157 2157 if(HIWORD(wParam)==BN_CLICKED){ 2158 2158 //変更情報 2159 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2159 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2160 2160 2161 2161 if(SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_GETCHECK,0,0)) 2162 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=CBS_LOWERCASE;2163 else 2164 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~CBS_LOWERCASE;2162 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_LOWERCASE; 2163 else 2164 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_LOWERCASE; 2165 2165 return 1; 2166 2166 } … … 2216 2216 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 2217 2217 2218 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);2219 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption);2218 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 2219 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption); 2220 2220 2221 2221 … … 2224 2224 //////////// 2225 2225 2226 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);2227 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);2228 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);2229 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);2230 2231 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_MULTILINE) SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_SETCHECK,BST_CHECKED,0);2232 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_NUMBER) SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_SETCHECK,BST_CHECKED,0);2233 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0);2234 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0);2235 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);2236 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_AUTOVSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_SETCHECK,BST_CHECKED,0);2237 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_PASSWORD) SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_SETCHECK,BST_CHECKED,0);2238 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_NOHIDESEL) SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_SETCHECK,BST_CHECKED,0);2239 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0);2240 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_WANTRETURN) SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_SETCHECK,BST_CHECKED,0);2241 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_UPPERCASE) SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_CHECKED,0);2242 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_LOWERCASE) SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_CHECKED,0);2243 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_READONLY) SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_SETCHECK,BST_CHECKED,0);2226 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 2227 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 2228 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 2229 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 2230 2231 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_MULTILINE) SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_SETCHECK,BST_CHECKED,0); 2232 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_NUMBER) SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_SETCHECK,BST_CHECKED,0); 2233 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0); 2234 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0); 2235 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0); 2236 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_AUTOVSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_SETCHECK,BST_CHECKED,0); 2237 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_PASSWORD) SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_SETCHECK,BST_CHECKED,0); 2238 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_NOHIDESEL) SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_SETCHECK,BST_CHECKED,0); 2239 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0); 2240 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_WANTRETURN) SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_SETCHECK,BST_CHECKED,0); 2241 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_UPPERCASE) SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_CHECKED,0); 2242 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_LOWERCASE) SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_CHECKED,0); 2243 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_READONLY) SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_SETCHECK,BST_CHECKED,0); 2244 2244 2245 2245 … … 2256 2256 2257 2257 //ビットを考慮してES_LEFTを最後に検討する 2258 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_CENTER) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,1,0);2259 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&ES_RIGHT) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,2,0);2258 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_CENTER) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,1,0); 2259 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_RIGHT) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,2,0); 2260 2260 else SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,0,0); 2261 2261 2262 RadProperty_Edit_StylingOrder(hwnd,&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2262 RadProperty_Edit_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2263 2263 2264 2264 … … 2282 2282 if(HIWORD(wParam)==BN_CLICKED){ 2283 2283 //変更情報 2284 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2284 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2285 2285 2286 2286 if(SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_GETCHECK,0,0)) 2287 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_MULTILINE;2288 else 2289 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_MULTILINE;2290 RadProperty_Edit_StylingOrder(hwnd,&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2287 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_MULTILINE; 2288 else 2289 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_MULTILINE; 2290 RadProperty_Edit_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2291 2291 DrawRadWindow(i,pWindowInfo); 2292 2292 return 1; … … 2296 2296 if(HIWORD(wParam)==BN_CLICKED){ 2297 2297 //変更情報 2298 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2298 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2299 2299 2300 2300 if(SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_GETCHECK,0,0)) 2301 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_NUMBER;2302 else 2303 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_NUMBER;2301 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_NUMBER; 2302 else 2303 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_NUMBER; 2304 2304 return 1; 2305 2305 } … … 2308 2308 if(HIWORD(wParam)==BN_CLICKED){ 2309 2309 //変更情報 2310 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2310 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2311 2311 2312 2312 if(SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_GETCHECK,0,0)) 2313 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=WS_HSCROLL;2314 else 2315 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~WS_HSCROLL;2313 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=WS_HSCROLL; 2314 else 2315 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~WS_HSCROLL; 2316 2316 DrawRadWindow(i,pWindowInfo); 2317 2317 return 1; … … 2321 2321 if(HIWORD(wParam)==BN_CLICKED){ 2322 2322 //変更情報 2323 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2323 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2324 2324 2325 2325 if(SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_GETCHECK,0,0)) 2326 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_AUTOHSCROLL;2327 else 2328 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_AUTOHSCROLL;2326 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_AUTOHSCROLL; 2327 else 2328 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_AUTOHSCROLL; 2329 2329 DrawRadWindow(i,pWindowInfo); 2330 2330 return 1; … … 2334 2334 if(HIWORD(wParam)==BN_CLICKED){ 2335 2335 //変更情報 2336 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2336 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2337 2337 2338 2338 if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0)) 2339 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=WS_VSCROLL;2340 else 2341 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~WS_VSCROLL;2339 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=WS_VSCROLL; 2340 else 2341 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~WS_VSCROLL; 2342 2342 DrawRadWindow(i,pWindowInfo); 2343 2343 return 1; … … 2347 2347 if(HIWORD(wParam)==BN_CLICKED){ 2348 2348 //変更情報 2349 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2349 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2350 2350 2351 2351 if(SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_GETCHECK,0,0)) 2352 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_AUTOVSCROLL;2353 else 2354 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_AUTOVSCROLL;2352 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_AUTOVSCROLL; 2353 else 2354 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_AUTOVSCROLL; 2355 2355 DrawRadWindow(i,pWindowInfo); 2356 2356 return 1; … … 2360 2360 if(HIWORD(wParam)==BN_CLICKED){ 2361 2361 //変更情報 2362 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2362 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2363 2363 2364 2364 if(SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_GETCHECK,0,0)) 2365 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_PASSWORD;2366 else 2367 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_PASSWORD;2365 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_PASSWORD; 2366 else 2367 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_PASSWORD; 2368 2368 DrawRadWindow(i,pWindowInfo); 2369 2369 return 1; … … 2373 2373 if(HIWORD(wParam)==BN_CLICKED){ 2374 2374 //変更情報 2375 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2375 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2376 2376 2377 2377 if(SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_GETCHECK,0,0)) 2378 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_NOHIDESEL;2379 else 2380 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_NOHIDESEL;2378 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_NOHIDESEL; 2379 else 2380 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_NOHIDESEL; 2381 2381 DrawRadWindow(i,pWindowInfo); 2382 2382 return 1; … … 2386 2386 if(HIWORD(wParam)==BN_CLICKED){ 2387 2387 //変更情報 2388 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2388 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2389 2389 2390 2390 if(SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_GETCHECK,0,0)) 2391 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_OEMCONVERT;2392 else 2393 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_OEMCONVERT;2391 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_OEMCONVERT; 2392 else 2393 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_OEMCONVERT; 2394 2394 DrawRadWindow(i,pWindowInfo); 2395 2395 return 1; … … 2399 2399 if(HIWORD(wParam)==BN_CLICKED){ 2400 2400 //変更情報 2401 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2401 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2402 2402 2403 2403 if(SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_GETCHECK,0,0)) 2404 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_WANTRETURN;2405 else 2406 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_WANTRETURN;2404 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_WANTRETURN; 2405 else 2406 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_WANTRETURN; 2407 2407 DrawRadWindow(i,pWindowInfo); 2408 2408 return 1; … … 2412 2412 if(HIWORD(wParam)==BN_CLICKED){ 2413 2413 //変更情報 2414 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2414 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2415 2415 2416 2416 if(SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_GETCHECK,0,0)){ 2417 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_LOWERCASE;2418 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_UPPERCASE;2417 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_LOWERCASE; 2418 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_UPPERCASE; 2419 2419 SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_UNCHECKED,0); 2420 2420 } 2421 2421 else 2422 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_UPPERCASE;2422 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_UPPERCASE; 2423 2423 DrawRadWindow(i,pWindowInfo); 2424 2424 return 1; … … 2428 2428 if(HIWORD(wParam)==BN_CLICKED){ 2429 2429 //変更情報 2430 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2430 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2431 2431 2432 2432 if(SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_GETCHECK,0,0)){ 2433 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_UPPERCASE;2434 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_LOWERCASE;2433 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_UPPERCASE; 2434 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_LOWERCASE; 2435 2435 SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_UNCHECKED,0); 2436 2436 } 2437 2437 else 2438 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_LOWERCASE;2438 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_LOWERCASE; 2439 2439 DrawRadWindow(i,pWindowInfo); 2440 2440 return 1; … … 2444 2444 if(HIWORD(wParam)==BN_CLICKED){ 2445 2445 //変更情報 2446 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2446 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2447 2447 2448 2448 if(SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_GETCHECK,0,0)) 2449 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_READONLY;2450 else 2451 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~ES_READONLY;2449 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_READONLY; 2450 else 2451 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_READONLY; 2452 2452 DrawRadWindow(i,pWindowInfo); 2453 2453 return 1; … … 2458 2458 if(HIWORD(wParam)==CBN_SELCHANGE){ 2459 2459 //変更情報 2460 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2460 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2461 2461 2462 2462 i3=SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_GETCURSEL,0,0); 2463 2463 //ES_LEFT=0 2464 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(ES_CENTER|ES_RIGHT);2465 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_CENTER;2466 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=ES_RIGHT;2464 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(ES_CENTER|ES_RIGHT); 2465 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_CENTER; 2466 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_RIGHT; 2467 2467 DrawRadWindow(i,pWindowInfo); 2468 2468 return 1; … … 2497 2497 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 2498 2498 2499 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);2500 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption);2499 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 2500 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption); 2501 2501 2502 2502 … … 2505 2505 //////////// 2506 2506 2507 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);2508 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);2509 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);2510 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);2507 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 2508 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 2509 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 2510 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 2511 2511 2512 2512 … … 2525 2525 2526 2526 //ビットを考慮してBS_CENTERを最初に検討する 2527 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,3,0);2528 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,1,0);2529 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,2,0);2527 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,3,0); 2528 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,1,0); 2529 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,2,0); 2530 2530 else SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,0,0); 2531 2531 2532 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);2533 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);2534 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);2532 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); 2533 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); 2534 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 2535 2535 2536 2536 … … 2554 2554 if(HIWORD(wParam)==CBN_SELCHANGE){ 2555 2555 //変更情報 2556 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2556 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2557 2557 2558 2558 i3=SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_GETCURSEL,0,0); 2559 2559 //BS_CENTER=BS_LEFT | BS_RIGHT 2560 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_CENTER);2561 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFT;2562 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_RIGHT;2563 else if(i3==3) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CENTER;2560 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_CENTER); 2561 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFT; 2562 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_RIGHT; 2563 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CENTER; 2564 2564 DrawRadWindow(i,pWindowInfo); 2565 2565 return 1; … … 2570 2570 if(HIWORD(wParam)==BN_CLICKED){ 2571 2571 //変更情報 2572 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2572 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2573 2573 2574 2574 if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)) 2575 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_ICON;2576 else 2577 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON;2575 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_ICON; 2576 else 2577 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON; 2578 2578 DrawRadWindow(i,pWindowInfo); 2579 2579 return 1; … … 2583 2583 if(HIWORD(wParam)==BN_CLICKED){ 2584 2584 //変更情報 2585 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2585 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2586 2586 2587 2587 if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)) 2588 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BITMAP;2589 else 2590 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP;2588 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BITMAP; 2589 else 2590 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP; 2591 2591 DrawRadWindow(i,pWindowInfo); 2592 2592 return 1; … … 2596 2596 if(HIWORD(wParam)==BN_CLICKED){ 2597 2597 //変更情報 2598 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2598 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2599 2599 2600 2600 if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) 2601 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_NOTIFY;2602 else 2603 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_NOTIFY;2601 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_NOTIFY; 2602 else 2603 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_NOTIFY; 2604 2604 return 1; 2605 2605 } … … 2650 2650 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 2651 2651 2652 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);2652 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 2653 2653 2654 2654 … … 2657 2657 //////////// 2658 2658 2659 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);2660 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);2661 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);2662 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);2659 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 2660 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 2661 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 2662 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 2663 2663 2664 2664 ////////// … … 2685 2685 SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_BITMAP); 2686 2686 2687 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BLACKFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,0,0);2688 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_GRAYFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,1,0);2689 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_WHITEFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,2,0);2690 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000001F)==SS_ETCHEDFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,3,0);2691 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BLACKRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,4,0);2692 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_GRAYRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,5,0);2693 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_WHITERECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,6,0);2694 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON||2695 (pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){2696 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,7,0);2697 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,8,0);2687 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BLACKFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,0,0); 2688 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_GRAYFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,1,0); 2689 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_WHITEFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,2,0); 2690 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000001F)==SS_ETCHEDFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,3,0); 2691 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BLACKRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,4,0); 2692 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_GRAYRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,5,0); 2693 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_WHITERECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,6,0); 2694 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON|| 2695 (pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){ 2696 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,7,0); 2697 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,8,0); 2698 2698 2699 2699 //リソース/ファイル スイッチチェックを表示 … … 2704 2704 ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_SHOW); 2705 2705 2706 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){2706 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_FILE){ 2707 2707 //ファイル指定を表示 2708 2708 ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); 2709 2709 ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); 2710 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path);2710 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path); 2711 2711 2712 2712 //イメージ状態テキスト … … 2716 2716 SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0); 2717 2717 } 2718 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_RES){2718 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_RES){ 2719 2719 //リソース指定を表示 2720 2720 ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW); … … 2728 2728 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); 2729 2729 2730 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON){2730 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){ 2731 2731 //アイコンリソースをコンボボックスに挿入 2732 2732 for(i3=0;i3<ProjectInfo.res.NumberOfIconRes;i3++) 2733 2733 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pIconResInfo[i3].IdName); 2734 2734 } 2735 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){2735 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){ 2736 2736 //ビットマップリソースをコンボボックスに挿入 2737 2737 for(i3=0;i3<ProjectInfo.res.NumberOfBitmapRes;i3++) … … 2740 2740 2741 2741 //リストから選択 2742 i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_FINDSTRING,0,(long)pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path);2742 i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_FINDSTRING,0,(long)pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path); 2743 2743 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); 2744 2744 } 2745 2745 } 2746 2746 2747 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);2748 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_CENTERIMAGE) SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_SETCHECK,BST_CHECKED,0);2749 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_RIGHTJUST) SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_SETCHECK,BST_CHECKED,0);2750 2751 RadProperty_ImageBox_StylingOrder(hwnd,&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2747 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 2748 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_CENTERIMAGE) SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_SETCHECK,BST_CHECKED,0); 2749 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_RIGHTJUST) SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_SETCHECK,BST_CHECKED,0); 2750 2751 RadProperty_ImageBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2752 2752 2753 2753 bInitial=0; … … 2770 2770 if(HIWORD(wParam)==CBN_SELCHANGE){ 2771 2771 //変更情報 2772 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2772 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2773 2773 2774 2774 i3=SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_GETCURSEL,0,0); 2775 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(0x0000001F);2776 if(i3==0) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_BLACKFRAME;2777 else if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_GRAYFRAME;2778 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_WHITEFRAME;2779 else if(i3==3) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_ETCHEDFRAME;2780 else if(i3==4) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_BLACKRECT;2781 else if(i3==5) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_GRAYRECT;2782 else if(i3==6) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_WHITERECT;2783 else if(i3==7) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_ICON;2784 else if(i3==8) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_BITMAP;2785 2786 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON||2787 (pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){2775 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(0x0000001F); 2776 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_BLACKFRAME; 2777 else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_GRAYFRAME; 2778 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_WHITEFRAME; 2779 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_ETCHEDFRAME; 2780 else if(i3==4) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_BLACKRECT; 2781 else if(i3==5) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_GRAYRECT; 2782 else if(i3==6) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_WHITERECT; 2783 else if(i3==7) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_ICON; 2784 else if(i3==8) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_BITMAP; 2785 2786 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON|| 2787 (pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){ 2788 2788 //リソース/ファイル スイッチチェックを表示 2789 2789 ShowWindow(GetDlgItem(hwnd,IDC_FILE),SW_SHOW); … … 2793 2793 ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_SHOW); 2794 2794 2795 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){2795 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_FILE){ 2796 2796 //ファイル指定を表示 2797 2797 ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); 2798 2798 ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); 2799 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path);2799 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path); 2800 2800 2801 2801 //イメージ状態テキスト … … 2805 2805 SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0); 2806 2806 } 2807 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_RES){2807 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_RES){ 2808 2808 //リソース指定を表示 2809 2809 ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW); … … 2817 2817 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); 2818 2818 2819 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON){2819 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){ 2820 2820 //アイコンリソースをコンボボックスに挿入 2821 2821 for(i3=0;i3<ProjectInfo.res.NumberOfIconRes;i3++){ 2822 2822 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pIconResInfo[i3].IdName); 2823 2823 2824 if(lstrcmp(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path,ProjectInfo.res.pIconResInfo[i3].IdName)==0)2824 if(lstrcmp(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path,ProjectInfo.res.pIconResInfo[i3].IdName)==0) 2825 2825 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); 2826 2826 } 2827 2827 } 2828 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){2828 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){ 2829 2829 //ビットマップリソースをコンボボックスに挿入 2830 2830 for(i3=0;i3<ProjectInfo.res.NumberOfBitmapRes;i3++){ 2831 2831 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pBitmapResInfo[i3].IdName); 2832 2832 2833 if(lstrcmp(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path,ProjectInfo.res.pBitmapResInfo[i3].IdName)==0)2833 if(lstrcmp(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path,ProjectInfo.res.pBitmapResInfo[i3].IdName)==0) 2834 2834 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); 2835 2835 } … … 2853 2853 } 2854 2854 2855 RadProperty_ImageBox_StylingOrder(hwnd,&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2855 RadProperty_ImageBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2856 2856 DrawRadWindow(i,pWindowInfo); 2857 2857 return 1; … … 2860 2860 2861 2861 case IDC_FILE: 2862 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){2862 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_FILE){ 2863 2863 //変更無し 2864 2864 break; … … 2866 2866 2867 2867 //変更情報 2868 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo);2869 2870 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type=IMGTYPE_FILE;2868 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo); 2869 2870 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type=IMGTYPE_FILE; 2871 2871 2872 2872 //ファイル指定を表示 2873 2873 ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); 2874 2874 ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); 2875 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path);2875 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path); 2876 2876 2877 2877 //リソース指定を非表示 … … 2886 2886 2887 2887 case IDC_RESOURCE: 2888 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_RES){2888 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_RES){ 2889 2889 //変更無し 2890 2890 break; … … 2892 2892 2893 2893 //変更情報 2894 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo);2895 2896 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type=IMGTYPE_RES;2894 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo); 2895 2896 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type=IMGTYPE_RES; 2897 2897 2898 2898 //ファイル指定を非表示 … … 2911 2911 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); 2912 2912 2913 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_ICON){2913 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){ 2914 2914 //アイコンリソースをコンボボックスに挿入 2915 2915 for(i3=0;i3<ProjectInfo.res.NumberOfIconRes;i3++) 2916 2916 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)ProjectInfo.res.pIconResInfo[i3].IdName); 2917 2917 } 2918 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x0000000F)==SS_BITMAP){2918 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){ 2919 2919 //ビットマップリソースをコンボボックスに挿入 2920 2920 for(i3=0;i3<ProjectInfo.res.NumberOfBitmapRes;i3++) … … 2926 2926 if(HIWORD(wParam)==CBN_SELCHANGE){ 2927 2927 //変更情報 2928 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo);2928 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo); 2929 2929 2930 2930 i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_GETCURSEL,0,0); 2931 2931 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_GETLBTEXT,i3,(long)temporary); 2932 2932 2933 HeapDefaultFree(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path);2934 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);2935 lstrcpy(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path,temporary);2933 HeapDefaultFree(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path); 2934 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 2935 lstrcpy(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path,temporary); 2936 2936 2937 2937 DrawRadWindow(i,pWindowInfo); … … 2941 2941 case IDC_CHANGEPATH: 2942 2942 if(HIWORD(wParam)==BN_CLICKED){ 2943 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.type==IMGTYPE_FILE){2944 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x000F)==SS_ICON){2943 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_FILE){ 2944 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x000F)==SS_ICON){ 2945 2945 extern LPSTR IconFileFilter; 2946 2946 //"アイコン ファイルを指定して下さい" 2947 2947 if(!GetFilePathDialog(hwnd,temporary,IconFileFilter,STRING_IMAGEBOXPROP_GETPATH_ICON,1)) return 1; 2948 2948 } 2949 else if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&0x000F)==SS_BITMAP){2949 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x000F)==SS_BITMAP){ 2950 2950 extern LPSTR BitmapFileFilter; 2951 2951 //"ビットマップ ファイルを指定して下さい" … … 2954 2954 2955 2955 //変更情報 2956 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo);2956 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo); 2957 2957 2958 2958 GetRelationalPath(temporary,ProjectInfo.dir); 2959 HeapDefaultFree(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path);2960 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);2961 lstrcpy(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ImageCtrlInfo.path,temporary);2959 HeapDefaultFree(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path); 2960 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 2961 lstrcpy(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path,temporary); 2962 2962 2963 2963 SetDlgItemText(hwnd,IDC_PATH,temporary); … … 2971 2971 if(HIWORD(wParam)==BN_CLICKED){ 2972 2972 //変更情報 2973 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2973 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2974 2974 2975 2975 if(SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_GETCHECK,0,0)) 2976 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_NOTIFY;2977 else 2978 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_NOTIFY;2976 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_NOTIFY; 2977 else 2978 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_NOTIFY; 2979 2979 return 1; 2980 2980 } … … 2983 2983 if(HIWORD(wParam)==BN_CLICKED){ 2984 2984 //変更情報 2985 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2985 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2986 2986 2987 2987 if(SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_GETCHECK,0,0)) 2988 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_CENTERIMAGE;2989 else 2990 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_CENTERIMAGE;2988 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_CENTERIMAGE; 2989 else 2990 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_CENTERIMAGE; 2991 2991 return 1; 2992 2992 } … … 2995 2995 if(HIWORD(wParam)==BN_CLICKED){ 2996 2996 //変更情報 2997 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);2997 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 2998 2998 2999 2999 if(SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_GETCHECK,0,0)) 3000 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_RIGHTJUST;3001 else 3002 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_RIGHTJUST;3000 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_RIGHTJUST; 3001 else 3002 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_RIGHTJUST; 3003 3003 return 1; 3004 3004 } … … 3031 3031 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3032 3032 3033 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);3033 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 3034 3034 3035 3035 … … 3038 3038 //////////// 3039 3039 3040 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3041 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3042 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3043 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);3040 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3041 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3042 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3043 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 3044 3044 3045 3045 //////// … … 3057 3057 3058 3058 //ビットを考慮してLVS_LISTを最初に比較する 3059 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_LIST)==LVS_LIST) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,2,0);3060 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SMALLICON) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,1,0);3061 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_REPORT) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,3,0);3059 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_LIST)==LVS_LIST) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,2,0); 3060 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SMALLICON) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,1,0); 3061 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_REPORT) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,3,0); 3062 3062 else SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,0,0); 3063 3063 … … 3072 3072 SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_ADDSTRING,0,(long)STRING_LEFT); 3073 3073 3074 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,1,0);3074 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,1,0); 3075 3075 else SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,0,0); 3076 3076 … … 3087 3087 SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_ADDSTRING,0,(long)STRING_SORT_DESCENDING); 3088 3088 3089 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SORTASCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,1,0);3090 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SORTDESCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,2,0);3089 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SORTASCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,1,0); 3090 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SORTDESCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,2,0); 3091 3091 else SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,0,0); 3092 3092 3093 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SINGLESEL) SendDlgItemMessage(hwnd,IDC_LVS_SINGLESEL,BM_SETCHECK,BST_CHECKED,0);3094 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_AUTOARRANGE) SendDlgItemMessage(hwnd,IDC_LVS_AUTOARRANGE,BM_SETCHECK,BST_CHECKED,0);3095 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOLABELWRAP) SendDlgItemMessage(hwnd,IDC_LVS_NOLABELWRAP,BM_SETCHECK,BST_CHECKED,0);3096 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_LVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0);3097 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_LVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0);3098 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOCOLUMNHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOCOLUMNHEADER,BM_SETCHECK,BST_CHECKED,0);3099 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_NOSORTHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOSORTHEADER,BM_SETCHECK,BST_CHECKED,0);3100 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_LVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0);3101 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LVS_OWNERDRAWFIXED,BM_SETCHECK,BST_CHECKED,0);3102 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LVS_SHAREIMAGELISTS) SendDlgItemMessage(hwnd,IDC_LVS_SHAREIMAGELISTS,BM_SETCHECK,BST_CHECKED,0);3093 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SINGLESEL) SendDlgItemMessage(hwnd,IDC_LVS_SINGLESEL,BM_SETCHECK,BST_CHECKED,0); 3094 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_AUTOARRANGE) SendDlgItemMessage(hwnd,IDC_LVS_AUTOARRANGE,BM_SETCHECK,BST_CHECKED,0); 3095 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_NOLABELWRAP) SendDlgItemMessage(hwnd,IDC_LVS_NOLABELWRAP,BM_SETCHECK,BST_CHECKED,0); 3096 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_LVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0); 3097 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_LVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0); 3098 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_NOCOLUMNHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOCOLUMNHEADER,BM_SETCHECK,BST_CHECKED,0); 3099 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_NOSORTHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOSORTHEADER,BM_SETCHECK,BST_CHECKED,0); 3100 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_LVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0); 3101 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LVS_OWNERDRAWFIXED,BM_SETCHECK,BST_CHECKED,0); 3102 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SHAREIMAGELISTS) SendDlgItemMessage(hwnd,IDC_LVS_SHAREIMAGELISTS,BM_SETCHECK,BST_CHECKED,0); 3103 3103 3104 3104 … … 3122 3122 if(HIWORD(wParam)==CBN_SELCHANGE){ 3123 3123 //変更情報 3124 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3124 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3125 3125 3126 3126 i3=SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_GETCURSEL,0,0); 3127 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(LVS_SMALLICON|LVS_LIST|LVS_REPORT);3128 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_SMALLICON;3129 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_LIST;3130 else if(i3==3) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_REPORT;3127 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(LVS_SMALLICON|LVS_LIST|LVS_REPORT); 3128 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SMALLICON; 3129 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_LIST; 3130 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_REPORT; 3131 3131 DrawRadWindow(i,pWindowInfo); 3132 3132 return 1; … … 3136 3136 if(HIWORD(wParam)==CBN_SELCHANGE){ 3137 3137 //変更情報 3138 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3138 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3139 3139 3140 3140 i3=SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_GETCURSEL,0,0); 3141 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(LVS_ALIGNLEFT);3142 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_ALIGNLEFT;3141 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(LVS_ALIGNLEFT); 3142 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_ALIGNLEFT; 3143 3143 return 1; 3144 3144 } … … 3147 3147 if(HIWORD(wParam)==CBN_SELCHANGE){ 3148 3148 //変更情報 3149 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3149 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3150 3150 3151 3151 i3=SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_GETCURSEL,0,0); 3152 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(LVS_SORTASCENDING|LVS_SORTDESCENDING);3153 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_SORTASCENDING;3154 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_SORTDESCENDING;3152 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(LVS_SORTASCENDING|LVS_SORTDESCENDING); 3153 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SORTASCENDING; 3154 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SORTDESCENDING; 3155 3155 return 1; 3156 3156 } … … 3160 3160 if(HIWORD(wParam)==BN_CLICKED){ 3161 3161 //変更情報 3162 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3162 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3163 3163 3164 3164 if(SendDlgItemMessage(hwnd,IDC_LVS_SINGLESEL,BM_GETCHECK,0,0)) 3165 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_SINGLESEL;3166 else 3167 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LVS_SINGLESEL;3165 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SINGLESEL; 3166 else 3167 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_SINGLESEL; 3168 3168 return 1; 3169 3169 } … … 3172 3172 if(HIWORD(wParam)==BN_CLICKED){ 3173 3173 //変更情報 3174 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3174 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3175 3175 3176 3176 if(SendDlgItemMessage(hwnd,IDC_LVS_AUTOARRANGE,BM_GETCHECK,0,0)) 3177 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_AUTOARRANGE;3178 else 3179 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LVS_AUTOARRANGE;3177 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_AUTOARRANGE; 3178 else 3179 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_AUTOARRANGE; 3180 3180 return 1; 3181 3181 } … … 3184 3184 if(HIWORD(wParam)==BN_CLICKED){ 3185 3185 //変更情報 3186 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3186 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3187 3187 3188 3188 if(SendDlgItemMessage(hwnd,IDC_LVS_NOLABELWRAP,BM_GETCHECK,0,0)) 3189 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_NOLABELWRAP;3190 else 3191 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LVS_NOLABELWRAP;3189 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_NOLABELWRAP; 3190 else 3191 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_NOLABELWRAP; 3192 3192 return 1; 3193 3193 } … … 3196 3196 if(HIWORD(wParam)==BN_CLICKED){ 3197 3197 //変更情報 3198 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3198 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3199 3199 3200 3200 if(SendDlgItemMessage(hwnd,IDC_LVS_EDITLABELS,BM_GETCHECK,0,0)) 3201 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_EDITLABELS;3202 else 3203 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LVS_EDITLABELS;3201 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_EDITLABELS; 3202 else 3203 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_EDITLABELS; 3204 3204 return 1; 3205 3205 } … … 3208 3208 if(HIWORD(wParam)==BN_CLICKED){ 3209 3209 //変更情報 3210 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3210 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3211 3211 3212 3212 if(SendDlgItemMessage(hwnd,IDC_LVS_NOSCROLL,BM_GETCHECK,0,0)) 3213 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_NOSCROLL;3214 else 3215 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LVS_NOSCROLL;3213 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_NOSCROLL; 3214 else 3215 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_NOSCROLL; 3216 3216 DrawRadWindow(i,pWindowInfo); 3217 3217 return 1; … … 3221 3221 if(HIWORD(wParam)==BN_CLICKED){ 3222 3222 //変更情報 3223 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3223 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3224 3224 3225 3225 if(SendDlgItemMessage(hwnd,IDC_LVS_NOCOLUMNHEADER,BM_GETCHECK,0,0)) 3226 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_NOCOLUMNHEADER;3227 else 3228 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LVS_NOCOLUMNHEADER;3226 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_NOCOLUMNHEADER; 3227 else 3228 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_NOCOLUMNHEADER; 3229 3229 return 1; 3230 3230 } … … 3233 3233 if(HIWORD(wParam)==BN_CLICKED){ 3234 3234 //変更情報 3235 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3235 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3236 3236 3237 3237 if(SendDlgItemMessage(hwnd,IDC_LVS_NOSORTHEADER,BM_GETCHECK,0,0)) 3238 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_NOSORTHEADER;3239 else 3240 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LVS_NOSORTHEADER;3238 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_NOSORTHEADER; 3239 else 3240 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_NOSORTHEADER; 3241 3241 return 1; 3242 3242 } … … 3245 3245 if(HIWORD(wParam)==BN_CLICKED){ 3246 3246 //変更情報 3247 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3247 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3248 3248 3249 3249 if(SendDlgItemMessage(hwnd,IDC_LVS_SHOWSELALWAYS,BM_GETCHECK,0,0)) 3250 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_SHOWSELALWAYS;3251 else 3252 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LVS_SHOWSELALWAYS;3250 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SHOWSELALWAYS; 3251 else 3252 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_SHOWSELALWAYS; 3253 3253 return 1; 3254 3254 } … … 3257 3257 if(HIWORD(wParam)==BN_CLICKED){ 3258 3258 //変更情報 3259 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3259 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3260 3260 3261 3261 if(SendDlgItemMessage(hwnd,IDC_LVS_OWNERDRAWFIXED,BM_GETCHECK,0,0)) 3262 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_OWNERDRAWFIXED;3263 else 3264 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LVS_OWNERDRAWFIXED;3262 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_OWNERDRAWFIXED; 3263 else 3264 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_OWNERDRAWFIXED; 3265 3265 return 1; 3266 3266 } … … 3269 3269 if(HIWORD(wParam)==BN_CLICKED){ 3270 3270 //変更情報 3271 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3271 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3272 3272 3273 3273 if(SendDlgItemMessage(hwnd,IDC_LVS_SHAREIMAGELISTS,BM_GETCHECK,0,0)) 3274 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LVS_SHAREIMAGELISTS;3275 else 3276 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LVS_SHAREIMAGELISTS;3274 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SHAREIMAGELISTS; 3275 else 3276 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_SHAREIMAGELISTS; 3277 3277 return 1; 3278 3278 } … … 3323 3323 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3324 3324 3325 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);3325 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 3326 3326 3327 3327 … … 3330 3330 //////////// 3331 3331 3332 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3333 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3334 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3335 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);3332 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3333 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3334 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3335 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 3336 3336 3337 3337 //////// … … 3348 3348 SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_ADDSTRING,0,(long)STRING_NONE_); 3349 3349 3350 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_MULTIPLESEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,1,0);3351 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_EXTENDEDSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,2,0);3352 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_NOSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,3,0);3350 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_MULTIPLESEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,1,0); 3351 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_EXTENDEDSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,2,0); 3352 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_NOSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,3,0); 3353 3353 else SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,0,0); 3354 3354 … … 3365 3365 SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_OWNERDRAW_VARIABLE); 3366 3366 3367 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,1,0);3368 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,2,0);3367 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,1,0); 3368 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,2,0); 3369 3369 else SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,0,0); 3370 3370 3371 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_LBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0);3372 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_SORT) SendDlgItemMessage(hwnd,IDC_LBS_SORT,BM_SETCHECK,BST_CHECKED,0);3373 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_NOTIFY) SendDlgItemMessage(hwnd,IDC_LBS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);3374 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_MULTICOLUMN) SendDlgItemMessage(hwnd,IDC_LBS_MULTICOLUMN,BM_SETCHECK,BST_CHECKED,0);3375 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0);3376 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);3377 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_LBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0);3378 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_NOREDRAW) SendDlgItemMessage(hwnd,IDC_LBS_NOREDRAW,BM_SETCHECK,BST_CHECKED,0);3379 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_USETABSTOPS) SendDlgItemMessage(hwnd,IDC_LBS_USETABSTOPS,BM_SETCHECK,BST_CHECKED,0);3380 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&LBS_WANTKEYBOARDINPUT) SendDlgItemMessage(hwnd,IDC_LBS_WANTKEYBOARDINPUT,BM_SETCHECK,BST_CHECKED,0);3381 3382 RadProperty_ListBox_StylingOrder(hwnd,&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3371 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_LBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0); 3372 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_SORT) SendDlgItemMessage(hwnd,IDC_LBS_SORT,BM_SETCHECK,BST_CHECKED,0); 3373 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_NOTIFY) SendDlgItemMessage(hwnd,IDC_LBS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 3374 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_MULTICOLUMN) SendDlgItemMessage(hwnd,IDC_LBS_MULTICOLUMN,BM_SETCHECK,BST_CHECKED,0); 3375 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0); 3376 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0); 3377 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_LBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0); 3378 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_NOREDRAW) SendDlgItemMessage(hwnd,IDC_LBS_NOREDRAW,BM_SETCHECK,BST_CHECKED,0); 3379 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_USETABSTOPS) SendDlgItemMessage(hwnd,IDC_LBS_USETABSTOPS,BM_SETCHECK,BST_CHECKED,0); 3380 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_WANTKEYBOARDINPUT) SendDlgItemMessage(hwnd,IDC_LBS_WANTKEYBOARDINPUT,BM_SETCHECK,BST_CHECKED,0); 3381 3382 RadProperty_ListBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3383 3383 3384 3384 … … 3402 3402 if(HIWORD(wParam)==CBN_SELCHANGE){ 3403 3403 //変更情報 3404 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3404 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3405 3405 3406 3406 i3=SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_GETCURSEL,0,0); 3407 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(LBS_MULTIPLESEL|LBS_EXTENDEDSEL|LBS_NOSEL);3408 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_MULTIPLESEL;3409 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_EXTENDEDSEL;3410 else if(i3==3) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_NOSEL;3407 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(LBS_MULTIPLESEL|LBS_EXTENDEDSEL|LBS_NOSEL); 3408 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_MULTIPLESEL; 3409 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_EXTENDEDSEL; 3410 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_NOSEL; 3411 3411 return 1; 3412 3412 } … … 3415 3415 if(HIWORD(wParam)==CBN_SELCHANGE){ 3416 3416 //変更情報 3417 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3417 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3418 3418 3419 3419 i3=SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_GETCURSEL,0,0); 3420 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(LBS_OWNERDRAWFIXED|LBS_OWNERDRAWVARIABLE);3421 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_OWNERDRAWFIXED;3422 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_OWNERDRAWVARIABLE;3423 3424 RadProperty_ListBox_StylingOrder(hwnd,&pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3420 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(LBS_OWNERDRAWFIXED|LBS_OWNERDRAWVARIABLE); 3421 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_OWNERDRAWFIXED; 3422 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_OWNERDRAWVARIABLE; 3423 3424 RadProperty_ListBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3425 3425 return 1; 3426 3426 } … … 3430 3430 if(HIWORD(wParam)==BN_CLICKED){ 3431 3431 //変更情報 3432 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3432 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3433 3433 3434 3434 if(SendDlgItemMessage(hwnd,IDC_LBS_HASSTRINGS,BM_GETCHECK,0,0)) 3435 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_HASSTRINGS;3436 else 3437 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LBS_HASSTRINGS;3435 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_HASSTRINGS; 3436 else 3437 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_HASSTRINGS; 3438 3438 return 1; 3439 3439 } … … 3442 3442 if(HIWORD(wParam)==BN_CLICKED){ 3443 3443 //変更情報 3444 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3444 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3445 3445 3446 3446 if(SendDlgItemMessage(hwnd,IDC_LBS_SORT,BM_GETCHECK,0,0)) 3447 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_SORT;3448 else 3449 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LBS_SORT;3447 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_SORT; 3448 else 3449 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_SORT; 3450 3450 return 1; 3451 3451 } … … 3454 3454 if(HIWORD(wParam)==BN_CLICKED){ 3455 3455 //変更情報 3456 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3456 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3457 3457 3458 3458 if(SendDlgItemMessage(hwnd,IDC_LBS_NOTIFY,BM_GETCHECK,0,0)) 3459 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_NOTIFY;3460 else 3461 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LBS_NOTIFY;3459 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_NOTIFY; 3460 else 3461 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_NOTIFY; 3462 3462 return 1; 3463 3463 } … … 3466 3466 if(HIWORD(wParam)==BN_CLICKED){ 3467 3467 //変更情報 3468 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3468 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3469 3469 3470 3470 if(SendDlgItemMessage(hwnd,IDC_LBS_MULTICOLUMN,BM_GETCHECK,0,0)) 3471 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_MULTICOLUMN;3472 else 3473 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LBS_MULTICOLUMN;3471 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_MULTICOLUMN; 3472 else 3473 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_MULTICOLUMN; 3474 3474 return 1; 3475 3475 } … … 3478 3478 if(HIWORD(wParam)==BN_CLICKED){ 3479 3479 //変更情報 3480 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3480 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3481 3481 3482 3482 if(SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_GETCHECK,0,0)) 3483 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=WS_HSCROLL;3484 else 3485 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~WS_HSCROLL;3483 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=WS_HSCROLL; 3484 else 3485 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~WS_HSCROLL; 3486 3486 DrawRadWindow(i,pWindowInfo); 3487 3487 return 1; … … 3491 3491 if(HIWORD(wParam)==BN_CLICKED){ 3492 3492 //変更情報 3493 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3493 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3494 3494 3495 3495 if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0)) 3496 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=WS_VSCROLL;3497 else 3498 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~WS_VSCROLL;3496 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=WS_VSCROLL; 3497 else 3498 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~WS_VSCROLL; 3499 3499 DrawRadWindow(i,pWindowInfo); 3500 3500 return 1; … … 3504 3504 if(HIWORD(wParam)==BN_CLICKED){ 3505 3505 //変更情報 3506 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3506 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3507 3507 3508 3508 if(SendDlgItemMessage(hwnd,IDC_LBS_DISABLENOSCROLL,BM_GETCHECK,0,0)) 3509 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_DISABLENOSCROLL;3510 else 3511 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LBS_DISABLENOSCROLL;3509 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_DISABLENOSCROLL; 3510 else 3511 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_DISABLENOSCROLL; 3512 3512 DrawRadWindow(i,pWindowInfo); 3513 3513 return 1; … … 3517 3517 if(HIWORD(wParam)==BN_CLICKED){ 3518 3518 //変更情報 3519 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3519 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3520 3520 3521 3521 if(SendDlgItemMessage(hwnd,IDC_LBS_NOREDRAW,BM_GETCHECK,0,0)) 3522 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_NOREDRAW;3523 else 3524 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LBS_NOREDRAW;3522 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_NOREDRAW; 3523 else 3524 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_NOREDRAW; 3525 3525 return 1; 3526 3526 } … … 3529 3529 if(HIWORD(wParam)==BN_CLICKED){ 3530 3530 //変更情報 3531 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3531 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3532 3532 3533 3533 if(SendDlgItemMessage(hwnd,IDC_LBS_USETABSTOPS,BM_GETCHECK,0,0)) 3534 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_USETABSTOPS;3535 else 3536 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LBS_USETABSTOPS;3534 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_USETABSTOPS; 3535 else 3536 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_USETABSTOPS; 3537 3537 return 1; 3538 3538 } … … 3541 3541 if(HIWORD(wParam)==BN_CLICKED){ 3542 3542 //変更情報 3543 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3543 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3544 3544 3545 3545 if(SendDlgItemMessage(hwnd,IDC_LBS_WANTKEYBOARDINPUT,BM_GETCHECK,0,0)) 3546 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=LBS_WANTKEYBOARDINPUT;3547 else 3548 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~LBS_WANTKEYBOARDINPUT;3546 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_WANTKEYBOARDINPUT; 3547 else 3548 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_WANTKEYBOARDINPUT; 3549 3549 return 1; 3550 3550 } … … 3577 3577 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3578 3578 3579 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);3580 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption);3579 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 3580 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption); 3581 3581 3582 3582 … … 3584 3584 //スタイル 3585 3585 3586 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3587 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3588 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3589 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);3590 3591 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&PBS_VERTICAL) SendDlgItemMessage(hwnd,IDC_PBS_VERTICAL,BM_SETCHECK,BST_CHECKED,0);3592 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&PBS_SMOOTH) SendDlgItemMessage(hwnd,IDC_PBS_SMOOTH,BM_SETCHECK,BST_CHECKED,0);3586 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3587 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3588 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3589 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 3590 3591 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&PBS_VERTICAL) SendDlgItemMessage(hwnd,IDC_PBS_VERTICAL,BM_SETCHECK,BST_CHECKED,0); 3592 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&PBS_SMOOTH) SendDlgItemMessage(hwnd,IDC_PBS_SMOOTH,BM_SETCHECK,BST_CHECKED,0); 3593 3593 3594 3594 … … 3612 3612 if(HIWORD(wParam)==BN_CLICKED){ 3613 3613 //変更情報 3614 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3614 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3615 3615 3616 3616 if(SendDlgItemMessage(hwnd,IDC_PBS_VERTICAL,BM_GETCHECK,0,0)) 3617 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=PBS_VERTICAL;3618 else 3619 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~PBS_VERTICAL;3617 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=PBS_VERTICAL; 3618 else 3619 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~PBS_VERTICAL; 3620 3620 DrawRadWindow(i,pWindowInfo); 3621 3621 return 1; … … 3625 3625 if(HIWORD(wParam)==BN_CLICKED){ 3626 3626 //変更情報 3627 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3627 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3628 3628 3629 3629 if(SendDlgItemMessage(hwnd,IDC_PBS_SMOOTH,BM_GETCHECK,0,0)) 3630 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=PBS_SMOOTH;3631 else 3632 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~PBS_SMOOTH;3630 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=PBS_SMOOTH; 3631 else 3632 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~PBS_SMOOTH; 3633 3633 DrawRadWindow(i,pWindowInfo); 3634 3634 return 1; … … 3662 3662 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3663 3663 3664 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);3665 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption);3664 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 3665 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption); 3666 3666 3667 3667 … … 3670 3670 //////////// 3671 3671 3672 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3673 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3674 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3675 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);3676 3677 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_AUTORADIOBUTTON)==BS_AUTORADIOBUTTON) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0);3678 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0);3679 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0);3680 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);3681 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);3682 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);3683 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);3672 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3673 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3674 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3675 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 3676 3677 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_AUTORADIOBUTTON)==BS_AUTORADIOBUTTON) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0); 3678 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0); 3679 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0); 3680 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); 3681 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); 3682 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0); 3683 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 3684 3684 3685 3685 … … 3698 3698 3699 3699 //ビットを考慮してBS_CENTERを最初に比較する 3700 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);3701 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);3702 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);3700 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0); 3701 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0); 3702 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0); 3703 3703 else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0); 3704 3704 … … 3718 3718 3719 3719 //ビットを考慮してBS_VCENTERを最初に比較する 3720 if((pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);3721 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);3722 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);3720 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0); 3721 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0); 3722 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0); 3723 3723 else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0); 3724 3724 … … 3743 3743 if(HIWORD(wParam)==BN_CLICKED){ 3744 3744 //変更情報 3745 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3745 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3746 3746 3747 3747 if(SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_GETCHECK,0,0)){ 3748 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0;3749 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_AUTORADIOBUTTON;3748 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0; 3749 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_AUTORADIOBUTTON; 3750 3750 } 3751 3751 else{ 3752 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=0xFFFFFFF0;3753 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_RADIOBUTTON;3752 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0; 3753 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_RADIOBUTTON; 3754 3754 } 3755 3755 return 1; … … 3759 3759 if(HIWORD(wParam)==BN_CLICKED){ 3760 3760 //変更情報 3761 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3761 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3762 3762 3763 3763 if(SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_GETCHECK,0,0)) 3764 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_PUSHLIKE;3765 else 3766 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_PUSHLIKE;3764 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_PUSHLIKE; 3765 else 3766 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_PUSHLIKE; 3767 3767 DrawRadWindow(i,pWindowInfo); 3768 3768 return 1; … … 3772 3772 if(HIWORD(wParam)==BN_CLICKED){ 3773 3773 //変更情報 3774 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3774 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3775 3775 3776 3776 if(SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_GETCHECK,0,0)) 3777 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFTTEXT;3778 else 3779 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_LEFTTEXT;3777 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFTTEXT; 3778 else 3779 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_LEFTTEXT; 3780 3780 DrawRadWindow(i,pWindowInfo); 3781 3781 return 1; … … 3785 3785 if(HIWORD(wParam)==BN_CLICKED){ 3786 3786 //変更情報 3787 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3787 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3788 3788 3789 3789 if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){ 3790 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_ICON;3791 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP;3790 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_ICON; 3791 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP; 3792 3792 SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0); 3793 3793 } 3794 3794 else 3795 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON;3795 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON; 3796 3796 DrawRadWindow(i,pWindowInfo); 3797 3797 return 1; … … 3801 3801 if(HIWORD(wParam)==BN_CLICKED){ 3802 3802 //変更情報 3803 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3803 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3804 3804 3805 3805 if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){ 3806 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BITMAP;3807 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_ICON;3806 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BITMAP; 3807 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON; 3808 3808 SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0); 3809 3809 } 3810 3810 else 3811 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_BITMAP;3811 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP; 3812 3812 DrawRadWindow(i,pWindowInfo); 3813 3813 return 1; … … 3817 3817 if(HIWORD(wParam)==BN_CLICKED){ 3818 3818 //変更情報 3819 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3819 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3820 3820 3821 3821 if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0)) 3822 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_MULTILINE;3823 else 3824 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_MULTILINE;3822 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_MULTILINE; 3823 else 3824 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_MULTILINE; 3825 3825 DrawRadWindow(i,pWindowInfo); 3826 3826 return 1; … … 3830 3830 if(HIWORD(wParam)==BN_CLICKED){ 3831 3831 //変更情報 3832 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3832 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3833 3833 3834 3834 if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) 3835 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_NOTIFY;3836 else 3837 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~BS_NOTIFY;3835 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_NOTIFY; 3836 else 3837 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_NOTIFY; 3838 3838 return 1; 3839 3839 } … … 3843 3843 if(HIWORD(wParam)==CBN_SELCHANGE){ 3844 3844 //変更情報 3845 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3845 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3846 3846 3847 3847 i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0); 3848 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_LEFT|BS_RIGHT|BS_CENTER);3849 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_LEFT;3850 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_RIGHT;3851 else if(i3==3) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_CENTER;3848 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_LEFT|BS_RIGHT|BS_CENTER); 3849 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFT; 3850 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_RIGHT; 3851 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CENTER; 3852 3852 DrawRadWindow(i,pWindowInfo); 3853 3853 return 1; … … 3857 3857 if(HIWORD(wParam)==CBN_SELCHANGE){ 3858 3858 //変更情報 3859 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3859 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3860 3860 3861 3861 i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0); 3862 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER);3863 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_TOP;3864 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_BOTTOM;3865 else if(i3==3) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=BS_VCENTER;3862 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER); 3863 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_TOP; 3864 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BOTTOM; 3865 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_VCENTER; 3866 3866 DrawRadWindow(i,pWindowInfo); 3867 3867 return 1; … … 3896 3896 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3897 3897 3898 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);3898 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 3899 3899 3900 3900 … … 3903 3903 //////////// 3904 3904 3905 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3906 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3907 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3908 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);3905 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3906 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3907 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3908 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 3909 3909 3910 3910 … … 3920 3920 SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_ADDSTRING,0,(long)STRING_SCROLLBARPROP_STYLE_BOTTOMORRIGHT); 3921 3921 3922 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SBS_TOPALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,1,0);3923 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SBS_BOTTOMALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,2,0);3922 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SBS_TOPALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,1,0); 3923 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SBS_BOTTOMALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,2,0); 3924 3924 else SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,0,0); 3925 3925 … … 3944 3944 if(HIWORD(wParam)==CBN_SELCHANGE){ 3945 3945 //変更情報 3946 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);3946 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 3947 3947 3948 3948 i3=SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_GETCURSEL,0,0); 3949 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(SBS_TOPALIGN|SBS_BOTTOMALIGN);3950 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SBS_TOPALIGN;3951 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SBS_BOTTOMALIGN;3949 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(SBS_TOPALIGN|SBS_BOTTOMALIGN); 3950 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SBS_TOPALIGN; 3951 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SBS_BOTTOMALIGN; 3952 3952 return 1; 3953 3953 } … … 3981 3981 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3982 3982 3983 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);3984 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption);3983 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 3984 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption); 3985 3985 3986 3986 … … 3989 3989 //////////// 3990 3990 3991 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3992 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3993 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3994 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);3995 3996 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_NOPREFIX) SendDlgItemMessage(hwnd,IDC_SS_NOPREFIX,BM_SETCHECK,BST_CHECKED,0);3997 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_LEFTNOWORDWRAP) SendDlgItemMessage(hwnd,IDC_SS_LEFTNOWORDWRAP,BM_SETCHECK,BST_CHECKED,0);3998 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);3991 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3992 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3993 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3994 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 3995 3996 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_NOPREFIX) SendDlgItemMessage(hwnd,IDC_SS_NOPREFIX,BM_SETCHECK,BST_CHECKED,0); 3997 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_LEFTNOWORDWRAP) SendDlgItemMessage(hwnd,IDC_SS_LEFTNOWORDWRAP,BM_SETCHECK,BST_CHECKED,0); 3998 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 3999 3999 4000 4000 … … 4011 4011 4012 4012 //ビットを考慮してSS_LEFTを最後に検討する 4013 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_CENTER) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,1,0);4014 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&SS_RIGHT) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,2,0);4013 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_CENTER) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,1,0); 4014 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_RIGHT) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,2,0); 4015 4015 else SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,0,0); 4016 4016 … … 4035 4035 if(HIWORD(wParam)==BN_CLICKED){ 4036 4036 //変更情報 4037 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4037 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4038 4038 4039 4039 if(SendDlgItemMessage(hwnd,IDC_SS_NOPREFIX,BM_GETCHECK,0,0)) 4040 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_NOPREFIX;4041 else 4042 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_NOPREFIX;4040 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_NOPREFIX; 4041 else 4042 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_NOPREFIX; 4043 4043 return 1; 4044 4044 } … … 4047 4047 if(HIWORD(wParam)==BN_CLICKED){ 4048 4048 //変更情報 4049 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4049 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4050 4050 4051 4051 if(SendDlgItemMessage(hwnd,IDC_SS_LEFTNOWORDWRAP,BM_GETCHECK,0,0)) 4052 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_LEFTNOWORDWRAP;4053 else 4054 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_LEFTNOWORDWRAP;4052 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_LEFTNOWORDWRAP; 4053 else 4054 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_LEFTNOWORDWRAP; 4055 4055 4056 4056 DrawRadWindow(i,pWindowInfo); … … 4061 4061 if(HIWORD(wParam)==BN_CLICKED){ 4062 4062 //変更情報 4063 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4063 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4064 4064 4065 4065 if(SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_GETCHECK,0,0)) 4066 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_NOTIFY;4067 else 4068 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~SS_NOTIFY;4066 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_NOTIFY; 4067 else 4068 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_NOTIFY; 4069 4069 return 1; 4070 4070 } … … 4074 4074 if(HIWORD(wParam)==CBN_SELCHANGE){ 4075 4075 //変更情報 4076 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4076 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4077 4077 4078 4078 i3=SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_GETCURSEL,0,0); 4079 4079 //SS_LEFT=0 4080 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(SS_CENTER|SS_RIGHT);4081 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_CENTER;4082 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=SS_RIGHT;4080 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(SS_CENTER|SS_RIGHT); 4081 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_CENTER; 4082 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_RIGHT; 4083 4083 DrawRadWindow(i,pWindowInfo); 4084 4084 return 1; … … 4112 4112 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 4113 4113 4114 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);4114 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 4115 4115 4116 4116 … … 4119 4119 //////////// 4120 4120 4121 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);4122 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);4123 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);4124 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);4121 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 4122 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 4123 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 4124 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 4125 4125 4126 4126 … … 4134 4134 SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_ADDSTRING,0,(long)STRING_DIRECTION_VERTICAL); 4135 4135 4136 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TBS_VERT) SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_SETCURSEL,1,0);4136 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_VERT) SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_SETCURSEL,1,0); 4137 4137 else SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_SETCURSEL,0,0); 4138 4138 … … 4149 4149 SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_ADDSTRING,0,(long)STRING_TRACKBARPROP_STYLE_POSITION_BOTTOMORRIGHT); 4150 4150 4151 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TBS_BOTH) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,0,0);4152 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TBS_TOP) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,1,0);4151 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_BOTH) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,0,0); 4152 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_TOP) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,1,0); 4153 4153 else SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,2,0); 4154 4154 4155 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TBS_NOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_NOTICKS,BM_SETCHECK,BST_CHECKED,0);4156 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TBS_AUTOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_AUTOTICKS,BM_SETCHECK,BST_CHECKED,0);4157 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TBS_ENABLESELRANGE) SendDlgItemMessage(hwnd,IDC_TBS_ENABLESELRANGE,BM_SETCHECK,BST_CHECKED,0);4155 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_NOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_NOTICKS,BM_SETCHECK,BST_CHECKED,0); 4156 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_AUTOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_AUTOTICKS,BM_SETCHECK,BST_CHECKED,0); 4157 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_ENABLESELRANGE) SendDlgItemMessage(hwnd,IDC_TBS_ENABLESELRANGE,BM_SETCHECK,BST_CHECKED,0); 4158 4158 4159 4159 … … 4177 4177 if(HIWORD(wParam)==CBN_SELCHANGE){ 4178 4178 //変更情報 4179 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4179 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4180 4180 4181 4181 i3=SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_GETCURSEL,0,0); 4182 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TBS_VERT;4183 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TBS_VERT;4182 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TBS_VERT; 4183 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_VERT; 4184 4184 DrawRadWindow(i,pWindowInfo); 4185 4185 return 1; … … 4189 4189 if(HIWORD(wParam)==CBN_SELCHANGE){ 4190 4190 //変更情報 4191 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4191 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4192 4192 4193 4193 i3=SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_GETCURSEL,0,0); 4194 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(TBS_BOTH|TBS_TOP);4195 if(i3==0) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TBS_BOTH;4196 else if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TBS_TOP;4194 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(TBS_BOTH|TBS_TOP); 4195 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_BOTH; 4196 else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_TOP; 4197 4197 DrawRadWindow(i,pWindowInfo); 4198 4198 return 1; … … 4203 4203 if(HIWORD(wParam)==BN_CLICKED){ 4204 4204 //変更情報 4205 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4205 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4206 4206 4207 4207 if(SendDlgItemMessage(hwnd,IDC_TBS_NOTICKS,BM_GETCHECK,0,0)) 4208 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TBS_NOTICKS;4209 else 4210 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TBS_NOTICKS;4208 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_NOTICKS; 4209 else 4210 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TBS_NOTICKS; 4211 4211 DrawRadWindow(i,pWindowInfo); 4212 4212 return 1; … … 4216 4216 if(HIWORD(wParam)==BN_CLICKED){ 4217 4217 //変更情報 4218 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4218 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4219 4219 4220 4220 if(SendDlgItemMessage(hwnd,IDC_TBS_AUTOTICKS,BM_GETCHECK,0,0)) 4221 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TBS_AUTOTICKS;4222 else 4223 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TBS_AUTOTICKS;4221 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_AUTOTICKS; 4222 else 4223 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TBS_AUTOTICKS; 4224 4224 return 1; 4225 4225 } … … 4228 4228 if(HIWORD(wParam)==BN_CLICKED){ 4229 4229 //変更情報 4230 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4230 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4231 4231 4232 4232 if(SendDlgItemMessage(hwnd,IDC_TBS_ENABLESELRANGE,BM_GETCHECK,0,0)) 4233 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TBS_ENABLESELRANGE;4234 else 4235 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TBS_ENABLESELRANGE;4233 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_ENABLESELRANGE; 4234 else 4235 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TBS_ENABLESELRANGE; 4236 4236 DrawRadWindow(i,pWindowInfo); 4237 4237 return 1; … … 4265 4265 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 4266 4266 4267 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);4267 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 4268 4268 4269 4269 … … 4271 4271 //スタイル 4272 4272 4273 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);4274 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);4275 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);4276 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);4277 4278 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_HASBUTTONS) SendDlgItemMessage(hwnd,IDC_TVS_HASBUTTONS,BM_SETCHECK,BST_CHECKED,0);4279 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_HASLINES) SendDlgItemMessage(hwnd,IDC_TVS_HASLINES,BM_SETCHECK,BST_CHECKED,0);4280 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_LINESATROOT) SendDlgItemMessage(hwnd,IDC_TVS_LINESATROOT,BM_SETCHECK,BST_CHECKED,0);4281 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_TVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0);4282 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_DISABLEDRAGDROP) SendDlgItemMessage(hwnd,IDC_TVS_DISABLEDRAGDROP,BM_SETCHECK,BST_CHECKED,0);4283 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_TVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0);4284 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_TVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0);4285 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_NOTOOLTIPS) SendDlgItemMessage(hwnd,IDC_TVS_NOTOOLTIPS,BM_SETCHECK,BST_CHECKED,0);4286 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_CHECKBOXES) SendDlgItemMessage(hwnd,IDC_TVS_CHECKBOXES,BM_SETCHECK,BST_CHECKED,0);4287 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_FULLROWSELECT) SendDlgItemMessage(hwnd,IDC_TVS_FULLROWSELECT,BM_SETCHECK,BST_CHECKED,0);4288 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_TRACKSELECT) SendDlgItemMessage(hwnd,IDC_TVS_TRACKSELECT,BM_SETCHECK,BST_CHECKED,0);4289 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&TVS_SINGLEEXPAND) SendDlgItemMessage(hwnd,IDC_TVS_SINGLEEXPAND,BM_SETCHECK,BST_CHECKED,0);4273 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 4274 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 4275 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 4276 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 4277 4278 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_HASBUTTONS) SendDlgItemMessage(hwnd,IDC_TVS_HASBUTTONS,BM_SETCHECK,BST_CHECKED,0); 4279 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_HASLINES) SendDlgItemMessage(hwnd,IDC_TVS_HASLINES,BM_SETCHECK,BST_CHECKED,0); 4280 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_LINESATROOT) SendDlgItemMessage(hwnd,IDC_TVS_LINESATROOT,BM_SETCHECK,BST_CHECKED,0); 4281 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_TVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0); 4282 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_DISABLEDRAGDROP) SendDlgItemMessage(hwnd,IDC_TVS_DISABLEDRAGDROP,BM_SETCHECK,BST_CHECKED,0); 4283 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_TVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0); 4284 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_TVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0); 4285 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_NOTOOLTIPS) SendDlgItemMessage(hwnd,IDC_TVS_NOTOOLTIPS,BM_SETCHECK,BST_CHECKED,0); 4286 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_CHECKBOXES) SendDlgItemMessage(hwnd,IDC_TVS_CHECKBOXES,BM_SETCHECK,BST_CHECKED,0); 4287 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_FULLROWSELECT) SendDlgItemMessage(hwnd,IDC_TVS_FULLROWSELECT,BM_SETCHECK,BST_CHECKED,0); 4288 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_TRACKSELECT) SendDlgItemMessage(hwnd,IDC_TVS_TRACKSELECT,BM_SETCHECK,BST_CHECKED,0); 4289 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_SINGLEEXPAND) SendDlgItemMessage(hwnd,IDC_TVS_SINGLEEXPAND,BM_SETCHECK,BST_CHECKED,0); 4290 4290 4291 4291 … … 4309 4309 if(HIWORD(wParam)==BN_CLICKED){ 4310 4310 //変更情報 4311 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4311 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4312 4312 4313 4313 if(SendDlgItemMessage(hwnd,IDC_TVS_HASBUTTONS,BM_GETCHECK,0,0)) 4314 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_HASBUTTONS;4315 else 4316 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_HASBUTTONS;4314 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_HASBUTTONS; 4315 else 4316 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_HASBUTTONS; 4317 4317 return 1; 4318 4318 } … … 4321 4321 if(HIWORD(wParam)==BN_CLICKED){ 4322 4322 //変更情報 4323 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4323 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4324 4324 4325 4325 if(SendDlgItemMessage(hwnd,IDC_TVS_HASLINES,BM_GETCHECK,0,0)) 4326 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_HASLINES;4327 else 4328 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_HASLINES;4326 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_HASLINES; 4327 else 4328 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_HASLINES; 4329 4329 return 1; 4330 4330 } … … 4333 4333 if(HIWORD(wParam)==BN_CLICKED){ 4334 4334 //変更情報 4335 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4335 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4336 4336 4337 4337 if(SendDlgItemMessage(hwnd,IDC_TVS_LINESATROOT,BM_GETCHECK,0,0)) 4338 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_LINESATROOT;4339 else 4340 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_LINESATROOT;4338 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_LINESATROOT; 4339 else 4340 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_LINESATROOT; 4341 4341 return 1; 4342 4342 } … … 4345 4345 if(HIWORD(wParam)==BN_CLICKED){ 4346 4346 //変更情報 4347 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4347 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4348 4348 4349 4349 if(SendDlgItemMessage(hwnd,IDC_TVS_EDITLABELS,BM_GETCHECK,0,0)) 4350 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_EDITLABELS;4351 else 4352 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_EDITLABELS;4350 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_EDITLABELS; 4351 else 4352 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_EDITLABELS; 4353 4353 return 1; 4354 4354 } … … 4357 4357 if(HIWORD(wParam)==BN_CLICKED){ 4358 4358 //変更情報 4359 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4359 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4360 4360 4361 4361 if(SendDlgItemMessage(hwnd,IDC_TVS_DISABLEDRAGDROP,BM_GETCHECK,0,0)) 4362 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_DISABLEDRAGDROP;4363 else 4364 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_DISABLEDRAGDROP;4362 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_DISABLEDRAGDROP; 4363 else 4364 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_DISABLEDRAGDROP; 4365 4365 return 1; 4366 4366 } … … 4369 4369 if(HIWORD(wParam)==BN_CLICKED){ 4370 4370 //変更情報 4371 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4371 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4372 4372 4373 4373 if(SendDlgItemMessage(hwnd,IDC_TVS_SHOWSELALWAYS,BM_GETCHECK,0,0)) 4374 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_SHOWSELALWAYS;4375 else 4376 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_SHOWSELALWAYS;4374 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_SHOWSELALWAYS; 4375 else 4376 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_SHOWSELALWAYS; 4377 4377 return 1; 4378 4378 } … … 4381 4381 if(HIWORD(wParam)==BN_CLICKED){ 4382 4382 //変更情報 4383 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4383 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4384 4384 4385 4385 if(SendDlgItemMessage(hwnd,IDC_TVS_NOSCROLL,BM_GETCHECK,0,0)) 4386 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_NOSCROLL;4387 else 4388 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_NOSCROLL;4386 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_NOSCROLL; 4387 else 4388 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_NOSCROLL; 4389 4389 return 1; 4390 4390 } … … 4393 4393 if(HIWORD(wParam)==BN_CLICKED){ 4394 4394 //変更情報 4395 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4395 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4396 4396 4397 4397 if(SendDlgItemMessage(hwnd,IDC_TVS_NOTOOLTIPS,BM_GETCHECK,0,0)) 4398 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_NOTOOLTIPS;4399 else 4400 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_NOTOOLTIPS;4398 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_NOTOOLTIPS; 4399 else 4400 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_NOTOOLTIPS; 4401 4401 return 1; 4402 4402 } … … 4405 4405 if(HIWORD(wParam)==BN_CLICKED){ 4406 4406 //変更情報 4407 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4407 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4408 4408 4409 4409 if(SendDlgItemMessage(hwnd,IDC_TVS_CHECKBOXES,BM_GETCHECK,0,0)) 4410 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_CHECKBOXES;4411 else 4412 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_CHECKBOXES;4410 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_CHECKBOXES; 4411 else 4412 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_CHECKBOXES; 4413 4413 return 1; 4414 4414 } … … 4417 4417 if(HIWORD(wParam)==BN_CLICKED){ 4418 4418 //変更情報 4419 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4419 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4420 4420 4421 4421 if(SendDlgItemMessage(hwnd,IDC_TVS_FULLROWSELECT,BM_GETCHECK,0,0)) 4422 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_FULLROWSELECT;4423 else 4424 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_FULLROWSELECT;4422 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_FULLROWSELECT; 4423 else 4424 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_FULLROWSELECT; 4425 4425 return 1; 4426 4426 } … … 4429 4429 if(HIWORD(wParam)==BN_CLICKED){ 4430 4430 //変更情報 4431 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4431 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4432 4432 4433 4433 if(SendDlgItemMessage(hwnd,IDC_TVS_TRACKSELECT,BM_GETCHECK,0,0)) 4434 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_TRACKSELECT;4435 else 4436 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_TRACKSELECT;4434 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_TRACKSELECT; 4435 else 4436 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_TRACKSELECT; 4437 4437 return 1; 4438 4438 } … … 4441 4441 if(HIWORD(wParam)==BN_CLICKED){ 4442 4442 //変更情報 4443 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4443 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4444 4444 4445 4445 if(SendDlgItemMessage(hwnd,IDC_TVS_SINGLEEXPAND,BM_GETCHECK,0,0)) 4446 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=TVS_SINGLEEXPAND;4447 else 4448 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~TVS_SINGLEEXPAND;4446 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_SINGLEEXPAND; 4447 else 4448 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_SINGLEEXPAND; 4449 4449 return 1; 4450 4450 } … … 4477 4477 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 4478 4478 4479 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName);4480 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].caption);4479 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName); 4480 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption); 4481 4481 4482 4482 … … 4485 4485 //////////// 4486 4486 4487 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);4488 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);4489 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);4490 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);4487 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 4488 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 4489 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 4490 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 4491 4491 4492 4492 … … 4500 4500 SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_ADDSTRING,0,(long)STRING_DIRECTION_VERTICAL); 4501 4501 4502 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&UDS_HORZ) SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_SETCURSEL,0,0);4502 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_HORZ) SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_SETCURSEL,0,0); 4503 4503 else SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_SETCURSEL,1,0); 4504 4504 … … 4514 4514 SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_ADDSTRING,0,(long)STRING_RIGHT); 4515 4515 4516 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&UDS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,1,0);4517 else if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&UDS_ALIGNRIGHT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,2,0);4516 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,1,0); 4517 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_ALIGNRIGHT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,2,0); 4518 4518 else SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,0,0); 4519 4519 4520 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&UDS_AUTOBUDDY) SendDlgItemMessage(hwnd,IDC_UDS_AUTOBUDDY,BM_SETCHECK,BST_CHECKED,0);4521 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&UDS_SETBUDDYINT) SendDlgItemMessage(hwnd,IDC_UDS_SETBUDDYINT,BM_SETCHECK,BST_CHECKED,0);4522 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&UDS_NOTHOUSANDS) SendDlgItemMessage(hwnd,IDC_UDS_NOTHOUSANDS,BM_SETCHECK,BST_CHECKED,0);4523 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&UDS_WRAP) SendDlgItemMessage(hwnd,IDC_UDS_WRAP,BM_SETCHECK,BST_CHECKED,0);4524 if(pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&UDS_ARROWKEYS) SendDlgItemMessage(hwnd,IDC_UDS_ARROWKEYS,BM_SETCHECK,BST_CHECKED,0);4520 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_AUTOBUDDY) SendDlgItemMessage(hwnd,IDC_UDS_AUTOBUDDY,BM_SETCHECK,BST_CHECKED,0); 4521 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_SETBUDDYINT) SendDlgItemMessage(hwnd,IDC_UDS_SETBUDDYINT,BM_SETCHECK,BST_CHECKED,0); 4522 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_NOTHOUSANDS) SendDlgItemMessage(hwnd,IDC_UDS_NOTHOUSANDS,BM_SETCHECK,BST_CHECKED,0); 4523 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_WRAP) SendDlgItemMessage(hwnd,IDC_UDS_WRAP,BM_SETCHECK,BST_CHECKED,0); 4524 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_ARROWKEYS) SendDlgItemMessage(hwnd,IDC_UDS_ARROWKEYS,BM_SETCHECK,BST_CHECKED,0); 4525 4525 4526 4526 … … 4544 4544 if(HIWORD(wParam)==CBN_SELCHANGE){ 4545 4545 //変更情報 4546 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4546 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4547 4547 4548 4548 i3=SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_GETCURSEL,0,0); 4549 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~UDS_HORZ;4550 if(i3==0) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=UDS_HORZ;4549 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_HORZ; 4550 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_HORZ; 4551 4551 DrawRadWindow(i,pWindowInfo); 4552 4552 return 1; … … 4556 4556 if(HIWORD(wParam)==CBN_SELCHANGE){ 4557 4557 //変更情報 4558 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4558 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4559 4559 4560 4560 i3=SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_GETCURSEL,0,0); 4561 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~(UDS_ALIGNLEFT|UDS_ALIGNRIGHT);4562 if(i3==1) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=UDS_ALIGNLEFT;4563 else if(i3==2) pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=UDS_ALIGNRIGHT;4561 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(UDS_ALIGNLEFT|UDS_ALIGNRIGHT); 4562 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_ALIGNLEFT; 4563 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_ALIGNRIGHT; 4564 4564 return 1; 4565 4565 } … … 4569 4569 if(HIWORD(wParam)==BN_CLICKED){ 4570 4570 //変更情報 4571 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4571 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4572 4572 4573 4573 if(SendDlgItemMessage(hwnd,IDC_UDS_AUTOBUDDY,BM_GETCHECK,0,0)) 4574 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=UDS_AUTOBUDDY;4575 else 4576 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~UDS_AUTOBUDDY;4574 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_AUTOBUDDY; 4575 else 4576 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_AUTOBUDDY; 4577 4577 return 1; 4578 4578 } … … 4581 4581 if(HIWORD(wParam)==BN_CLICKED){ 4582 4582 //変更情報 4583 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4583 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4584 4584 4585 4585 if(SendDlgItemMessage(hwnd,IDC_UDS_SETBUDDYINT,BM_GETCHECK,0,0)) 4586 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=UDS_SETBUDDYINT;4587 else 4588 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~UDS_SETBUDDYINT;4586 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_SETBUDDYINT; 4587 else 4588 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_SETBUDDYINT; 4589 4589 return 1; 4590 4590 } … … 4593 4593 if(HIWORD(wParam)==BN_CLICKED){ 4594 4594 //変更情報 4595 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4595 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4596 4596 4597 4597 if(SendDlgItemMessage(hwnd,IDC_UDS_NOTHOUSANDS,BM_GETCHECK,0,0)) 4598 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=UDS_NOTHOUSANDS;4599 else 4600 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~UDS_NOTHOUSANDS;4598 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_NOTHOUSANDS; 4599 else 4600 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_NOTHOUSANDS; 4601 4601 return 1; 4602 4602 } … … 4605 4605 if(HIWORD(wParam)==BN_CLICKED){ 4606 4606 //変更情報 4607 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4607 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4608 4608 4609 4609 if(SendDlgItemMessage(hwnd,IDC_UDS_WRAP,BM_GETCHECK,0,0)) 4610 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=UDS_WRAP;4611 else 4612 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~UDS_WRAP;4610 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_WRAP; 4611 else 4612 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_WRAP; 4613 4613 return 1; 4614 4614 } … … 4617 4617 if(HIWORD(wParam)==BN_CLICKED){ 4618 4618 //変更情報 4619 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style);4619 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style); 4620 4620 4621 4621 if(SendDlgItemMessage(hwnd,IDC_UDS_ARROWKEYS,BM_GETCHECK,0,0)) 4622 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style|=UDS_ARROWKEYS;4623 else 4624 pWindowInfo-> pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].style&=~UDS_ARROWKEYS;4622 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_ARROWKEYS; 4623 else 4624 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_ARROWKEYS; 4625 4625 return 1; 4626 4626 } -
trunk/ab5.0/abdev/abdev/Rad_UndoRedo.cpp
r615 r616 60 60 } 61 61 else{ 62 temporary=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].IdName;63 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].IdName=(char *)pUndoState->lpdwData[pUndoState->NowPos];62 temporary=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->IdName; 63 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->IdName=(char *)pUndoState->lpdwData[pUndoState->NowPos]; 64 64 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary; 65 65 } … … 74 74 } 75 75 else{ 76 temporary=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].caption;77 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].caption=(char *)pUndoState->lpdwData[pUndoState->NowPos];76 temporary=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->caption; 77 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->caption=(char *)pUndoState->lpdwData[pUndoState->NowPos]; 78 78 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary; 79 79 } … … 121 121 } 122 122 else{ 123 dw=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].style;124 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].style=pUndoState->lpdwData[pUndoState->NowPos];123 dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->style; 124 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->style=pUndoState->lpdwData[pUndoState->NowPos]; 125 125 pUndoState->lpdwData[pUndoState->NowPos]=dw; 126 126 } … … 136 136 } 137 137 else{ 138 dw=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ExStyle;139 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ExStyle=pUndoState->lpdwData[pUndoState->NowPos];138 dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ExStyle; 139 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ExStyle=pUndoState->lpdwData[pUndoState->NowPos]; 140 140 pUndoState->lpdwData[pUndoState->NowPos]=dw; 141 141 } … … 150 150 } 151 151 else{ 152 PointAndSize.pos=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].pos;153 PointAndSize.size=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].size;154 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].pos=pReadPointAndSize->pos;155 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].size=pReadPointAndSize->size;152 PointAndSize.pos=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->pos; 153 PointAndSize.size=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->size; 154 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->pos=pReadPointAndSize->pos; 155 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->size=pReadPointAndSize->size; 156 156 } 157 157 *pReadPointAndSize=PointAndSize; … … 166 166 pImageCtrlInfo=(IMAGECTRLINFO *)pUndoState->lpdwData[pUndoState->NowPos]; 167 167 168 dw=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ImageCtrlInfo.type;169 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ImageCtrlInfo.type=pImageCtrlInfo->type;168 dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.type; 169 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.type=pImageCtrlInfo->type; 170 170 pImageCtrlInfo->type=dw; 171 171 172 dw=(DWORD)pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ImageCtrlInfo.path;173 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ImageCtrlInfo.path=pImageCtrlInfo->path;172 dw=(DWORD)pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.path; 173 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.path=pImageCtrlInfo->path; 174 174 pImageCtrlInfo->path=(char *)dw; 175 175 … … 244 244 } 245 245 else{ 246 temporary=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].IdName;247 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].IdName=(char *)pUndoState->lpdwData[pUndoState->NowPos];246 temporary=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->IdName; 247 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->IdName=(char *)pUndoState->lpdwData[pUndoState->NowPos]; 248 248 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary; 249 249 } … … 258 258 } 259 259 else{ 260 temporary=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].caption;261 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].caption=(char *)pUndoState->lpdwData[pUndoState->NowPos];260 temporary=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->caption; 261 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->caption=(char *)pUndoState->lpdwData[pUndoState->NowPos]; 262 262 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary; 263 263 } … … 305 305 } 306 306 else{ 307 dw=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].style;308 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].style=pUndoState->lpdwData[pUndoState->NowPos];307 dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->style; 308 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->style=pUndoState->lpdwData[pUndoState->NowPos]; 309 309 pUndoState->lpdwData[pUndoState->NowPos]=dw; 310 310 } … … 320 320 } 321 321 else{ 322 dw=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ExStyle;323 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ExStyle=pUndoState->lpdwData[pUndoState->NowPos];322 dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ExStyle; 323 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ExStyle=pUndoState->lpdwData[pUndoState->NowPos]; 324 324 pUndoState->lpdwData[pUndoState->NowPos]=dw; 325 325 } … … 334 334 } 335 335 else{ 336 PointAndSize.pos=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].pos;337 PointAndSize.size=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].size;338 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].pos=pReadPointAndSize->pos;339 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].size=pReadPointAndSize->size;336 PointAndSize.pos=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->pos; 337 PointAndSize.size=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->size; 338 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->pos=pReadPointAndSize->pos; 339 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->size=pReadPointAndSize->size; 340 340 } 341 341 *pReadPointAndSize=PointAndSize; … … 350 350 pImageCtrlInfo=(IMAGECTRLINFO *)pUndoState->lpdwData[pUndoState->NowPos]; 351 351 352 dw=pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ImageCtrlInfo.type;353 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ImageCtrlInfo.type=pImageCtrlInfo->type;352 dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.type; 353 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.type=pImageCtrlInfo->type; 354 354 pImageCtrlInfo->type=dw; 355 355 356 dw=(DWORD)pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ImageCtrlInfo.path;357 pWindowInfo-> pChildInfo[pUndoState->SelectItemNum[pUndoState->NowPos]].ImageCtrlInfo.path=pImageCtrlInfo->path;356 dw=(DWORD)pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.path; 357 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.path=pImageCtrlInfo->path; 358 358 pImageCtrlInfo->path=(char *)dw; 359 359 -
trunk/ab5.0/abdev/abdev/WindowControl.cpp
r615 r616 70 70 BYTE *pByte; 71 71 int i2,i3,MemSize; 72 CHILDINFO *pChildInfo;73 72 74 73 for(i3=0;;i3++){ … … 86 85 87 86 for(i3--;i3>=0;i3--){ 88 pChildInfo=&ProjectInfo.windowInfos[WndInfoNum]->pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3]];87 CHILDINFO *pChildInfo = ProjectInfo.windowInfos[WndInfoNum]->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3]]; 89 88 90 89 MemSize+=lstrlen(pChildInfo->IdName)+1+ … … 557 556 558 557 //子ウィンドウ作成 559 for(i2=0,sw=0;i2<pWindowInfo->NumberOfChildWindows;i2++){ 560 if(pWindowInfo->pChildInfo[i2].Control==CT_UPDOWN){ 558 sw = 0; 559 BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos ) 560 { 561 if(pChildInfo->Control==CT_UPDOWN){ 561 562 sprintf(Command+i,"%s\tCreateUpDownControl(%d,%d,%d,%d,%d,hWnd,%s,GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,0,0,100,0)\r\n", 562 563 spaces, 563 p WindowInfo->pChildInfo[i2].style,564 p WindowInfo->pChildInfo[i2].pos.x,pWindowInfo->pChildInfo[i2].pos.y,565 p WindowInfo->pChildInfo[i2].size.cx,pWindowInfo->pChildInfo[i2].size.cy,566 p WindowInfo->pChildInfo[i2].IdName);564 pChildInfo->style, 565 pChildInfo->pos.x,pChildInfo->pos.y, 566 pChildInfo->size.cx,pChildInfo->size.cy, 567 pChildInfo->IdName); 567 568 i+=lstrlen(Command+i); 568 569 } 569 570 else{ 570 GetItemClassName(temporary,p WindowInfo->pChildInfo[i2].Control);571 temp2=FormatCaption(p WindowInfo->pChildInfo[i2].caption);571 GetItemClassName(temporary,pChildInfo->Control); 572 temp2=FormatCaption(pChildInfo->caption); 572 573 sprintf(Command+i,"%s\tCreateWindowEx(&H%08x,\"%s\",\"%s\",&H%08x,%d,%d,%d,%d,hWnd,%s As HMENU,GetModuleHandle(0),0)\r\n", 573 574 spaces, 574 p WindowInfo->pChildInfo[i2].ExStyle,575 pChildInfo->ExStyle, 575 576 temporary, 576 577 temp2, 577 p WindowInfo->pChildInfo[i2].style,578 p WindowInfo->pChildInfo[i2].pos.x,579 p WindowInfo->pChildInfo[i2].pos.y,580 p WindowInfo->pChildInfo[i2].size.cx,581 p WindowInfo->pChildInfo[i2].size.cy,582 p WindowInfo->pChildInfo[i2].IdName);578 pChildInfo->style, 579 pChildInfo->pos.x, 580 pChildInfo->pos.y, 581 pChildInfo->size.cx, 582 pChildInfo->size.cy, 583 pChildInfo->IdName); 583 584 i+=lstrlen(Command+i); 584 585 HeapDefaultFree(temp2); 585 586 sprintf(Command+i,"%s\tSendMessage(GetDlgItem(hWnd,%s),WM_SETFONT,hFont_%s As WPARAM,0)\r\n", 586 587 spaces, 587 p WindowInfo->pChildInfo[i2].IdName,588 pChildInfo->IdName, 588 589 pWindowInfo->name); 589 590 i+=lstrlen(Command+i); 590 591 591 if(p WindowInfo->pChildInfo[i2].Control==CT_IMAGEBOX){592 if(pChildInfo->Control==CT_IMAGEBOX){ 592 593 //イメージ ボックスの場合 593 if((p WindowInfo->pChildInfo[i2].style&0x000F)==SS_ICON){594 if(p WindowInfo->pChildInfo[i2].ImageCtrlInfo.type==IMGTYPE_FILE){595 if(strstr(p WindowInfo->pChildInfo[i2].ImageCtrlInfo.path,":")||596 strstr(p WindowInfo->pChildInfo[i2].ImageCtrlInfo.path,"\\\\")){594 if((pChildInfo->style&0x000F)==SS_ICON){ 595 if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_FILE){ 596 if(strstr(pChildInfo->ImageCtrlInfo.path,":")|| 597 strstr(pChildInfo->ImageCtrlInfo.path,"\\\\")){ 597 598 sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,\"%s\",IMAGE_ICON,0,0,LR_DEFAULTSIZE or LR_LOADFROMFILE)\r\n", 598 599 spaces, 599 600 pWindowInfo->name, 600 p WindowInfo->pChildInfo[i2].IdName,601 p WindowInfo->pChildInfo[i2].ImageCtrlInfo.path);601 pChildInfo->IdName, 602 pChildInfo->ImageCtrlInfo.path); 602 603 } 603 604 else{ … … 623 624 i+=2; 624 625 } 625 sprintf(Command+i,"%s\twsprintf(ImageFilePath,\"%%s%s\",ModulePath)\r\n",spaces,p WindowInfo->pChildInfo[i2].ImageCtrlInfo.path);626 sprintf(Command+i,"%s\twsprintf(ImageFilePath,\"%%s%s\",ModulePath)\r\n",spaces,pChildInfo->ImageCtrlInfo.path); 626 627 i+=lstrlen(Command+i); 627 628 sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,ImageFilePath,IMAGE_ICON,0,0,LR_DEFAULTSIZE or LR_LOADFROMFILE)\r\n", 628 629 spaces, 629 630 pWindowInfo->name, 630 p WindowInfo->pChildInfo[i2].IdName);631 pChildInfo->IdName); 631 632 } 632 633 i+=lstrlen(Command+i); 633 634 } 634 else if(p WindowInfo->pChildInfo[i2].ImageCtrlInfo.type==IMGTYPE_RES){635 else if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_RES){ 635 636 sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,%s As *Byte,IMAGE_ICON,0,0,LR_DEFAULTSIZE)\r\n", 636 637 spaces, 637 638 pWindowInfo->name, 638 p WindowInfo->pChildInfo[i2].IdName,639 p WindowInfo->pChildInfo[i2].ImageCtrlInfo.path);639 pChildInfo->IdName, 640 pChildInfo->ImageCtrlInfo.path); 640 641 i+=lstrlen(Command+i); 641 642 } 642 643 sprintf(Command+i,"%s\tSendMessage(GetDlgItem(hWnd,%s),STM_SETICON,hImage_%s_%s As WPARAM,0)\r\n", 643 644 spaces, 644 p WindowInfo->pChildInfo[i2].IdName,645 pChildInfo->IdName, 645 646 pWindowInfo->name, 646 p WindowInfo->pChildInfo[i2].IdName);647 pChildInfo->IdName); 647 648 i+=lstrlen(Command+i); 648 649 } 649 else if((p WindowInfo->pChildInfo[i2].style&0x000F)==SS_BITMAP){650 if(p WindowInfo->pChildInfo[i2].ImageCtrlInfo.type==IMGTYPE_FILE){651 if(strstr(p WindowInfo->pChildInfo[i2].ImageCtrlInfo.path,":")||652 strstr(p WindowInfo->pChildInfo[i2].ImageCtrlInfo.path,"\\\\")){650 else if((pChildInfo->style&0x000F)==SS_BITMAP){ 651 if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_FILE){ 652 if(strstr(pChildInfo->ImageCtrlInfo.path,":")|| 653 strstr(pChildInfo->ImageCtrlInfo.path,"\\\\")){ 653 654 sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,\"%s\",IMAGE_BITMAP,0,0,LR_DEFAULTSIZE or LR_LOADFROMFILE)\r\n", 654 655 spaces, 655 656 pWindowInfo->name, 656 p WindowInfo->pChildInfo[i2].IdName,657 p WindowInfo->pChildInfo[i2].ImageCtrlInfo.path);657 pChildInfo->IdName, 658 pChildInfo->ImageCtrlInfo.path); 658 659 } 659 660 else{ … … 679 680 i+=2; 680 681 } 681 sprintf(Command+i,"%s\twsprintf(ImageFilePath,\"%%s%s\",ModulePath)\r\n",spaces,p WindowInfo->pChildInfo[i2].ImageCtrlInfo.path);682 sprintf(Command+i,"%s\twsprintf(ImageFilePath,\"%%s%s\",ModulePath)\r\n",spaces,pChildInfo->ImageCtrlInfo.path); 682 683 i+=lstrlen(Command+i); 683 684 sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,ImageFilePath,IMAGE_BITMAP,0,0,LR_LOADFROMFILE)\r\n", 684 685 spaces, 685 686 pWindowInfo->name, 686 p WindowInfo->pChildInfo[i2].IdName);687 pChildInfo->IdName); 687 688 } 688 689 i+=lstrlen(Command+i); 689 690 } 690 else if(p WindowInfo->pChildInfo[i2].ImageCtrlInfo.type==IMGTYPE_RES){691 else if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_RES){ 691 692 sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,%s As *Byte,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE)\r\n", 692 693 spaces, 693 694 pWindowInfo->name, 694 p WindowInfo->pChildInfo[i2].IdName,695 p WindowInfo->pChildInfo[i2].ImageCtrlInfo.path);695 pChildInfo->IdName, 696 pChildInfo->ImageCtrlInfo.path); 696 697 i+=lstrlen(Command+i); 697 698 } 698 699 sprintf(Command+i,"%s\tSendMessage(GetDlgItem(hWnd,%s),STM_SETIMAGE,IMAGE_BITMAP,hImage_%s_%s As LPARAM)\r\n", 699 700 spaces, 700 p WindowInfo->pChildInfo[i2].IdName,701 pChildInfo->IdName, 701 702 pWindowInfo->name, 702 p WindowInfo->pChildInfo[i2].IdName);703 pChildInfo->IdName); 703 704 i+=lstrlen(Command+i); 704 705 } … … 731 732 732 733 //イメージ ボックス用の変数を解放 733 for(i2=0;i2<pWindowInfo->NumberOfChildWindows;i2++){ 734 if(pWindowInfo->pChildInfo[i2].Control==CT_IMAGEBOX){ 735 if((pWindowInfo->pChildInfo[i2].style&0x000F)==SS_ICON) 736 sprintf(Command+i,"%s\tDestroyIcon(hImage_%s_%s)\r\n",spaces,pWindowInfo->name,pWindowInfo->pChildInfo[i2].IdName); 737 else if((pWindowInfo->pChildInfo[i2].style&0x000F)==SS_BITMAP) 738 sprintf(Command+i,"%s\tDeleteObject(hImage_%s_%s)\r\n",spaces,pWindowInfo->name,pWindowInfo->pChildInfo[i2].IdName); 734 BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos ) 735 { 736 if(pChildInfo->Control==CT_IMAGEBOX){ 737 if((pChildInfo->style&0x000F)==SS_ICON) 738 sprintf(Command+i,"%s\tDestroyIcon(hImage_%s_%s)\r\n",spaces,pWindowInfo->name,pChildInfo->IdName); 739 else if((pChildInfo->style&0x000F)==SS_BITMAP) 740 sprintf(Command+i,"%s\tDeleteObject(hImage_%s_%s)\r\n",spaces,pWindowInfo->name,pChildInfo->IdName); 739 741 i+=lstrlen(Command+i); 740 742 } … … 1005 1007 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1006 1008 { 1007 for(i3=0;i3<pWindowInfo->NumberOfChildWindows;i3++){1008 1009 BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos ) 1010 { 1009 1011 //重複チェック 1010 1012 for(i6=0,sw1=0;i6<i5;i6++){ 1011 if(lstrcmpi(ppNames[i6],p WindowInfo->pChildInfo[i3].IdName)==0){1013 if(lstrcmpi(ppNames[i6],pChildInfo->IdName)==0){ 1012 1014 sw1=1; 1013 1015 break; … … 1017 1019 1018 1020 ppNames=(char **)HeapReAlloc(hHeap,0,ppNames,sizeof(char *)*(i5+1)); 1019 ppNames[i5]=p WindowInfo->pChildInfo[i3].IdName;1021 ppNames[i5]=pChildInfo->IdName; 1020 1022 i5++; 1021 1023 1022 sprintf(buffer+i2,"Const %s=%d\r\n",p WindowInfo->pChildInfo[i3].IdName,i4);1024 sprintf(buffer+i2,"Const %s=%d\r\n",pChildInfo->IdName,i4); 1023 1025 i2+=lstrlen(buffer+i2); 1024 1026 i4++; … … 1104 1106 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1105 1107 { 1106 for(i3=0;i3<pWindowInfo->NumberOfChildWindows;i3++){ 1107 if(pWindowInfo->pChildInfo[i3].Control==CT_IMAGEBOX){ 1108 if((pWindowInfo->pChildInfo[i3].style&0x000F)==SS_ICON|| 1109 (pWindowInfo->pChildInfo[i3].style&0x000F)==SS_BITMAP){ 1110 sprintf(buffer+i2,"Dim hImage_%s_%s As HANDLE\r\n",pWindowInfo->name,pWindowInfo->pChildInfo[i3].IdName); 1108 BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos ) 1109 { 1110 if(pChildInfo->Control==CT_IMAGEBOX){ 1111 if((pChildInfo->style&0x000F)==SS_ICON|| 1112 (pChildInfo->style&0x000F)==SS_BITMAP){ 1113 sprintf(buffer+i2,"Dim hImage_%s_%s As HANDLE\r\n",pWindowInfo->name,pChildInfo->IdName); 1111 1114 i2+=lstrlen(buffer+i2); 1112 1115 … … 1627 1630 extern HANDLE hHeap; 1628 1631 extern MDIINFO MdiInfo[MAX_WNDNUM]; 1629 int i,i2, i3,size;1632 int i,i2,size; 1630 1633 char *buffer,*temporary; 1631 1634 … … 1685 1688 sprintf(buffer+i2," FILEPATH = %s\r\n",pWindowInfo->filepath); 1686 1689 i2+=lstrlen(buffer+i2); 1687 for(i3=0;i3<pWindowInfo->NumberOfChildWindows;i3++){ 1688 temporary=SetCaptionSequence(pWindowInfo->pChildInfo[i3].caption); 1690 BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos ) 1691 { 1692 temporary=SetCaptionSequence(pChildInfo->caption); 1689 1693 sprintf(buffer+i2," ITEM = %s,%d,%d,%d,%d,\"%s\",&H%08x,&H%08x,%d", 1690 p WindowInfo->pChildInfo[i3].IdName,1691 p WindowInfo->pChildInfo[i3].pos.x,pWindowInfo->pChildInfo[i3].pos.y,1692 p WindowInfo->pChildInfo[i3].size.cx,pWindowInfo->pChildInfo[i3].size.cy,1694 pChildInfo->IdName, 1695 pChildInfo->pos.x,pChildInfo->pos.y, 1696 pChildInfo->size.cx,pChildInfo->size.cy, 1693 1697 temporary, 1694 p WindowInfo->pChildInfo[i3].style,1695 p WindowInfo->pChildInfo[i3].ExStyle,1696 p WindowInfo->pChildInfo[i3].Control1698 pChildInfo->style, 1699 pChildInfo->ExStyle, 1700 pChildInfo->Control 1697 1701 ); 1698 1702 i2+=lstrlen(buffer+i2); 1699 1703 HeapDefaultFree(temporary); 1700 if(p WindowInfo->pChildInfo[i3].Control==CT_IMAGEBOX){1701 sprintf(buffer+i2,",%d,\"%s\"",p WindowInfo->pChildInfo[i3].ImageCtrlInfo.type,pWindowInfo->pChildInfo[i3].ImageCtrlInfo.path);1704 if(pChildInfo->Control==CT_IMAGEBOX){ 1705 sprintf(buffer+i2,",%d,\"%s\"",pChildInfo->ImageCtrlInfo.type,pChildInfo->ImageCtrlInfo.path); 1702 1706 i2+=lstrlen(buffer+i2); 1703 1707 } … … 1829 1833 int i,i2,i3,i4,i5; 1830 1834 char *buffer,temporary[MAX_PATH],*temp2,temp3[MAX_PATH]; 1831 CHILDINFO *pChildInfo;1832 1835 1833 1836 buffer=ReadBuffer(path); … … 1881 1884 ProjectInfo.windowInfos.back()->name=(char *)HeapAlloc(hHeap,0,i2+1); 1882 1885 lstrcpy(ProjectInfo.windowInfos.back()->name,temp2); 1883 1884 ProjectInfo.windowInfos.back()->NumberOfChildWindows=0;1885 ProjectInfo.windowInfos.back()->pChildInfo=(CHILDINFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1);1886 1886 } 1887 1887 else if(lstrcmpi(temporary,"HANDLE")==0&&i3==1){ … … 1992 1992 } 1993 1993 else if(lstrcmpi(temporary,"ITEM")==0&&i3==1){ 1994 ProjectInfo.windowInfos.back()->pChildInfo=(CHILDINFO *)HeapReAlloc(hHeap,HEAP_ZERO_MEMORY,ProjectInfo.windowInfos.back()->pChildInfo,(ProjectInfo.windowInfos.back()->NumberOfChildWindows+1)*sizeof(CHILDINFO)); 1995 pChildInfo=&ProjectInfo.windowInfos.back()->pChildInfo[ProjectInfo.windowInfos.back()->NumberOfChildWindows]; 1994 CHILDINFO *pChildInfo = new CHILDINFO(); 1996 1995 1997 1996 //ID … … 2039 2038 } 2040 2039 2041 ProjectInfo.windowInfos.back()-> NumberOfChildWindows++;2040 ProjectInfo.windowInfos.back()->childWindowInfos.push_back( pChildInfo ); 2042 2041 } 2043 2042 … … 2266 2265 ProjectInfo.windowInfos.back()->type=NewWindow.type; 2267 2266 2268 //子ウィンドウ情報2269 ProjectInfo.windowInfos.back()->NumberOfChildWindows=0;2270 ProjectInfo.windowInfos.back()->pChildInfo=(CHILDINFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1);2271 2272 2267 2273 2268 //メッセージ処理ファイル名 … … 2346 2341 2347 2342 //子ウィンドウのメモリを解放 2348 for(i=0;i<pWindowInfo->NumberOfChildWindows;i++){ 2349 HeapDefaultFree(pWindowInfo->pChildInfo[i].IdName); 2350 HeapDefaultFree(pWindowInfo->pChildInfo[i].caption); 2351 } 2352 HeapDefaultFree(pWindowInfo->pChildInfo); 2343 for(i=0;i<pWindowInfo->childWindowInfos.size();i++){ 2344 HeapDefaultFree(pWindowInfo->childWindowInfos[i]->IdName); 2345 HeapDefaultFree(pWindowInfo->childWindowInfos[i]->caption); 2346 delete pWindowInfo->childWindowInfos[i]; 2347 } 2348 pWindowInfo->childWindowInfos.clear(); 2353 2349 2354 2350 //ツリービューから削除 -
trunk/ab5.0/abdev/abdev/abdev.cpp
r615 r616 274 274 else{ 275 275 sprintf(temporary,"pos %d, %d", 276 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].pos.x,277 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].pos.y);276 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->pos.x, 277 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->pos.y); 278 278 SendMessage(hStatusBar,SB_SETTEXT,1,(LPARAM)temporary); 279 279 sprintf(temporary,"size %d * %d", 280 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].size.cx,281 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].size.cy);280 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->size.cx, 281 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->size.cy); 282 282 SendMessage(hStatusBar,SB_SETTEXT,2,(LPARAM)temporary); 283 283 } -
trunk/ab5.0/abdev/abdev/include/ProjectManager/WindowManager.h
r615 r616 33 33 }; 34 34 35 struct CHILDINFO{ 35 class CHILDINFO 36 { 37 public: 36 38 char *IdName; 37 39 POINT pos; … … 77 79 78 80 //子ウィンドウ管理 79 int NumberOfChildWindows; 80 CHILDINFO *pChildInfo; 81 std::vector<CHILDINFO *> childWindowInfos; 81 82 82 83 //ツリー項目 … … 93 94 ~WindowInfos() 94 95 { 95 Clear();96 96 } 97 97 -
trunk/ab5.0/abdev/abdev/src/MainFrame.cpp
r615 r616 632 632 633 633 //クリップボードに格納するためのデータを用意する 634 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].pos.x-=17;635 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].pos.y-=10;634 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->pos.x-=17; 635 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->pos.y-=10; 636 636 HGLOBAL hGlobal=Rad_GetChildInfoClipboardData(WndNum,indexOfWndInfo); 637 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].pos.x+=17;638 pWindowInfo-> pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]].pos.y+=10;637 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->pos.x+=17; 638 pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->pos.y+=10; 639 639 640 640 OpenClipboard(); … … 808 808 else if(MdiInfo[WndNum].DocType==WNDTYPE_RAD){ 809 809 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path); 810 for(int i3=0;i3<pWindowInfo-> NumberOfChildWindows;i3++){810 for(int i3=0;i3<pWindowInfo->childWindowInfos.size();i3++){ 811 811 MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3]=i3; 812 812 }
Note:
See TracChangeset
for help on using the changeset viewer.