Changeset 629 in dev
- Timestamp:
- Jun 2, 2008, 11:50:24 PM (16 years ago)
- Location:
- trunk/ab5.0/abdev
- Files:
-
- 61 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/Backup.cpp
r626 r629 49 49 50 50 for(i=0;i<MdiInfo.size();i++){ 51 if(MdiInfo[i] .hwnd){51 if(MdiInfo[i]->hwnd){ 52 52 int WndNum; 53 53 WndNum=i; 54 54 55 if(!IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)) continue;55 if(!IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)) continue; 56 56 57 57 //ファイルを保存 58 58 sprintf(temporary,"%sdocument%02d.txt",szBackupDirPath,iNum); 59 WriteBuffer(temporary,MdiInfo[WndNum] .pMdiTextEdit->buffer,lstrlen(MdiInfo[WndNum].pMdiTextEdit->buffer), false);59 WriteBuffer(temporary,MdiInfo[WndNum]->pMdiTextEdit->buffer,lstrlen(MdiInfo[WndNum]->pMdiTextEdit->buffer), false); 60 60 61 61 //情報を追加 62 sprintf(temp2+lstrlen(temp2),"%s\r\n",MdiInfo[WndNum] .path.c_str());62 sprintf(temp2+lstrlen(temp2),"%s\r\n",MdiInfo[WndNum]->path.c_str()); 63 63 64 64 iNum++; … … 107 107 108 108 char szOldTitle[MAX_PATH]; 109 lstrcpy(szOldTitle,MdiInfo[WndNum] .title.c_str());109 lstrcpy(szOldTitle,MdiInfo[WndNum]->title.c_str()); 110 110 111 111 //ドキュメント セレクト コンボボックスから消去 112 112 extern HWND hDocCombo; 113 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum] .title.c_str());113 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum]->title.c_str()); 114 114 SendMessage(hDocCombo,CB_DELETESTRING,i2,0); 115 115 116 116 //パスを変更 117 MdiInfo[WndNum] .path = szBeforeFilePath;117 MdiInfo[WndNum]->path = szBeforeFilePath; 118 118 119 119 //ドキュメント セレクト コンボボックスに挿入 … … 129 129 } 130 130 DuplicateTitleCheck(str); 131 MdiInfo[WndNum] .title = str;132 SendMessage(hDocCombo,CB_ADDSTRING,0,(long)MdiInfo[WndNum] .title.c_str());133 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum] .title.c_str());131 MdiInfo[WndNum]->title = str; 132 SendMessage(hDocCombo,CB_ADDSTRING,0,(long)MdiInfo[WndNum]->title.c_str()); 133 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum]->title.c_str()); 134 134 SendMessage(hDocCombo,CB_SETCURSEL,i2,0); 135 135 136 136 //MDIウィンドウのタイトルを再設定 137 SetWindowText(hChild,MdiInfo[WndNum] .title.c_str());137 SetWindowText(hChild,MdiInfo[WndNum]->title.c_str()); 138 138 139 139 //タブコントロールを再設定 140 140 COLORREF TabColor; 141 TabColor=pobj_nv->pobj_ExtLink->GetTabColorFromFilePath(MdiInfo[WndNum] .path);141 TabColor=pobj_nv->pobj_ExtLink->GetTabColorFromFilePath(MdiInfo[WndNum]->path); 142 142 pobj_MainTab->DeleteItem( szOldTitle, false ); 143 pobj_MainTab->InsertItem( MdiInfo[WndNum] .title.c_str(), false, TabColor );144 145 MdiInfo[WndNum] .pMdiTextEdit->Modify();143 pobj_MainTab->InsertItem( MdiInfo[WndNum]->title.c_str(), false, TabColor ); 144 145 MdiInfo[WndNum]->pMdiTextEdit->Modify(); 146 146 147 147 -
trunk/ab5.0/abdev/abdev/Caret.cpp
r625 r629 124 124 125 125 pCharRange->cpMin=GetBufferIndexFromCaretPos( 126 MdiInfo[WndNum] .pMdiTextEdit->buffer,127 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x,128 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y);129 130 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.x&&131 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y){126 MdiInfo[WndNum]->pMdiTextEdit->buffer, 127 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x, 128 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 129 130 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x&& 131 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y){ 132 132 //選択されていないとき 133 133 pCharRange->cpMax=pCharRange->cpMin; … … 135 135 else{ 136 136 pCharRange->cpMax=GetBufferIndexFromCaretPos( 137 MdiInfo[WndNum] .pMdiTextEdit->buffer,138 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos.x,139 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos.y);137 MdiInfo[WndNum]->pMdiTextEdit->buffer, 138 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x, 139 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y); 140 140 } 141 141 … … 150 150 151 151 memcpy(buffer, 152 MdiInfo[WndNum] .pMdiTextEdit->buffer+pCharRange->cpMin,152 MdiInfo[WndNum]->pMdiTextEdit->buffer+pCharRange->cpMin, 153 153 pCharRange->cpMax-pCharRange->cpMin); 154 154 buffer[pCharRange->cpMax-pCharRange->cpMin]=0; … … 158 158 159 159 HWND hEdit; 160 hEdit=MdiInfo[WndNum] .pMdiTextEdit->hEdit;160 hEdit=MdiInfo[WndNum]->pMdiTextEdit->hEdit; 161 161 162 162 //垂直スクロールバーの位置 … … 175 175 176 176 HWND hEdit; 177 hEdit=GetWindow(MdiInfo[WndNum] .hwnd,GW_CHILD);177 hEdit=GetWindow(MdiInfo[WndNum]->hwnd,GW_CHILD); 178 178 179 179 //垂直スクロールバーの位置 … … 192 192 193 193 GetCaretPosFromBufferIndex( 194 MdiInfo[WndNum] .pMdiTextEdit->buffer,194 MdiInfo[WndNum]->pMdiTextEdit->buffer, 195 195 StartIndex, 196 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);196 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 197 197 198 198 GetCaretPosFromBufferIndex( 199 MdiInfo[WndNum] .pMdiTextEdit->buffer,199 MdiInfo[WndNum]->pMdiTextEdit->buffer, 200 200 EndIndex, 201 &MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos);201 &MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos); 202 202 203 203 HWND hEdit; 204 hEdit=GetWindow(MdiInfo[WndNum] .hwnd,GW_CHILD);204 hEdit=GetWindow(MdiInfo[WndNum]->hwnd,GW_CHILD); 205 205 206 206 if(!TextEdit_ScrollCaret(WndNum,0,bShowCenter)) … … 218 218 int iStartPos; 219 219 iStartPos=code_pos; 220 while(MdiInfo[WndNum] .pMdiTextEdit->buffer[iStartPos]!='\n'&&iStartPos>0) iStartPos--;221 if(MdiInfo[WndNum] .pMdiTextEdit->buffer[iStartPos]=='\n') iStartPos++;220 while(MdiInfo[WndNum]->pMdiTextEdit->buffer[iStartPos]!='\n'&&iStartPos>0) iStartPos--; 221 if(MdiInfo[WndNum]->pMdiTextEdit->buffer[iStartPos]=='\n') iStartPos++; 222 222 223 223 int iEndPos; 224 224 iEndPos=code_pos; 225 while(MdiInfo[WndNum] .pMdiTextEdit->buffer[iEndPos]!='\r'&&MdiInfo[WndNum].pMdiTextEdit->buffer[iEndPos]!='\0') iEndPos++;225 while(MdiInfo[WndNum]->pMdiTextEdit->buffer[iEndPos]!='\r'&&MdiInfo[WndNum]->pMdiTextEdit->buffer[iEndPos]!='\0') iEndPos++; 226 226 227 227 TextEdit_SetSel(WndNum,iStartPos,iEndPos,bShowCenter); … … 234 234 GetCaretPos(&OldPos); 235 235 236 x=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x;237 y=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y;236 x=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x; 237 y=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y; 238 238 GetScrollBaseCaretPos(WndNum,&x,&y); 239 239 240 240 //エディタ画面左端のコントロールタブ 241 241 int iControlTabSpace; 242 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;242 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 243 243 244 244 //コントロールタブ上にカーソルがきたときに、非表示にする 245 if(OldPos.x>=iControlTabSpace&&x<0) HideCaret(MdiInfo[WndNum] .pMdiTextEdit->hEdit);246 else if(OldPos.x<iControlTabSpace&&x>=0) ShowCaret(MdiInfo[WndNum] .pMdiTextEdit->hEdit);245 if(OldPos.x>=iControlTabSpace&&x<0) HideCaret(MdiInfo[WndNum]->pMdiTextEdit->hEdit); 246 else if(OldPos.x<iControlTabSpace&&x>=0) ShowCaret(MdiInfo[WndNum]->pMdiTextEdit->hEdit); 247 247 248 248 SetCaretPos( … … 256 256 // Web検索文字列 257 257 ////////////////////////////////////////////// 258 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){258 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 259 259 int start,end; 260 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.x&&261 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y){260 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x&& 261 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y){ 262 262 //文字列を選択中でないとき 263 263 264 264 int sw=0; 265 265 if(bInputAndReset){ 266 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x>1){267 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x-=2;266 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x>1){ 267 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x-=2; 268 268 sw=1; 269 269 } … … 271 271 272 272 TextEdit_GetWordCaret( 273 MdiInfo[WndNum] .pMdiTextEdit->hEdit,273 MdiInfo[WndNum]->pMdiTextEdit->hEdit, 274 274 WndNum, 275 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos,275 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos, 276 276 &start,&end, 277 277 WORDCARET_BEFORE); 278 278 279 if(sw) MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x+=2;279 if(sw) MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x+=2; 280 280 281 281 //半角文字列を選択時の全角とのズレを修正 282 282 POINT pos; 283 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,start,&pos);284 start=GetBufferIndexFromCaretPos(MdiInfo[WndNum] .pMdiTextEdit->buffer,pos.x,pos.y);285 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,end,&pos);286 end=GetBufferIndexFromCaretPos(MdiInfo[WndNum] .pMdiTextEdit->buffer,pos.x,pos.y);283 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer,start,&pos); 284 start=GetBufferIndexFromCaretPos(MdiInfo[WndNum]->pMdiTextEdit->buffer,pos.x,pos.y); 285 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer,end,&pos); 286 end=GetBufferIndexFromCaretPos(MdiInfo[WndNum]->pMdiTextEdit->buffer,pos.x,pos.y); 287 287 } 288 288 else{ 289 289 //文字列を選択中のとき 290 290 start=GetBufferIndexFromCaretPos( 291 MdiInfo[WndNum] .pMdiTextEdit->buffer,292 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x,293 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y);291 MdiInfo[WndNum]->pMdiTextEdit->buffer, 292 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x, 293 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 294 294 end=GetBufferIndexFromCaretPos( 295 MdiInfo[WndNum] .pMdiTextEdit->buffer,296 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos.x,297 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos.y);295 MdiInfo[WndNum]->pMdiTextEdit->buffer, 296 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x, 297 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y); 298 298 } 299 299 … … 310 310 if(length<0) length=0; 311 311 pTemp=(char *)HeapAlloc(hHeap,0,length+1024); 312 memcpy(pTemp,MdiInfo[WndNum] .pMdiTextEdit->buffer+start,length);312 memcpy(pTemp,MdiInfo[WndNum]->pMdiTextEdit->buffer+start,length); 313 313 pTemp[length]=0; 314 314 … … 340 340 extern METHODCHECKINFO MethodCheckInfo; 341 341 if(MethodCheckInfo.hWnd){ 342 if(MdiInfo[WndNum] .DocType==WNDTYPE_BASIC)342 if(MdiInfo[WndNum]->DocType==WNDTYPE_BASIC) 343 343 ShowParameterHint(WndNum); 344 344 } … … 354 354 char *pTemp,temporary[VN_SIZE]; 355 355 356 i=GetBufferIndexFromCaretPos(MdiInfo[WndNum] .pMdiTextEdit->buffer,357 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x,358 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y);356 i=GetBufferIndexFromCaretPos(MdiInfo[WndNum]->pMdiTextEdit->buffer, 357 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x, 358 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 359 359 360 360 if(i<ComplementWndInfo.iPos||ComplementWndInfo.iPos+ComplementWndInfo.iLength<i){ … … 379 379 pTemp=(char *)HeapAlloc(hHeap,0,ComplementWndInfo.iLength+1); 380 380 memcpy(pTemp, 381 MdiInfo[WndNum] .pMdiTextEdit->buffer+ComplementWndInfo.iPos,381 MdiInfo[WndNum]->pMdiTextEdit->buffer+ComplementWndInfo.iPos, 382 382 ComplementWndInfo.iLength); 383 383 pTemp[ComplementWndInfo.iLength]=0; … … 432 432 pTemp=(char *)HeapAlloc(hHeap,0,ComplementWndInfo.iLength+1); 433 433 memcpy(pTemp, 434 MdiInfo[WndNum] .pMdiTextEdit->buffer+ComplementWndInfo.iPos,434 MdiInfo[WndNum]->pMdiTextEdit->buffer+ComplementWndInfo.iPos, 435 435 ComplementWndInfo.iLength); 436 436 pTemp[ComplementWndInfo.iLength]=0; … … 462 462 463 463 HWND hEdit; 464 hEdit=MdiInfo[WndNum] .pMdiTextEdit->hEdit;465 466 x=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x;467 y=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y;464 hEdit=MdiInfo[WndNum]->pMdiTextEdit->hEdit; 465 466 x=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x; 467 y=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y; 468 468 GetScrollBaseCaretPos(WndNum,&x,&y); 469 469 … … 537 537 if(loose_y<0) loose_y=0; 538 538 539 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;539 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 540 540 541 541 // 行の確認 … … 659 659 660 660 POINT *pCaretPos; 661 pCaretPos=&MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos;661 pCaretPos=&MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 662 662 663 663 if(pCaretPos->x==0&&pCaretPos->y==0){ … … 666 666 } 667 667 668 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;668 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 669 669 670 670 i=GetBufferIndexFromCaretPos(pBuf, … … 711 711 char *pBuf; 712 712 713 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;713 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 714 714 715 715 i=GetBufferIndexFromCaretPos(pBuf, … … 768 768 769 769 //上下のキャレット移動時には、左右方向の位置を保持する 770 if(MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos==-1)771 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos=pCaretPos->x;770 if(MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos==-1) 771 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos=pCaretPos->x; 772 772 773 773 pCaretPos->y--; 774 774 775 775 CaretPos_LooseToNatural(WndNum, 776 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos,776 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos, 777 777 pCaretPos->y, 778 778 pCaretPos); … … 784 784 785 785 //上下のキャレット移動時には、左右方向の位置を保持する 786 if(MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos==-1)787 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos=pCaretPos->x;786 if(MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos==-1) 787 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos=pCaretPos->x; 788 788 789 789 pCaretPos->y++; 790 790 791 791 CaretPos_LooseToNatural(WndNum, 792 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos,792 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos, 793 793 pCaretPos->y, 794 794 pCaretPos); … … 805 805 806 806 //上下のキャレット移動時には、左右方向の位置を保持する 807 if(MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos==-1)808 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos=pCaretPos->x;807 if(MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos==-1) 808 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos=pCaretPos->x; 809 809 810 810 SCROLLINFO si; 811 811 si.cbSize=sizeof(SCROLLINFO); 812 812 si.fMask=SIF_PAGE; 813 GetScrollInfo(MdiInfo[WndNum] .pMdiTextEdit->hEdit,SB_VERT,&si);813 GetScrollInfo(MdiInfo[WndNum]->pMdiTextEdit->hEdit,SB_VERT,&si); 814 814 pCaretPos->y-=si.nPage; 815 815 if(pCaretPos->y<0) pCaretPos->y=0; 816 816 817 817 CaretPos_LooseToNatural(WndNum, 818 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos,818 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos, 819 819 pCaretPos->y, 820 820 pCaretPos); … … 826 826 827 827 //上下のキャレット移動時には、左右方向の位置を保持する 828 if(MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos==-1)829 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos=pCaretPos->x;828 if(MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos==-1) 829 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos=pCaretPos->x; 830 830 831 831 SCROLLINFO si; 832 832 si.cbSize=sizeof(SCROLLINFO); 833 833 si.fMask=SIF_PAGE; 834 GetScrollInfo(MdiInfo[WndNum] .pMdiTextEdit->hEdit,SB_VERT,&si);834 GetScrollInfo(MdiInfo[WndNum]->pMdiTextEdit->hEdit,SB_VERT,&si); 835 835 pCaretPos->y+=si.nPage; 836 836 837 837 CaretPos_LooseToNatural(WndNum, 838 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos,838 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos, 839 839 pCaretPos->y, 840 840 pCaretPos); -
trunk/ab5.0/abdev/abdev/ChildWndOnRebar.cpp
r626 r629 48 48 SendMessage(hwnd,CB_GETLBTEXT,SendMessage(hwnd,CB_GETCURSEL,0,0),(long)str); 49 49 for(i=0;i<MdiInfo.size();i++){ 50 if(lstrcmpi(str,MdiInfo[i] .title.c_str())==0) break;50 if(lstrcmpi(str,MdiInfo[i]->title.c_str())==0) break; 51 51 } 52 BringWindowToTop(MdiInfo[i] .hwnd);52 BringWindowToTop(MdiInfo[i]->hwnd); 53 53 } 54 54 break; … … 199 199 if(IsWindow(hTempWnd)){ 200 200 for(i=0,i2=0;i<MdiInfo.size();i++){ 201 if(MdiInfo[i] .hwnd){202 GetWindowText(MdiInfo[i] .hwnd,buffer,MAX_PATH);203 if(MdiInfo[i] .hwnd==hTempWnd) i2=SendMessage(hDocCombo,CB_ADDSTRING,0,(long)buffer);201 if(MdiInfo[i]->hwnd){ 202 GetWindowText(MdiInfo[i]->hwnd,buffer,MAX_PATH); 203 if(MdiInfo[i]->hwnd==hTempWnd) i2=SendMessage(hDocCombo,CB_ADDSTRING,0,(long)buffer); 204 204 else SendMessage(hDocCombo,CB_ADDSTRING,0,(long)buffer); 205 205 } -
trunk/ab5.0/abdev/abdev/ClassTree.cpp
r625 r629 450 450 if( WndNum != -1 ) 451 451 { 452 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){453 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),lpszFilePath)==0) break;452 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 453 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),lpszFilePath)==0) break; 454 454 } 455 455 hChild=GetNextWindow(hChild,GW_HWNDNEXT); … … 460 460 if(hChild){ 461 461 //すでに指定されたファイルが開かれている場合 462 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;462 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 463 463 } 464 464 else{ … … 579 579 HWND hChild=GetWindow(hClient,GW_CHILD); 580 580 int WndNum=GetWndNum(hChild); 581 char *pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;581 char *pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 582 582 SetClassTreeFromOneFile_Buf( pBuf, -1 ); 583 583 -
trunk/ab5.0/abdev/abdev/CodeFormatter.cpp
r475 r629 12 12 WndNum=GetNowWndNum(); 13 13 14 if(MdiInfo[WndNum] .DocType!=WNDTYPE_BASIC){14 if(MdiInfo[WndNum]->DocType!=WNDTYPE_BASIC){ 15 15 goto NonFormater; 16 16 } … … 38 38 39 39 char *pBuf; 40 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;40 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 41 41 42 42 //カーソルバッファ位置を取得 43 43 int i,i2; 44 44 i=GetBufferIndexFromCaretPos(pBuf, 45 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x,46 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y);47 int StartX=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x;45 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x, 46 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 47 int StartX=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x; 48 48 49 49 //現在の行のインデントをコピー(iFirstIndent_Speciallyにタブ数を格納) … … 83 83 } 84 84 85 if(MdiInfo[WndNum] .DocType==WNDTYPE_BASIC){85 if(MdiInfo[WndNum]->DocType==WNDTYPE_BASIC){ 86 86 //インデント追加のコマンドかどうかを判断 87 87 if(IsIndentAdditionCommand_FromBuffer(pBuf+i+iIndent)) iIndent++; -
trunk/ab5.0/abdev/abdev/Common.h
r626 r629 366 366 char *IndentStr; 367 367 }; 368 extern std::vector<MDIINFO > MdiInfo;368 extern std::vector<MDIINFO *> MdiInfo; 369 369 370 370 //RADツールのマウスドラッグ … … 618 618 void CloseDocWindow(int WndNum); 619 619 void ResizeTextEditWnd(HWND hwnd,int cx,int cy); 620 void ResizeOwnerWnd(void);621 620 #define FLAG_DBLCLK 1 622 621 #define FLAG_BEAMCURSOR 2 … … 730 729 BOOL SetupProjectEditor(void); 731 730 void EndProjectEditor(void); 732 void SetupWindow(HWND hwnd);733 731 BOOL SetRunning(HWND hChild); 734 732 BOOL IsNeedCompile( const std::string &filepath, BOOL bDebug ); -
trunk/ab5.0/abdev/abdev/Complement.cpp
r625 r629 386 386 //エディタ画面左端のコントロールタブ 387 387 int iControlTabSpace; 388 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;388 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 389 389 390 390 extern int font_width,font_height; 391 391 POINT pos; 392 pos=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos;392 pos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 393 393 GetScrollBaseCaretPos(WndNum,(int *)&pos.x,(int *)&pos.y); 394 394 … … 396 396 pos.y=(pos.y+1)*font_height; 397 397 398 ClientToScreen(MdiInfo[WndNum] .pMdiTextEdit->hEdit,&pos);398 ClientToScreen(MdiInfo[WndNum]->pMdiTextEdit->hEdit,&pos); 399 399 400 400 extern HINSTANCE hInst; … … 621 621 //フォーカスをエディタに戻す 622 622 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 623 SetFocus(MdiInfo[WndNum] .pMdiTextEdit->hEdit);623 SetFocus(MdiInfo[WndNum]->pMdiTextEdit->hEdit); 624 624 return 0; 625 625 case WM_KEYDOWN: … … 633 633 //フォーカスをエディタに戻す 634 634 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 635 SetFocus(MdiInfo[WndNum] .pMdiTextEdit->hEdit);635 SetFocus(MdiInfo[WndNum]->pMdiTextEdit->hEdit); 636 636 637 637 LVHITTESTINFO lvHitTest; … … 659 659 660 660 for(i=ComplementWndInfo.iPos-1;;i--){ 661 if(MdiInfo[WndNum] .pMdiTextEdit->buffer[i]!='\t'){661 if(MdiInfo[WndNum]->pMdiTextEdit->buffer[i]!='\t'){ 662 662 i++; 663 663 break; … … 665 665 } 666 666 667 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,667 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer, 668 668 i, 669 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);669 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 670 670 671 671 //インデント … … 684 684 //クラスメンバ補完 685 685 686 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,686 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer, 687 687 ComplementWndInfo.iPos, 688 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);688 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 689 689 690 690 //リプレース前に補完機能を破棄する -
trunk/ab5.0/abdev/abdev/Debugger.cpp
r625 r629 44 44 else{ 45 45 if(IsWindow(hChild)){ 46 if(MdiInfo[GetWndNum(hChild)] .DocType==WNDTYPE_BASIC){46 if(MdiInfo[GetWndNum(hChild)]->DocType==WNDTYPE_BASIC){ 47 47 //有効(Basicプログラムファイルを開いているとき) 48 48 bEnableDocument=1; … … 52 52 53 53 if(IsWindow(hChild)){ 54 if(MdiInfo[GetWndNum(hChild)] .DocType==WNDTYPE_BASIC){54 if(MdiInfo[GetWndNum(hChild)]->DocType==WNDTYPE_BASIC){ 55 55 //ブレークポイント有効(Basicプログラムファイルを開いているとき) 56 56 bBreakPoint=1; … … 251 251 252 252 char temporary[MAX_PATH]; 253 sprintf(temporary,"\"%s\",%d",MdiInfo[WndNum] .path.c_str(),MdiInfo[WndNum].pMdiTextEdit->StartCaretPos.y);253 sprintf(temporary,"\"%s\",%d",MdiInfo[WndNum]->path.c_str(),MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 254 254 255 255 char temp2[MAX_PATH]; … … 429 429 if(WndNum==-1) return; 430 430 431 if( !Jenga::Common::Path( MdiInfo[WndNum] .path ).IsExistFile() )431 if( !Jenga::Common::Path( MdiInfo[WndNum]->path ).IsExistFile() ) 432 432 { 433 433 return; … … 436 436 int i,i2,sw=0; 437 437 for(i=0;i<num;i++){ 438 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),ppItem[i]->lpszFileName)==0){438 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),ppItem[i]->lpszFileName)==0){ 439 439 for(i2=0;i2<ppItem[i]->num;i2++){ 440 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==ppItem[i]->piLine[i2]){440 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==ppItem[i]->piLine[i2]){ 441 441 sw=1; 442 442 break; … … 449 449 if(sw==0){ 450 450 //ブレークポイントを追加 451 insert(MdiInfo[WndNum] .path.c_str(),MdiInfo[WndNum].pMdiTextEdit->StartCaretPos.y);451 insert(MdiInfo[WndNum]->path.c_str(),MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 452 452 } 453 453 else{ 454 454 //ブレークポイントを削除 455 remove(MdiInfo[WndNum] .path.c_str(),MdiInfo[WndNum].pMdiTextEdit->StartCaretPos.y);455 remove(MdiInfo[WndNum]->path.c_str(),MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 456 456 } 457 457 … … 464 464 465 465 //エディタを再描画 466 InvalidateRect(MdiInfo[WndNum] .pMdiTextEdit->hEdit,NULL,0);466 InvalidateRect(MdiInfo[WndNum]->pMdiTextEdit->hEdit,NULL,0); 467 467 } 468 468 void CDBBreakPoint::SaveToTempFile(void){ -
trunk/ab5.0/abdev/abdev/DialogBoxes.cpp
r619 r629 1130 1130 //delete pobj_SideWeb; 1131 1131 //pobj_SideWeb=new CSideWeb(hOwner); 1132 // ResizeOwnerWnd();1132 //ActiveBasic::IDE::Program::mainFrame.Resized(); 1133 1133 } 1134 1134 return; -
trunk/ab5.0/abdev/abdev/DocumentAdvice.cpp
r625 r629 180 180 #define MEM_SPACE 1024 //強制終了を防ぐためのゆとりスペース 181 181 for(i3=0;i3<MdiInfo.size();i3++){ 182 if(MdiInfo[i3] .hwnd){183 if(lstrcmpi(temporary,MdiInfo[i3] .path.c_str())==0) break;182 if(MdiInfo[i3]->hwnd){ 183 if(lstrcmpi(temporary,MdiInfo[i3]->path.c_str())==0) break; 184 184 } 185 185 } … … 202 202 else{ 203 203 //エディタから読み取る 204 FileSize=lstrlen(MdiInfo[i3] .pMdiTextEdit->buffer);204 FileSize=lstrlen(MdiInfo[i3]->pMdiTextEdit->buffer); 205 205 206 206 temp3=(char *)HeapAlloc(hHeap,0,FileSize+MEM_SPACE); 207 memcpy(temp3,MdiInfo[i3] .pMdiTextEdit->buffer,FileSize);207 memcpy(temp3,MdiInfo[i3]->pMdiTextEdit->buffer,FileSize); 208 208 temp3[FileSize]=0; 209 209 } -
trunk/ab5.0/abdev/abdev/DrawBuffer.cpp
r625 r629 193 193 if( projectInfo.IsOpened() ){ 194 194 pobj_FileBreakPoint= 195 projectInfo.pobj_DBBreakPoint->EnumLines(MdiInfo[m_WndNum] .path.c_str());195 projectInfo.pobj_DBBreakPoint->EnumLines(MdiInfo[m_WndNum]->path.c_str()); 196 196 } 197 197 else{ 198 198 extern CDBBreakPoint *pobj_DBBreakPoint; 199 pobj_FileBreakPoint=pobj_DBBreakPoint->EnumLines(MdiInfo[m_WndNum] .path.c_str());199 pobj_FileBreakPoint=pobj_DBBreakPoint->EnumLines(MdiInfo[m_WndNum]->path.c_str()); 200 200 } 201 201 … … 278 278 279 279 RECT ClientRect; 280 hEdit=GetWindow(MdiInfo[WndNum] .hwnd,GW_CHILD);280 hEdit=GetWindow(MdiInfo[WndNum]->hwnd,GW_CHILD); 281 281 GetClientRect(hEdit,&ClientRect); 282 282 … … 284 284 int iControlTabSpace; 285 285 int iLineNumberTextCount; 286 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;287 iLineNumberTextCount=MdiInfo[WndNum] .pMdiTextEdit->iLineNumberTextCount;286 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 287 iLineNumberTextCount=MdiInfo[WndNum]->pMdiTextEdit->iLineNumberTextCount; 288 288 289 289 //一ページ中に表示できる行数を取得 … … 302 302 303 303 //テキストバッファをコード内で参照しやすいようにポインタ変数を利用する 304 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;304 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 305 305 306 306 //選択範囲を取得 … … 336 336 if(pBuf[i]=='\0'){ 337 337 if(0<=y&&y<=OnePage_CharHeight){ 338 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==y-BaseY){338 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==y-BaseY){ 339 339 //////////////////////////////////// 340 340 // カーソル行では余白を塗りつぶす … … 376 376 ///////////////// 377 377 378 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==y-BaseY){378 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==y-BaseY){ 379 379 /////////////////////////////////////////////////////////// 380 380 //改行コードよりも右側は白いブラシで塗りつぶす(カーソル行用) … … 405 405 } 406 406 407 if(MdiInfo[WndNum] .DocType==WNDTYPE_BASIC){407 if(MdiInfo[WndNum]->DocType==WNDTYPE_BASIC){ 408 408 409 409 if(pBuf[i]=='\"'&&dwComment==0) IsStr^=1; … … 434 434 if(dwComment!=0&&dwComment!=10) dwComment--; 435 435 } 436 if(MdiInfo[WndNum] .DocType==WNDTYPE_HTML){436 if(MdiInfo[WndNum]->DocType==WNDTYPE_HTML){ 437 437 //複数行に渡るコメントを考慮 438 438 if(pBuf[i]=='<'&&pBuf[i+1]=='!'&&pBuf[i+2]=='-'&&pBuf[i+3]=='-'&&IsStr==0&&dwComment==0){ … … 447 447 448 448 //ハイパーリンク用下線 449 if(MdiInfo[WndNum] .pMdiTextEdit->iUnderStart<=i&&i<MdiInfo[WndNum].pMdiTextEdit->iUnderEnd)449 if(MdiInfo[WndNum]->pMdiTextEdit->iUnderStart<=i&&i<MdiInfo[WndNum]->pMdiTextEdit->iUnderEnd) 450 450 bHyperLinkUnderBar=1; 451 451 else bHyperLinkUnderBar=0; … … 464 464 else{ 465 465 //通常カラー 466 NextColor=MdiInfo[WndNum] .pMdiTextEdit->pColorRef[i];466 NextColor=MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i]; 467 467 } 468 468 … … 473 473 } 474 474 else{ 475 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==y-BaseY){475 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==y-BaseY){ 476 476 //カーソル行 477 477 NextBackColor=CaretBackColor; … … 524 524 525 525 526 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==y-BaseY){526 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==y-BaseY){ 527 527 /////////////////////////////////////////////////////////// 528 528 //改行コードよりも右側は白いブラシで塗りつぶす(カーソル行用) -
trunk/ab5.0/abdev/abdev/DrawWindow.cpp
r625 r629 4 4 5 5 void DrawLineInClient(int WndNum,long StartX,long StartY,long EndX,long EndY){ 6 MoveToEx(MdiInfo[WndNum] .MdiRadInfo->hMemDC,7 StartX+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x,8 StartY+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y,6 MoveToEx(MdiInfo[WndNum]->MdiRadInfo->hMemDC, 7 StartX+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x, 8 StartY+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y, 9 9 NULL); 10 LineTo(MdiInfo[WndNum] .MdiRadInfo->hMemDC,11 EndX+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x,12 EndY+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y);10 LineTo(MdiInfo[WndNum]->MdiRadInfo->hMemDC, 11 EndX+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x, 12 EndY+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y); 13 13 } 14 14 void DrawRectangleInClient(int WndNum,long left,long top,long right,long bottom,COLORREF RGB_Pen,COLORREF RGB_Brush,BOOL bBrushing){ … … 19 19 if(bBrushing) hBrush=CreateSolidBrush(RGB_Brush); 20 20 else hBrush=(HBRUSH)GetStockObject(NULL_BRUSH); 21 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);22 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hBrush);23 24 Rectangle(MdiInfo[WndNum] .MdiRadInfo->hMemDC,25 left+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x,26 top+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y,27 right+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x,28 bottom+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y);29 30 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);31 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldBrush);21 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 22 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hBrush); 23 24 Rectangle(MdiInfo[WndNum]->MdiRadInfo->hMemDC, 25 left+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x, 26 top+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y, 27 right+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x, 28 bottom+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y); 29 30 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 31 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldBrush); 32 32 DeleteObject(hPen); 33 33 if(bBrushing) DeleteObject(hBrush); … … 38 38 //光源方向の縁 39 39 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT)); 40 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);40 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 41 41 DrawLineInClient(WndNum, 42 42 pPos->x, pPos->y, … … 45 45 pPos->x, pPos->y, 46 46 pPos->x, pPos->y+pSize->cy-1); 47 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);47 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 48 48 DeleteObject(hPen); 49 49 50 50 //影側の縁 51 51 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DDKSHADOW)); 52 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);52 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 53 53 DrawLineInClient(WndNum, 54 54 pPos->x, pPos->y+pSize->cy-1, … … 57 57 pPos->x+pSize->cx-1, pPos->y, 58 58 pPos->x+pSize->cx-1, pPos->y+pSize->cy-1); 59 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);59 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 60 60 DeleteObject(hPen); 61 61 62 62 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DSHADOW)); 63 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);63 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 64 64 DrawLineInClient(WndNum, 65 65 pPos->x+1, pPos->y+pSize->cy-2, … … 68 68 pPos->x+pSize->cx-2, pPos->y+1, 69 69 pPos->x+pSize->cx-2, pPos->y+pSize->cy-2); 70 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);70 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 71 71 DeleteObject(hPen); 72 72 … … 90 90 //モーダル フレーム境界線 91 91 92 rect.left=pPos->x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;93 rect.top=pPos->y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;94 rect.right=pPos->x+pSize->cx+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;95 rect.bottom=pPos->y+pSize->cy+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;96 DrawEdge(MdiInfo[WndNum] .MdiRadInfo->hMemDC,&rect,EDGE_RAISED,BF_RECT);92 rect.left=pPos->x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 93 rect.top=pPos->y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 94 rect.right=pPos->x+pSize->cx+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 95 rect.bottom=pPos->y+pSize->cy+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 96 DrawEdge(MdiInfo[WndNum]->MdiRadInfo->hMemDC,&rect,EDGE_RAISED,BF_RECT); 97 97 pPos->x+=2; 98 98 pPos->y+=2; … … 117 117 //影側の色 118 118 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DSHADOW)); 119 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);119 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 120 120 DrawLineInClient(WndNum, 121 121 pPos->x, … … 128 128 pPos->x+pSize->cx-1, 129 129 pPos->y); 130 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);130 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 131 131 DeleteObject(hPen); 132 132 133 133 //光源方向の縁 134 134 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT)); 135 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);135 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 136 136 DrawLineInClient(WndNum, 137 137 pPos->x, … … 144 144 pPos->x+pSize->cx-1, 145 145 pPos->y+pSize->cy); 146 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);146 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 147 147 DeleteObject(hPen); 148 148 … … 156 156 //クライアント境界線 157 157 158 rect.left=pPos->x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;159 rect.top=pPos->y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;160 rect.right=pPos->x+pSize->cx+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;161 rect.bottom=pPos->y+pSize->cy+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;162 DrawEdge(MdiInfo[WndNum] .MdiRadInfo->hMemDC,&rect,EDGE_SUNKEN,BF_RECT);158 rect.left=pPos->x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 159 rect.top=pPos->y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 160 rect.right=pPos->x+pSize->cx+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 161 rect.bottom=pPos->y+pSize->cy+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 162 DrawEdge(MdiInfo[WndNum]->MdiRadInfo->hMemDC,&rect,EDGE_SUNKEN,BF_RECT); 163 163 pPos->x+=2; 164 164 pPos->y+=2; … … 198 198 if(style&WS_DISABLED){ 199 199 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT)); 200 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);200 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 201 201 pos.x++; 202 202 pos.y++; … … 205 205 DrawLineInClient(WndNum,i+pos.x+2,i2,i+pos.x+2,i2+(i*2)+1); 206 206 } 207 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);207 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 208 208 DeleteObject(hPen); 209 209 rgb=GetSysColor(COLOR_GRAYTEXT); … … 213 213 else rgb=GetSysColor(COLOR_BTNTEXT); 214 214 hPen=CreatePen(PS_SOLID,0,rgb); 215 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);215 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 216 216 i2=pos.y+(size.cy/2); 217 217 for(i=0;i<4;i++,i2--){ 218 218 DrawLineInClient(WndNum,i+pos.x+2,i2,i+pos.x+2,i2+(i*2)+1); 219 219 } 220 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);220 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 221 221 DeleteObject(hPen); 222 222 … … 244 244 if(style&WS_DISABLED){ 245 245 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT)); 246 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);246 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 247 247 pos.x++; 248 248 pos.y++; … … 251 251 DrawLineInClient(WndNum,i+pos.x+3,i2,i+pos.x+3,i2+((3-i)*2)+1); 252 252 } 253 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);253 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 254 254 DeleteObject(hPen); 255 255 rgb=GetSysColor(COLOR_GRAYTEXT); … … 259 259 else rgb=GetSysColor(COLOR_BTNTEXT); 260 260 hPen=CreatePen(PS_SOLID,0,rgb); 261 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);261 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 262 262 i2=pos.y+(size.cy/2); 263 263 for(i=3;i>=0;i--,i2--){ 264 264 DrawLineInClient(WndNum,i+pos.x+3,i2,i+pos.x+3,i2+((3-i)*2)+1); 265 265 } 266 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);266 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 267 267 DeleteObject(hPen); 268 268 … … 331 331 if(style&WS_DISABLED){ 332 332 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT)); 333 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);333 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 334 334 pos.x++; 335 335 pos.y++; … … 338 338 DrawLineInClient(WndNum,i2,i+pos.y+2,i2+(i*2)+1,i+pos.y+2); 339 339 } 340 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);340 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 341 341 DeleteObject(hPen); 342 342 rgb=GetSysColor(COLOR_GRAYTEXT); … … 346 346 else rgb=GetSysColor(COLOR_BTNTEXT); 347 347 hPen=CreatePen(PS_SOLID,0,rgb); 348 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);348 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 349 349 i2=pos.x+(size.cx/2)-1; 350 350 for(i=0;i<4;i++,i2--){ 351 351 DrawLineInClient(WndNum,i2,i+pos.y+2,i2+(i*2)+1,i+pos.y+2); 352 352 } 353 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);353 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 354 354 DeleteObject(hPen); 355 355 … … 378 378 if(style&WS_DISABLED){ 379 379 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT)); 380 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);380 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 381 381 pos.x++; 382 382 pos.y++; … … 385 385 DrawLineInClient(WndNum,i2,i+pos.y+3,i2+((3-i)*2)+1,i+pos.y+3); 386 386 } 387 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);387 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 388 388 DeleteObject(hPen); 389 389 rgb=GetSysColor(COLOR_GRAYTEXT); … … 393 393 else rgb=GetSysColor(COLOR_BTNTEXT); 394 394 hPen=CreatePen(PS_SOLID,0,rgb); 395 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);395 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 396 396 i2=pos.x+(size.cx/2); 397 397 for(i=3;i>=0;i--,i2--){ 398 398 DrawLineInClient(WndNum,i2,i+pos.y+3,i2+((3-i)*2)+1,i+pos.y+3); 399 399 } 400 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);400 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 401 401 DeleteObject(hPen); 402 402 … … 454 454 BitmapInfo.bmiHeader.biBitCount=24; 455 455 456 hBitmap=CreateDIBSection(MdiInfo[WndNum] .MdiRadInfo->hMemDC,&BitmapInfo,DIB_RGB_COLORS,(void **)&pByte,0,0);456 hBitmap=CreateDIBSection(MdiInfo[WndNum]->MdiRadInfo->hMemDC,&BitmapInfo,DIB_RGB_COLORS,(void **)&pByte,0,0); 457 457 i=BitmapInfo.bmiHeader.biWidth*3; 458 458 if(i%sizeof(LONG)!=0) i+=sizeof(LONG)-(i%sizeof(LONG)); … … 469 469 } 470 470 } 471 SetDIBitsToDevice(MdiInfo[WndNum] .MdiRadInfo->hMemDC,472 pos.x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x,473 pos.y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y,471 SetDIBitsToDevice(MdiInfo[WndNum]->MdiRadInfo->hMemDC, 472 pos.x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x, 473 pos.y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y, 474 474 BitmapInfo.bmiHeader.biWidth, BitmapInfo.bmiHeader.biHeight, 475 475 0,0, … … 505 505 if(style&WS_DISABLED){ 506 506 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT)); 507 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);507 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 508 508 pos.x++; 509 509 pos.y++; … … 512 512 DrawLineInClient(WndNum,i+pos.x+2,i2,i+pos.x+2,i2+(i*2)+1); 513 513 } 514 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);514 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 515 515 DeleteObject(hPen); 516 516 rgb=GetSysColor(COLOR_GRAYTEXT); … … 520 520 else rgb=GetSysColor(COLOR_BTNTEXT); 521 521 hPen=CreatePen(PS_SOLID,0,rgb); 522 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);522 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 523 523 i2=pos.y+(size.cy/2); 524 524 for(i=0;i<4;i++,i2--){ 525 525 DrawLineInClient(WndNum,i+pos.x+2,i2,i+pos.x+2,i2+(i*2)+1); 526 526 } 527 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);527 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 528 528 DeleteObject(hPen); 529 529 … … 543 543 if(style&WS_DISABLED){ 544 544 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT)); 545 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);545 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 546 546 pos.x++; 547 547 pos.y++; … … 550 550 DrawLineInClient(WndNum,i+pos.x+3,i2,i+pos.x+3,i2+((3-i)*2)+1); 551 551 } 552 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);552 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 553 553 DeleteObject(hPen); 554 554 rgb=GetSysColor(COLOR_GRAYTEXT); … … 558 558 else rgb=GetSysColor(COLOR_BTNTEXT); 559 559 hPen=CreatePen(PS_SOLID,0,rgb); 560 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);560 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 561 561 i2=pos.y+(size.cy/2); 562 562 for(i=3;i>=0;i--,i2--){ 563 563 DrawLineInClient(WndNum,i+pos.x+3,i2,i+pos.x+3,i2+((3-i)*2)+1); 564 564 } 565 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);565 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 566 566 DeleteObject(hPen); 567 567 } … … 584 584 if(style&WS_DISABLED){ 585 585 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT)); 586 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);586 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 587 587 pos.x++; 588 588 pos.y++; … … 591 591 DrawLineInClient(WndNum,i2,i+pos.y+2,i2+(i*2)+1,i+pos.y+2); 592 592 } 593 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);593 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 594 594 DeleteObject(hPen); 595 595 rgb=GetSysColor(COLOR_GRAYTEXT); … … 599 599 else rgb=GetSysColor(COLOR_BTNTEXT); 600 600 hPen=CreatePen(PS_SOLID,0,rgb); 601 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);601 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 602 602 i2=pos.x+(size.cx/2)-1; 603 603 for(i=0;i<4;i++,i2--){ 604 604 DrawLineInClient(WndNum,i2,i+pos.y+2,i2+(i*2)+1,i+pos.y+2); 605 605 } 606 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);606 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 607 607 DeleteObject(hPen); 608 608 … … 623 623 if(style&WS_DISABLED){ 624 624 hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT)); 625 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);625 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 626 626 pos.x++; 627 627 pos.y++; … … 630 630 DrawLineInClient(WndNum,i2,i+pos.y+3,i2+((3-i)*2)+1,i+pos.y+3); 631 631 } 632 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);632 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 633 633 DeleteObject(hPen); 634 634 rgb=GetSysColor(COLOR_GRAYTEXT); … … 638 638 else rgb=GetSysColor(COLOR_BTNTEXT); 639 639 hPen=CreatePen(PS_SOLID,0,rgb); 640 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hPen);640 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hPen); 641 641 i2=pos.x+(size.cx/2); 642 642 for(i=3;i>=0;i--,i2--){ 643 643 DrawLineInClient(WndNum,i2,i+pos.y+3,i2+((3-i)*2)+1,i+pos.y+3); 644 644 } 645 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldPen);645 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldPen); 646 646 DeleteObject(hPen); 647 647 } … … 748 748 749 749 //Draw...InClient関数のため 750 MdiInfo[WndNum] .MdiRadInfo->ClientPos.x=0;751 MdiInfo[WndNum] .MdiRadInfo->ClientPos.y=0;750 MdiInfo[WndNum]->MdiRadInfo->ClientPos.x=0; 751 MdiInfo[WndNum]->MdiRadInfo->ClientPos.y=0; 752 752 753 753 if(pWindowInfo->GetStyle()&(WS_CAPTION&(~WS_BORDER))){ … … 940 940 941 941 //クライアント左上ポジションを設定 942 MdiInfo[WndNum] .MdiRadInfo->ClientPos.x=InsideRect.left;943 MdiInfo[WndNum] .MdiRadInfo->ClientPos.y=InsideRect.top;942 MdiInfo[WndNum]->MdiRadInfo->ClientPos.x=InsideRect.left; 943 MdiInfo[WndNum]->MdiRadInfo->ClientPos.y=InsideRect.top; 944 944 945 945 //ExStyleによる縁を描画 … … 954 954 955 955 //クライアント領域のサイズを設定 956 MdiInfo[WndNum] .MdiRadInfo->ClientSize=size;956 MdiInfo[WndNum]->MdiRadInfo->ClientSize=size; 957 957 958 958 … … 1043 1043 //キャプション テキスト 1044 1044 1045 rect.left=pos.x+1+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1046 rect.top=pos.y+1+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1047 rect.right=pos.x+size.cx-2+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1048 rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1045 rect.left=pos.x+1+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1046 rect.top=pos.y+1+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1047 rect.right=pos.x+size.cx-2+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1048 rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1049 1049 1050 1050 if(pChildInfo->GetStyle()&BS_MULTILINE) i4=0; … … 1116 1116 if(!(pChildInfo->GetStyle()&(BS_ICON|BS_BITMAP))){ 1117 1117 //キャプション テキスト 1118 rect.left=pos.x+1+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1119 rect.top=pos.y+1+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1120 rect.right=pos.x+size.cx-2+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1121 rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1118 rect.left=pos.x+1+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1119 rect.top=pos.y+1+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1120 rect.right=pos.x+size.cx-2+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1121 rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1122 1122 1123 1123 if(pChildInfo->GetStyle()&BS_MULTILINE) i4=0; … … 1236 1236 1237 1237 //キャプション テキスト 1238 rect.left=pos.x+1+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1239 rect.top=pos.y+1+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1240 rect.right=pos.x+size.cx-1+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1241 rect.bottom=pos.y+size.cy-1+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1238 rect.left=pos.x+1+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1239 rect.top=pos.y+1+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1240 rect.right=pos.x+size.cx-1+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1241 rect.bottom=pos.y+size.cy-1+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1242 1242 1243 1243 if(pChildInfo->GetStyle()&ES_MULTILINE) i4=0; … … 1268 1268 1269 1269 //枠を描画 1270 rect.left=pos.x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1271 rect.top=pos.y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+(size2.cy/2);1272 rect.right=pos.x+size.cx+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1273 rect.bottom=pos.y+size.cy+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1270 rect.left=pos.x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1271 rect.top=pos.y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+(size2.cy/2); 1272 rect.right=pos.x+size.cx+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1273 rect.bottom=pos.y+size.cy+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1274 1274 DrawEdge(hdc,&rect,EDGE_ETCHED,BF_RECT); 1275 1275 … … 1295 1295 1296 1296 if(!((pChildInfo->GetStyle()&BS_ICON)||(pChildInfo->GetStyle()&BS_BITMAP))){ 1297 rect.left+=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1298 rect.top+=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1299 rect.right+=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1300 rect.bottom+=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1297 rect.left+=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1298 rect.top+=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1299 rect.right+=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1300 rect.bottom+=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1301 1301 rect.left+=2; 1302 1302 rect.right-=2; … … 1338 1338 DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,RGB(255,255,255),0,0); 1339 1339 else if((pChildInfo->GetStyle()&0x0000001F)==SS_ETCHEDFRAME){ 1340 rect.left=pos.x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1341 rect.top=pos.y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1342 rect.right=pos.x+size.cx+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1343 rect.bottom=pos.y+size.cy+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1340 rect.left=pos.x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1341 rect.top=pos.y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1342 rect.right=pos.x+size.cx+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1343 rect.bottom=pos.y+size.cy+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1344 1344 DrawEdge(hdc,&rect,EDGE_ETCHED,BF_RECT); 1345 1345 } … … 1385 1385 1386 1386 DrawIcon(hdc, 1387 pos.x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x,1388 pos.y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y,1387 pos.x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x, 1388 pos.y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y, 1389 1389 (HICON)hImage); 1390 1390 DestroyIcon((HICON)hImage); … … 1394 1394 DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,RGB(0,0,0),0,0); 1395 1395 hOldFont=(HFONT)SelectObject(hdc,hFont); 1396 rect.left=pos.x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1397 rect.top=pos.y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1398 rect.right=pos.x+size.cx+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1399 rect.bottom=pos.y+size.cy+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1396 rect.left=pos.x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1397 rect.top=pos.y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1398 rect.right=pos.x+size.cx+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1399 rect.bottom=pos.y+size.cy+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1400 1400 SetTextColor(hdc,GetSysColor(COLOR_WINDOWTEXT)); 1401 1401 DrawText(hdc,"icon...",-1,&rect,DT_SINGLELINE|DT_CENTER|DT_VCENTER); … … 1442 1442 SelectObject(memdc,hImage); 1443 1443 BitBlt(hdc, 1444 pos.x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x,1445 pos.y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y,1444 pos.x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x, 1445 pos.y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y, 1446 1446 size.cx, size.cy, 1447 1447 memdc, 0,0, … … 1454 1454 DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,RGB(0,0,0),0,0); 1455 1455 hOldFont=(HFONT)SelectObject(hdc,hFont); 1456 rect.left=pos.x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1457 rect.top=pos.y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1458 rect.right=pos.x+size.cx+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1459 rect.bottom=pos.y+size.cy+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1456 rect.left=pos.x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1457 rect.top=pos.y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1458 rect.right=pos.x+size.cx+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1459 rect.bottom=pos.y+size.cy+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1460 1460 SetTextColor(hdc,GetSysColor(COLOR_WINDOWTEXT)); 1461 1461 DrawText(hdc,"bmp...",-1,&rect,DT_SINGLELINE|DT_CENTER|DT_VCENTER); … … 1606 1606 } 1607 1607 SetDIBitsToDevice(hdc, 1608 pos2.x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x,1609 pos2.y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y,1608 pos2.x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x, 1609 pos2.y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y, 1610 1610 pBitmapInfo->bmiHeader.biWidth, pBitmapInfo->bmiHeader.biHeight, 1611 1611 0,0, … … 1623 1623 if(!(pChildInfo->GetStyle()&(BS_ICON|BS_BITMAP))){ 1624 1624 //キャプション テキスト 1625 rect.left=pos.x+1+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1626 rect.top=pos.y+1+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1627 rect.right=pos.x+size.cx-2+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1628 rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1625 rect.left=pos.x+1+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1626 rect.top=pos.y+1+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1627 rect.right=pos.x+size.cx-2+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1628 rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1629 1629 1630 1630 if(pChildInfo->GetStyle()&BS_MULTILINE) i4=0; … … 1665 1665 1666 1666 //キャプション テキスト 1667 rect.left=pos.x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1668 rect.top=pos.y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1669 rect.right=pos.x+size.cx+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;1670 rect.bottom=pos.y+size.cy+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;1667 rect.left=pos.x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1668 rect.top=pos.y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1669 rect.right=pos.x+size.cx+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 1670 rect.bottom=pos.y+size.cy+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 1671 1671 1672 1672 //ビットを考慮してSS_LEFTを最後に検討する … … 1708 1708 size.cy-=16; 1709 1709 1710 rect.left=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x+pos.x+(size.cx/2)-2;1711 rect.right=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x+pos.x+(size.cx/2)+2;1712 rect.top=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+pos.y;1713 rect.bottom=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+pos.y+size.cy;1710 rect.left=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pos.x+(size.cx/2)-2; 1711 rect.right=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pos.x+(size.cx/2)+2; 1712 rect.top=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pos.y; 1713 rect.bottom=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pos.y+size.cy; 1714 1714 DrawEdge(hdc,&rect,EDGE_SUNKEN,BF_RECT); 1715 1715 … … 1724 1724 if(size.cy>21) size.cy=21; 1725 1725 1726 rect.left=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x+pos.x;1727 rect.right=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x+pos.x+size.cx;1728 rect.top=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+pos.y+(size.cy/2)-2;1729 rect.bottom=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+pos.y+(size.cy/2)+2;1726 rect.left=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pos.x; 1727 rect.right=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pos.x+size.cx; 1728 rect.top=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pos.y+(size.cy/2)-2; 1729 rect.bottom=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pos.y+(size.cy/2)+2; 1730 1730 DrawEdge(hdc,&rect,EDGE_SUNKEN,BF_RECT); 1731 1731 … … 1769 1769 POINT pos; 1770 1770 1771 SetBkMode(MdiInfo[WndNum] .MdiRadInfo->hMemDC,TRANSPARENT);1772 1773 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,GetStockObject(WHITE_BRUSH));1774 PatBlt(MdiInfo[WndNum] .MdiRadInfo->hMemDC,0,0,ScreenX*2,ScreenY*2,PATCOPY);1775 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,hOldBrush);1771 SetBkMode(MdiInfo[WndNum]->MdiRadInfo->hMemDC,TRANSPARENT); 1772 1773 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,GetStockObject(WHITE_BRUSH)); 1774 PatBlt(MdiInfo[WndNum]->MdiRadInfo->hMemDC,0,0,ScreenX*2,ScreenY*2,PATCOPY); 1775 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,hOldBrush); 1776 1776 1777 1777 pos.x=LEVER_THICK; 1778 1778 pos.y=LEVER_THICK; 1779 DesigningWindow(WndNum,MdiInfo[WndNum] .MdiRadInfo->hMemDC,&pos,pWindowInfo);1780 1781 InvalidateRect(MdiInfo[WndNum] .MdiRadInfo->hRad,NULL,0);1779 DesigningWindow(WndNum,MdiInfo[WndNum]->MdiRadInfo->hMemDC,&pos,pWindowInfo); 1780 1781 InvalidateRect(MdiInfo[WndNum]->MdiRadInfo->hRad,NULL,0); 1782 1782 } -
trunk/ab5.0/abdev/abdev/FileOperation.cpp
r626 r629 344 344 345 345 char szOldTitle[MAX_PATH]; 346 lstrcpy(szOldTitle,MdiInfo[WndNum] .title.c_str());347 348 if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD||MdiInfo[WndNum].DocType==WNDTYPE_MENU){346 lstrcpy(szOldTitle,MdiInfo[WndNum]->title.c_str()); 347 348 if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD||MdiInfo[WndNum]->DocType==WNDTYPE_MENU){ 349 349 //////////////////////////////////// 350 350 // RADツール及びメニューエディタ … … 359 359 } 360 360 } 361 else if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){361 else if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 362 362 ////////////////////////// 363 363 // テキストドキュメント … … 376 376 377 377 //ドキュメント セレクト コンボボックスから消去 378 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum] .title.c_str());378 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum]->title.c_str()); 379 379 SendMessage(hDocCombo,CB_DELETESTRING,i2,0); 380 380 381 381 //新しいパスをセット 382 MdiInfo[WndNum] .path = temporary;382 MdiInfo[WndNum]->path = temporary; 383 383 384 384 //ドキュメント セレクト コンボボックスに挿入 385 385 _splitpath(temporary,NULL,NULL,str,str2); 386 386 lstrcat(str,str2); 387 MdiInfo[WndNum] .title = str;388 SendMessage(hDocCombo,CB_ADDSTRING,0,(long)MdiInfo[WndNum] .title.c_str());389 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum] .title.c_str());387 MdiInfo[WndNum]->title = str; 388 SendMessage(hDocCombo,CB_ADDSTRING,0,(long)MdiInfo[WndNum]->title.c_str()); 389 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum]->title.c_str()); 390 390 SendMessage(hDocCombo,CB_SETCURSEL,i2,0); 391 391 392 392 //MDIウィンドウのタイトルを再設定 393 SetWindowText(hChild,MdiInfo[WndNum] .title.c_str());393 SetWindowText(hChild,MdiInfo[WndNum]->title.c_str()); 394 394 } 395 395 else{ 396 if(MdiInfo[WndNum] .path.empty()){396 if(MdiInfo[WndNum]->path.empty()){ 397 397 //"保存先のファイルを指定してください" 398 398 get_file_path: … … 403 403 extern LPSTR HtmlFileFilter; 404 404 extern LPSTR TextFileFilter; 405 if(MdiInfo[WndNum] .DocType==WNDTYPE_BASIC)405 if(MdiInfo[WndNum]->DocType==WNDTYPE_BASIC) 406 406 ff=DefFileFilter; 407 else if(MdiInfo[WndNum] .DocType==WNDTYPE_HTML)407 else if(MdiInfo[WndNum]->DocType==WNDTYPE_HTML) 408 408 ff=HtmlFileFilter; 409 else if(MdiInfo[WndNum] .DocType==WNDTYPE_TEXT)409 else if(MdiInfo[WndNum]->DocType==WNDTYPE_TEXT) 410 410 ff=TextFileFilter; 411 411 … … 414 414 return 1; 415 415 } 416 lstrcpy(temporary,MdiInfo[WndNum] .path.c_str());416 lstrcpy(temporary,MdiInfo[WndNum]->path.c_str()); 417 417 } 418 418 … … 430 430 //文字コードを復元 431 431 char *pBuf; 432 pBuf=nkf.RestoreBuffer(MdiInfo[WndNum] .pMdiTextEdit->buffer,MdiInfo[WndNum].pMdiTextEdit->iCharCode);432 pBuf=nkf.RestoreBuffer(MdiInfo[WndNum]->pMdiTextEdit->buffer,MdiInfo[WndNum]->pMdiTextEdit->iCharCode); 433 433 434 434 //改行コードを復元 435 if(MdiInfo[WndNum] .pMdiTextEdit->iLfCode==LFCODE_LF) nkf.ToLF(pBuf);436 else if(MdiInfo[WndNum] .pMdiTextEdit->iLfCode==LFCODE_CR) nkf.ToCR(pBuf);435 if(MdiInfo[WndNum]->pMdiTextEdit->iLfCode==LFCODE_LF) nkf.ToLF(pBuf); 436 else if(MdiInfo[WndNum]->pMdiTextEdit->iLfCode==LFCODE_CR) nkf.ToCR(pBuf); 437 437 438 438 … … 454 454 455 455 //変更フラグをオフにする 456 MdiInfo[WndNum] .pMdiTextEdit->UnModify();457 } 458 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){456 MdiInfo[WndNum]->pMdiTextEdit->UnModify(); 457 } 458 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 459 459 /////////////////// 460 460 // ICON … … 471 471 } 472 472 CloseHandle(fh); 473 MdiInfo[WndNum] .path = temporary;474 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum] .title.c_str());473 MdiInfo[WndNum]->path = temporary; 474 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum]->title.c_str()); 475 475 SendMessage(hDocCombo,CB_DELETESTRING,i2,0); 476 476 _splitpath(temporary,NULL,NULL,str,str2); 477 477 lstrcat(str,str2); 478 MdiInfo[WndNum] .title = str;479 SendMessage(hDocCombo,CB_ADDSTRING,0,(long)MdiInfo[WndNum] .title.c_str());480 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum] .title.c_str());478 MdiInfo[WndNum]->title = str; 479 SendMessage(hDocCombo,CB_ADDSTRING,0,(long)MdiInfo[WndNum]->title.c_str()); 480 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum]->title.c_str()); 481 481 SendMessage(hDocCombo,CB_SETCURSEL,i2,0); 482 SetWindowText(hChild,MdiInfo[WndNum] .title.c_str());482 SetWindowText(hChild,MdiInfo[WndNum]->title.c_str()); 483 483 } 484 484 else{ 485 if(MdiInfo[WndNum] .path.empty()){485 if(MdiInfo[WndNum]->path.empty()){ 486 486 //"保存先のファイルを指定してください" 487 487 if(!GetFilePathDialog(hOwner,temporary,IconFileFilter,STRING_FILESAVETITLE_DEFAULT,FALSE)) return 0; … … 489 489 return 1; 490 490 } 491 lstrcpy(temporary,MdiInfo[WndNum] .path.c_str());491 lstrcpy(temporary,MdiInfo[WndNum]->path.c_str()); 492 492 } 493 493 SaveIconFile(temporary,hChild); 494 494 495 MdiInfo[WndNum] .MdiIconEditInfo->bModify=0;495 MdiInfo[WndNum]->MdiIconEditInfo->bModify=0; 496 496 } 497 497 … … 502 502 color=pobj_MainTab->GetItemColor(szOldTitle); 503 503 pobj_MainTab->DeleteItem( szOldTitle, false ); 504 pobj_MainTab->InsertItem( MdiInfo[WndNum] .title.c_str(), false, color );504 pobj_MainTab->InsertItem( MdiInfo[WndNum]->title.c_str(), false, color ); 505 505 } 506 506 else{ 507 pobj_MainTab->RenameItem( szOldTitle, MdiInfo[WndNum] .title.c_str() );507 pobj_MainTab->RenameItem( szOldTitle, MdiInfo[WndNum]->title.c_str() ); 508 508 } 509 509 510 510 //「最近使ったファイル」を更新 511 pobj_nv->pobj_History->insert(MdiInfo[WndNum] .path.c_str());511 pobj_nv->pobj_History->insert(MdiInfo[WndNum]->path.c_str()); 512 512 513 513 return 1; -
trunk/ab5.0/abdev/abdev/IconEditor.cpp
r626 r629 34 34 BITMAPINFOHEADER *pBmpInfoHdr; 35 35 36 hCombo=GetDlgItem(MdiInfo[WndNum] .MdiIconEditInfo->hToolDlg,IDC_ICONTYPECOMBO);37 38 for(i=0;i<MdiInfo[WndNum] .MdiIconEditInfo->num;i++){39 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[i];36 hCombo=GetDlgItem(MdiInfo[WndNum]->MdiIconEditInfo->hToolDlg,IDC_ICONTYPECOMBO); 37 38 for(i=0;i<MdiInfo[WndNum]->MdiIconEditInfo->num;i++){ 39 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[i]; 40 40 41 41 //例: "32*32 (xxxx色)" … … 147 147 } 148 148 149 MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->num]=149 MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->num]= 150 150 CreateIconType(IconType, 151 &MdiInfo[WndNum] .MdiIconEditInfo->dwBytesInRes[MdiInfo[WndNum].MdiIconEditInfo->num]);151 &MdiInfo[WndNum]->MdiIconEditInfo->dwBytesInRes[MdiInfo[WndNum]->MdiIconEditInfo->num]); 152 152 153 153 //イメージ選択用のメモリを解放 154 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==2)155 DeleteObject(MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);156 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=0;154 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==2) 155 DeleteObject(MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 156 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=0; 157 157 158 158 //アイコンタイプを追加 159 MdiInfo[WndNum] .MdiIconEditInfo->SelectIconNum=MdiInfo[WndNum].MdiIconEditInfo->num;160 MdiInfo[WndNum] .MdiIconEditInfo->num++;159 MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum=MdiInfo[WndNum]->MdiIconEditInfo->num; 160 MdiInfo[WndNum]->MdiIconEditInfo->num++; 161 161 162 162 //変更情報を初期化 163 i=MdiInfo[WndNum] .MdiIconEditInfo->SelectIconNum;164 MdiInfo[WndNum] .MdiIconEditInfo->undo[i].NowPos=0;165 memset(MdiInfo[WndNum] .MdiIconEditInfo->undo[i].lpData,0,sizeof(BYTE *)*MAX_ICONEDIT_UNDONUM);163 i=MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum; 164 MdiInfo[WndNum]->MdiIconEditInfo->undo[i].NowPos=0; 165 memset(MdiInfo[WndNum]->MdiIconEditInfo->undo[i].lpData,0,sizeof(BYTE *)*MAX_ICONEDIT_UNDONUM); 166 166 167 167 //アイコンタイプコンボボックスに追加 168 168 char temporary[32]; 169 169 HWND hCombo; 170 hCombo=GetDlgItem(MdiInfo[WndNum] .MdiIconEditInfo->hToolDlg,IDC_ICONTYPECOMBO);170 hCombo=GetDlgItem(MdiInfo[WndNum]->MdiIconEditInfo->hToolDlg,IDC_ICONTYPECOMBO); 171 171 172 172 //例: "32*32 (xxxx色)" … … 182 182 //再描画 183 183 HBRUSH hOldBrush; 184 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,GetStockObject(WHITE_BRUSH));185 PatBlt(MdiInfo[WndNum] .MdiIconEditInfo->memdc,0,0,400,400,PATCOPY);186 SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,hOldBrush);184 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,GetStockObject(WHITE_BRUSH)); 185 PatBlt(MdiInfo[WndNum]->MdiIconEditInfo->memdc,0,0,400,400,PATCOPY); 186 SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,hOldBrush); 187 187 DrawIconToMemBmp(WndNum,0); 188 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hMain,NULL,1);189 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hColorDlg,NULL,0);188 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hMain,NULL,1); 189 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hColorDlg,NULL,0); 190 190 } 191 191 void DeleteIconType(int WndNum){ … … 194 194 //変更情報を解放 195 195 for(i=0;i<MAX_ICONEDIT_UNDONUM;i++){ 196 if(MdiInfo[WndNum] .MdiIconEditInfo->undo[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum].lpData[i])197 HeapDefaultFree(MdiInfo[WndNum] .MdiIconEditInfo->undo[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum].lpData[i]);196 if(MdiInfo[WndNum]->MdiIconEditInfo->undo[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum].lpData[i]) 197 HeapDefaultFree(MdiInfo[WndNum]->MdiIconEditInfo->undo[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum].lpData[i]); 198 198 } 199 199 200 200 //メモリを解放 201 HeapDefaultFree(MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]);201 HeapDefaultFree(MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]); 202 202 203 203 //イメージ選択用のメモリを解放 204 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==2)205 DeleteObject(MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);206 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=0;204 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==2) 205 DeleteObject(MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 206 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=0; 207 207 208 208 //////////////////////// 209 209 // アイコンタイプを削除 210 for(i=MdiInfo[WndNum] .MdiIconEditInfo->SelectIconNum;i<MdiInfo[WndNum].MdiIconEditInfo->num-1;i++){211 MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[i]=MdiInfo[WndNum].MdiIconEditInfo->pIconImage[i+1];212 MdiInfo[WndNum] .MdiIconEditInfo->dwBytesInRes[i]=MdiInfo[WndNum].MdiIconEditInfo->dwBytesInRes[i+1];213 MdiInfo[WndNum] .MdiIconEditInfo->undo[i]=MdiInfo[WndNum].MdiIconEditInfo->undo[i+1];214 } 215 MdiInfo[WndNum] .MdiIconEditInfo->num--;216 if(MdiInfo[WndNum] .MdiIconEditInfo->num==MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum)217 MdiInfo[WndNum] .MdiIconEditInfo->SelectIconNum=MdiInfo[WndNum].MdiIconEditInfo->num-1;210 for(i=MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum;i<MdiInfo[WndNum]->MdiIconEditInfo->num-1;i++){ 211 MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[i]=MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[i+1]; 212 MdiInfo[WndNum]->MdiIconEditInfo->dwBytesInRes[i]=MdiInfo[WndNum]->MdiIconEditInfo->dwBytesInRes[i+1]; 213 MdiInfo[WndNum]->MdiIconEditInfo->undo[i]=MdiInfo[WndNum]->MdiIconEditInfo->undo[i+1]; 214 } 215 MdiInfo[WndNum]->MdiIconEditInfo->num--; 216 if(MdiInfo[WndNum]->MdiIconEditInfo->num==MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum) 217 MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum=MdiInfo[WndNum]->MdiIconEditInfo->num-1; 218 218 219 219 //コンボボックスからアイコンタイプを削除 220 220 HWND hCombo; 221 hCombo=GetDlgItem(MdiInfo[WndNum] .MdiIconEditInfo->hToolDlg,IDC_ICONTYPECOMBO);221 hCombo=GetDlgItem(MdiInfo[WndNum]->MdiIconEditInfo->hToolDlg,IDC_ICONTYPECOMBO); 222 222 i=SendMessage(hCombo,CB_DELETESTRING, 223 223 SendMessage(hCombo,CB_GETCURSEL,0,0), 224 224 0); 225 SendMessage(hCombo,CB_SETCURSEL,MdiInfo[WndNum] .MdiIconEditInfo->SelectIconNum,0);225 SendMessage(hCombo,CB_SETCURSEL,MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum,0); 226 226 227 227 //再描画 228 228 HBRUSH hOldBrush; 229 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,GetStockObject(WHITE_BRUSH));230 PatBlt(MdiInfo[WndNum] .MdiIconEditInfo->memdc,0,0,400,400,PATCOPY);231 SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,hOldBrush);229 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,GetStockObject(WHITE_BRUSH)); 230 PatBlt(MdiInfo[WndNum]->MdiIconEditInfo->memdc,0,0,400,400,PATCOPY); 231 SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,hOldBrush); 232 232 DrawIconToMemBmp(WndNum,0); 233 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hMain,NULL,1);234 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hColorDlg,NULL,0);233 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hMain,NULL,1); 234 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hColorDlg,NULL,0); 235 235 } 236 236 void NewIconEditWindow(const char *filepath){ … … 252 252 while(hChild){ 253 253 i=GetWndNum(hChild); 254 if(MdiInfo[i] .DocType==WNDTYPE_ICONEDIT){255 if(lstrcmpi(MdiInfo[i] .path.c_str(),filepath)==0) break;254 if(MdiInfo[i]->DocType==WNDTYPE_ICONEDIT){ 255 if(lstrcmpi(MdiInfo[i]->path.c_str(),filepath)==0) break; 256 256 } 257 257 hChild=GetNextWindow(hChild,GW_HWNDNEXT); … … 344 344 345 345 mdic.lParam=0; 346 mdic.style |= WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_SYSMENU | WS_CAPTION | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX; 346 347 hChild=(HWND)SendMessage(hClient,WM_MDICREATE,0,(long)&mdic); //ウィンドウ作成 347 348 … … 369 370 370 371 //ウィンドウのID登録 371 MdiInfo.push_back( MDIINFO() );372 MdiInfo.push_back( new MDIINFO() ); 372 373 i = MdiInfo.size()-1; 373 MdiInfo[i] .hwnd=hChild;374 MdiInfo[i] .DocType=WNDTYPE_ICONEDIT;375 MdiInfo[i] .title = str;374 MdiInfo[i]->hwnd=hChild; 375 MdiInfo[i]->DocType=WNDTYPE_ICONEDIT; 376 MdiInfo[i]->title = str; 376 377 if(filepath) 377 378 { 378 MdiInfo[i] .path = filepath;379 MdiInfo[i]->path = filepath; 379 380 } 380 381 else 381 382 { 382 MdiInfo[i] .path = "";383 } 384 385 MdiInfo[i] .MdiIconEditInfo=(MDIICONEDITINFO *)HeapAlloc(hHeap,0,sizeof(MDIICONEDITINFO));386 MdiInfo[i] .MdiIconEditInfo->hMain=hMain;387 MdiInfo[i] .MdiIconEditInfo->hToolDlg=hToolDlg;388 MdiInfo[i] .MdiIconEditInfo->hButtonsDlg=hButtonsDlg;389 MdiInfo[i] .MdiIconEditInfo->hColorDlg=hColorDlg;383 MdiInfo[i]->path = ""; 384 } 385 386 MdiInfo[i]->MdiIconEditInfo=(MDIICONEDITINFO *)HeapAlloc(hHeap,0,sizeof(MDIICONEDITINFO)); 387 MdiInfo[i]->MdiIconEditInfo->hMain=hMain; 388 MdiInfo[i]->MdiIconEditInfo->hToolDlg=hToolDlg; 389 MdiInfo[i]->MdiIconEditInfo->hButtonsDlg=hButtonsDlg; 390 MdiInfo[i]->MdiIconEditInfo->hColorDlg=hColorDlg; 390 391 hdc=GetDC(hMain); 391 MdiInfo[i] .MdiIconEditInfo->memdc=CreateCompatibleDC(hdc);392 MdiInfo[i] .MdiIconEditInfo->hMemBmp=CreateCompatibleBitmap(hdc,600,400);393 SelectObject(MdiInfo[i] .MdiIconEditInfo->memdc,MdiInfo[i].MdiIconEditInfo->hMemBmp);392 MdiInfo[i]->MdiIconEditInfo->memdc=CreateCompatibleDC(hdc); 393 MdiInfo[i]->MdiIconEditInfo->hMemBmp=CreateCompatibleBitmap(hdc,600,400); 394 SelectObject(MdiInfo[i]->MdiIconEditInfo->memdc,MdiInfo[i]->MdiIconEditInfo->hMemBmp); 394 395 ReleaseDC(hMain,hdc); 395 396 396 MdiInfo[i] .MdiIconEditInfo->SelectLevel=0;397 398 MdiInfo[i] .MdiIconEditInfo->num=IconNum;399 MdiInfo[i] .MdiIconEditInfo->SelectIconNum=0;400 memcpy(MdiInfo[i] .MdiIconEditInfo->pIconImage,pImageBuffer,sizeof(DWORD)*IconNum);401 402 memcpy(MdiInfo[i] .MdiIconEditInfo->dwBytesInRes,dwBytesInRes,sizeof(DWORD)*IconNum);403 404 MdiInfo[i] .MdiIconEditInfo->NowTool=IDC_TOOL_PEN;405 MdiInfo[i] .MdiIconEditInfo->MainColor=RGB(0,0,0);397 MdiInfo[i]->MdiIconEditInfo->SelectLevel=0; 398 399 MdiInfo[i]->MdiIconEditInfo->num=IconNum; 400 MdiInfo[i]->MdiIconEditInfo->SelectIconNum=0; 401 memcpy(MdiInfo[i]->MdiIconEditInfo->pIconImage,pImageBuffer,sizeof(DWORD)*IconNum); 402 403 memcpy(MdiInfo[i]->MdiIconEditInfo->dwBytesInRes,dwBytesInRes,sizeof(DWORD)*IconNum); 404 405 MdiInfo[i]->MdiIconEditInfo->NowTool=IDC_TOOL_PEN; 406 MdiInfo[i]->MdiIconEditInfo->MainColor=RGB(0,0,0); 406 407 extern COLORREF TransparentClrRef; 407 MdiInfo[i] .MdiIconEditInfo->SubColor=TransparentClrRef;408 409 for(i2=0;i2<MdiInfo[i] .MdiIconEditInfo->num;i2++){410 MdiInfo[i] .MdiIconEditInfo->undo[i2].NowPos=0;411 memset(MdiInfo[i] .MdiIconEditInfo->undo[i2].lpData,0,sizeof(BYTE *)*MAX_ICONEDIT_UNDONUM);412 } 413 MdiInfo[i] .MdiIconEditInfo->bModify=0;408 MdiInfo[i]->MdiIconEditInfo->SubColor=TransparentClrRef; 409 410 for(i2=0;i2<MdiInfo[i]->MdiIconEditInfo->num;i2++){ 411 MdiInfo[i]->MdiIconEditInfo->undo[i2].NowPos=0; 412 memset(MdiInfo[i]->MdiIconEditInfo->undo[i2].lpData,0,sizeof(BYTE *)*MAX_ICONEDIT_UNDONUM); 413 } 414 MdiInfo[i]->MdiIconEditInfo->bModify=0; 414 415 415 416 … … 417 418 //メモリへ初期描画を行う 418 419 HBRUSH hOldBrush; 419 hOldBrush=(HBRUSH)SelectObject(MdiInfo[i] .MdiIconEditInfo->memdc,GetStockObject(WHITE_BRUSH));420 PatBlt(MdiInfo[i] .MdiIconEditInfo->memdc,0,0,600,400,PATCOPY);421 SelectObject(MdiInfo[i] .MdiIconEditInfo->memdc,hOldBrush);420 hOldBrush=(HBRUSH)SelectObject(MdiInfo[i]->MdiIconEditInfo->memdc,GetStockObject(WHITE_BRUSH)); 421 PatBlt(MdiInfo[i]->MdiIconEditInfo->memdc,0,0,600,400,PATCOPY); 422 SelectObject(MdiInfo[i]->MdiIconEditInfo->memdc,hOldBrush); 422 423 DrawIconToMemBmp(i,0); 423 424 … … 430 431 ResetIconType(i); 431 432 432 if(MdiInfo[i] .MdiIconEditInfo->num<=1)433 if(MdiInfo[i]->MdiIconEditInfo->num<=1) 433 434 EnableWindow(GetDlgItem(hToolDlg,IDC_DELETE_ICONTYPE),0); 434 435 … … 460 461 *((WORD *)(buffer+i2))=1; //idType 461 462 i2+=sizeof(WORD); 462 *((WORD *)(buffer+i2))=MdiInfo[WndNum] .MdiIconEditInfo->num; //idCount463 *((WORD *)(buffer+i2))=MdiInfo[WndNum]->MdiIconEditInfo->num; //idCount 463 464 i2+=sizeof(WORD); 464 465 … … 470 471 //イメージバッファの初期位置 471 472 IconDirEntry.dwImageOffset=sizeof(ICONDIR)+ 472 sizeof(ICONDIRENTRY)*MdiInfo[WndNum] .MdiIconEditInfo->num;473 474 for(i=0;i<MdiInfo[WndNum] .MdiIconEditInfo->num;i++){473 sizeof(ICONDIRENTRY)*MdiInfo[WndNum]->MdiIconEditInfo->num; 474 475 for(i=0;i<MdiInfo[WndNum]->MdiIconEditInfo->num;i++){ 475 476 BITMAPINFOHEADER *pBmpInfoHdr; 476 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[i];477 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[i]; 477 478 478 479 IconDirEntry.bWidth=(BYTE)pBmpInfoHdr->biWidth; … … 505 506 //////////////////// 506 507 // イメージバッファ 507 for(i=0;i<MdiInfo[WndNum] .MdiIconEditInfo->num;i++){508 for(i=0;i<MdiInfo[WndNum]->MdiIconEditInfo->num;i++){ 508 509 memcpy(buffer+i2, 509 MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[i],510 MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[i], 510 511 ImgBufSize[i]); 511 512 … … 538 539 if(i==-1) return 0; //ウィンドウが初期状態の場合 539 540 540 i=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[i] .title.c_str());541 i=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[i]->title.c_str()); 541 542 SendMessage(hDocCombo,CB_SETCURSEL,i,0); 542 543 SetStatusText(NULL); … … 546 547 WndNum=GetWndNum(hwnd); 547 548 if(WndNum==-1) break; 548 ResizeIconWindow(MdiInfo[WndNum] .MdiIconEditInfo->hMain,549 MdiInfo[WndNum] .MdiIconEditInfo->hToolDlg,550 MdiInfo[WndNum] .MdiIconEditInfo->hColorDlg,549 ResizeIconWindow(MdiInfo[WndNum]->MdiIconEditInfo->hMain, 550 MdiInfo[WndNum]->MdiIconEditInfo->hToolDlg, 551 MdiInfo[WndNum]->MdiIconEditInfo->hColorDlg, 551 552 LOWORD(lParam),HIWORD(lParam)); 552 553 break; -
trunk/ab5.0/abdev/abdev/IconEditor_Color.cpp
r625 r629 31 31 //透明色をクリックした場合 32 32 if(message==WM_LBUTTONDOWN) 33 MdiInfo[WndNum] .MdiIconEditInfo->MainColor=TransparentClrRef;33 MdiInfo[WndNum]->MdiIconEditInfo->MainColor=TransparentClrRef; 34 34 else 35 MdiInfo[WndNum] .MdiIconEditInfo->SubColor=TransparentClrRef;35 MdiInfo[WndNum]->MdiIconEditInfo->SubColor=TransparentClrRef; 36 36 InvalidateRect(hwnd,NULL,0); 37 37 return 1; … … 52 52 53 53 if(message==WM_LBUTTONDOWN) 54 MdiInfo[WndNum] .MdiIconEditInfo->MainColor=ColorRef;54 MdiInfo[WndNum]->MdiIconEditInfo->MainColor=ColorRef; 55 55 else 56 MdiInfo[WndNum] .MdiIconEditInfo->SubColor=ColorRef;56 MdiInfo[WndNum]->MdiIconEditInfo->SubColor=ColorRef; 57 57 58 58 InvalidateRect(hwnd,NULL,0); … … 78 78 79 79 //カラーテーブルを取得 80 pRgbq=(RGBQUAD *)(MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]+sizeof(BITMAPINFOHEADER));80 pRgbq=(RGBQUAD *)(MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]+sizeof(BITMAPINFOHEADER)); 81 81 82 82 hdc=BeginPaint(hwnd,&ps); 83 83 hPen=CreatePen(PS_SOLID,0,RGB(0,0,0)); 84 84 hOldPen=(HPEN)SelectObject(hdc,hPen); 85 if(MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biBitCount==4){85 if(MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biBitCount==4){ 86 86 //////// 87 87 // 16色 … … 154 154 155 155 //現在選択中のサブカラーを表示 156 hBrush=CreateSolidBrush(MdiInfo[WndNum] .MdiIconEditInfo->SubColor);156 hBrush=CreateSolidBrush(MdiInfo[WndNum]->MdiIconEditInfo->SubColor); 157 157 hOldBrush=(HBRUSH)SelectObject(hdc,hBrush); 158 158 Rectangle(hdc, … … 165 165 166 166 //現在選択中のメインカラーを表示 167 hBrush=CreateSolidBrush(MdiInfo[WndNum] .MdiIconEditInfo->MainColor);167 hBrush=CreateSolidBrush(MdiInfo[WndNum]->MdiIconEditInfo->MainColor); 168 168 hOldBrush=(HBRUSH)SelectObject(hdc,hBrush); 169 169 Rectangle(hdc, -
trunk/ab5.0/abdev/abdev/IconEditor_Main.cpp
r625 r629 15 15 if(pRect->left<0) pRect->left=0; 16 16 if(pRect->top<0) pRect->top=0; 17 if(pRect->left>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biWidth)18 pRect->left=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biWidth-1;19 if(pRect->top>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biHeight/2)20 pRect->top=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biHeight/2-1;17 if(pRect->left>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biWidth) 18 pRect->left=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biWidth-1; 19 if(pRect->top>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biHeight/2) 20 pRect->top=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biHeight/2-1; 21 21 22 22 if(pRect->right<0) pRect->right=0; 23 23 if(pRect->bottom<0) pRect->bottom=0; 24 if(pRect->right>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biWidth)25 pRect->right=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biWidth-1;26 if(pRect->bottom>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biHeight/2)27 pRect->bottom=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biHeight/2-1;24 if(pRect->right>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biWidth) 25 pRect->right=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biWidth-1; 26 if(pRect->bottom>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biHeight/2) 27 pRect->bottom=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biHeight/2-1; 28 28 } 29 29 void GetZoomedPos(POINT *pPos){ … … 35 35 36 36 if(x<0||y<0|| 37 x>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biWidth||38 y>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biHeight/2)37 x>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biWidth|| 38 y>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biHeight/2) 39 39 return; 40 40 … … 52 52 53 53 //カラーテーブルを取得 54 pRgbq=(RGBQUAD *)(MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]+sizeof(BITMAPINFOHEADER));55 56 i2=(int)pow((double)2,(double)MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biBitCount);54 pRgbq=(RGBQUAD *)(MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]+sizeof(BITMAPINFOHEADER)); 55 56 i2=(int)pow((double)2,(double)MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biBitCount); 57 57 for(i=0;i<i2;i++){ 58 58 if(ColorRef==RGB(pRgbq[i].rgbRed,pRgbq[i].rgbGreen,pRgbq[i].rgbBlue)) break; … … 74 74 //何も選択されていない場合は0を返す 75 75 sw=0; 76 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==0) return 0;77 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==1){76 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==0) return 0; 77 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==1){ 78 78 IconEdit_SelectImage(WndNum); 79 79 sw=1; 80 80 } 81 81 82 size.cx=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.right-MdiInfo[WndNum].MdiIconEditInfo->DraggingRect.left+1;83 size.cy=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.bottom-MdiInfo[WndNum].MdiIconEditInfo->DraggingRect.top+1;84 85 hDC=CreateCompatibleDC(MdiInfo[WndNum] .MdiIconEditInfo->memdc);82 size.cx=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.right-MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left+1; 83 size.cy=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.bottom-MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top+1; 84 85 hDC=CreateCompatibleDC(MdiInfo[WndNum]->MdiIconEditInfo->memdc); 86 86 hBmp=CreateCompatibleBitmap( 87 MdiInfo[WndNum] .MdiIconEditInfo->memdc,87 MdiInfo[WndNum]->MdiIconEditInfo->memdc, 88 88 size.cx, 89 89 size.cy); … … 91 91 92 92 BitBlt(hDC,0,0,size.cx,size.cy, 93 MdiInfo[WndNum] .MdiIconEditInfo->memdc,94 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.left,95 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.top,93 MdiInfo[WndNum]->MdiIconEditInfo->memdc, 94 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left, 95 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top, 96 96 SRCCOPY); 97 97 … … 99 99 100 100 if(sw){ 101 DeleteObject(MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);102 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=1;101 DeleteObject(MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 102 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=1; 103 103 } 104 104 … … 113 113 BITMAP Bitmap; 114 114 115 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==2)115 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==2) 116 116 IconEdit_PasteImage(WndNum); 117 117 118 118 GetObject(hBmp,sizeof(Bitmap),&Bitmap); 119 119 120 hDC=CreateCompatibleDC(MdiInfo[WndNum] .MdiIconEditInfo->memdc);121 MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp=122 CreateCompatibleBitmap(MdiInfo[WndNum] .MdiIconEditInfo->memdc,Bitmap.bmWidth,Bitmap.bmHeight);123 SelectObject(hDC,MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);124 hDC2=CreateCompatibleDC(MdiInfo[WndNum] .MdiIconEditInfo->memdc);120 hDC=CreateCompatibleDC(MdiInfo[WndNum]->MdiIconEditInfo->memdc); 121 MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp= 122 CreateCompatibleBitmap(MdiInfo[WndNum]->MdiIconEditInfo->memdc,Bitmap.bmWidth,Bitmap.bmHeight); 123 SelectObject(hDC,MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 124 hDC2=CreateCompatibleDC(MdiInfo[WndNum]->MdiIconEditInfo->memdc); 125 125 SelectObject(hDC2,hBmp); 126 126 … … 131 131 DeleteDC(hDC2); 132 132 133 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.left=0;134 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.top=0;135 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.right=Bitmap.bmWidth-1;136 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.bottom=Bitmap.bmHeight-1;137 138 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hMain,NULL,0);139 140 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=2;133 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left=0; 134 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top=0; 135 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.right=Bitmap.bmWidth-1; 136 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.bottom=Bitmap.bmHeight-1; 137 138 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hMain,NULL,0); 139 140 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=2; 141 141 } 142 142 … … 145 145 HDC hDC; 146 146 147 size.cx=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.right-MdiInfo[WndNum].MdiIconEditInfo->DraggingRect.left+1;148 size.cy=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.bottom-MdiInfo[WndNum].MdiIconEditInfo->DraggingRect.top+1;149 150 hDC=CreateCompatibleDC(MdiInfo[WndNum] .MdiIconEditInfo->memdc);151 MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp=152 CreateCompatibleBitmap(MdiInfo[WndNum] .MdiIconEditInfo->memdc,size.cx,size.cy);153 SelectObject(hDC,MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);147 size.cx=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.right-MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left+1; 148 size.cy=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.bottom-MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top+1; 149 150 hDC=CreateCompatibleDC(MdiInfo[WndNum]->MdiIconEditInfo->memdc); 151 MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp= 152 CreateCompatibleBitmap(MdiInfo[WndNum]->MdiIconEditInfo->memdc,size.cx,size.cy); 153 SelectObject(hDC,MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 154 154 BitBlt(hDC,0,0,size.cx,size.cy, 155 MdiInfo[WndNum] .MdiIconEditInfo->memdc,156 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.left,157 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.top,155 MdiInfo[WndNum]->MdiIconEditInfo->memdc, 156 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left, 157 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top, 158 158 SRCCOPY); 159 159 DeleteDC(hDC); 160 160 161 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=2;161 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=2; 162 162 } 163 163 void IconEdit_PasteImage(int WndNum){ … … 179 179 IconEdit_NoticeChanging(WndNum); 180 180 181 GetObject(MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp,sizeof(BITMAP),&Bitmap);181 GetObject(MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp,sizeof(BITMAP),&Bitmap); 182 182 pSelectingBuffer=(COLORREF *)HeapAlloc(hHeap,0,Bitmap.bmWidth*Bitmap.bmHeight*sizeof(COLORREF)); 183 183 SelectingBitmapInfo.bmiHeader.biSize=sizeof(BITMAPINFOHEADER); … … 187 187 SelectingBitmapInfo.bmiHeader.biBitCount=32; 188 188 SelectingBitmapInfo.bmiHeader.biCompression=BI_RGB; 189 GetDIBits(MdiInfo[WndNum] .MdiIconEditInfo->memdc,190 MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp,189 GetDIBits(MdiInfo[WndNum]->MdiIconEditInfo->memdc, 190 MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp, 191 191 0,Bitmap.bmHeight, 192 192 pSelectingBuffer,&SelectingBitmapInfo,DIB_RGB_COLORS); 193 193 194 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum];194 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]; 195 195 196 196 //カラーテーブルを取得 197 pRgbq=(RGBQUAD *)(MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]+sizeof(BITMAPINFOHEADER));197 pRgbq=(RGBQUAD *)(MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]+sizeof(BITMAPINFOHEADER)); 198 198 199 199 //ビットバッファを取得 200 pBuffer=MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]+200 pBuffer=MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]+ 201 201 sizeof(BITMAPINFOHEADER); 202 202 if(pBmpInfoHdr->biBitCount<=8) … … 206 206 pMaskBuf=pBuffer+pBmpInfoHdr->biBitCount*pBmpInfoHdr->biWidth*(pBmpInfoHdr->biHeight/2)/8; 207 207 208 for(y=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.bottom;y>=MdiInfo[WndNum].MdiIconEditInfo->DraggingRect.top;y--){209 for(x=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.left;x<=MdiInfo[WndNum].MdiIconEditInfo->DraggingRect.right;x++){208 for(y=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.bottom;y>=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top;y--){ 209 for(x=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left;x<=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.right;x++){ 210 210 if(x<0||y<0|| 211 x>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biWidth||212 y>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biHeight/2){211 x>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biWidth|| 212 y>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biHeight/2){ 213 213 //範囲外の場合 214 214 continue; 215 215 } 216 216 217 selecting_x=x-MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.left;218 selecting_y=y-MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.top;217 selecting_x=x-MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left; 218 selecting_y=y-MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top; 219 219 dwRgbq=pSelectingBuffer[(Bitmap.bmHeight-1-selecting_y)*Bitmap.bmWidth+selecting_x]; 220 220 … … 284 284 HeapDefaultFree(pSelectingBuffer); 285 285 286 DeleteObject(MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);287 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=0;286 DeleteObject(MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 287 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=0; 288 288 289 289 DrawIconToMemBmp(WndNum,0); 290 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hMain,NULL,0);290 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hMain,NULL,0); 291 291 } 292 292 … … 301 301 BITMAPINFOHEADER *pBmpInfoHdr; 302 302 303 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum];303 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]; 304 304 305 305 if( !(pBmpInfoHdr->biBitCount == 4 || pBmpInfoHdr->biBitCount == 8 ) ){ … … 310 310 311 311 hPen=CreatePen(PS_SOLID,0,RGB(200,200,200)); 312 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,hPen);312 hOldPen=(HPEN)SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,hPen); 313 313 314 314 //カラーテーブルを取得 315 pRgbq=(RGBQUAD *)(MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]+sizeof(BITMAPINFOHEADER));315 pRgbq=(RGBQUAD *)(MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]+sizeof(BITMAPINFOHEADER)); 316 316 317 317 //ビットバッファを取得 318 pBuffer=MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]+318 pBuffer=MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]+ 319 319 sizeof(BITMAPINFOHEADER); 320 320 if(pBmpInfoHdr->biBitCount<=8) … … 344 344 if(i2){ 345 345 hBrush=CreateSolidBrush(TransparentClrRef); 346 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,hBrush);346 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,hBrush); 347 347 pos.x=x; 348 348 pos.y=y; 349 349 GetZoomedPos(&pos); 350 Rectangle(MdiInfo[WndNum] .MdiIconEditInfo->memdc,350 Rectangle(MdiInfo[WndNum]->MdiIconEditInfo->memdc, 351 351 pos.x, 352 352 pos.y, 353 353 pos.x+11, 354 354 pos.y+11); 355 SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,hOldBrush);355 SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,hOldBrush); 356 356 DeleteObject(hBrush); 357 357 358 SetPixel(MdiInfo[WndNum] .MdiIconEditInfo->memdc,x,y,TransparentClrRef);358 SetPixel(MdiInfo[WndNum]->MdiIconEditInfo->memdc,x,y,TransparentClrRef); 359 359 continue; 360 360 } … … 377 377 378 378 hBrush=CreateSolidBrush(ColorRef); 379 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,hBrush);379 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,hBrush); 380 380 pos.x=x; 381 381 pos.y=y; 382 382 GetZoomedPos(&pos); 383 Rectangle(MdiInfo[WndNum] .MdiIconEditInfo->memdc,383 Rectangle(MdiInfo[WndNum]->MdiIconEditInfo->memdc, 384 384 pos.x, 385 385 pos.y, 386 386 pos.x+11, 387 387 pos.y+11); 388 SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,hOldBrush);388 SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,hOldBrush); 389 389 DeleteObject(hBrush); 390 390 391 SetPixel(MdiInfo[WndNum] .MdiIconEditInfo->memdc,x,y,ColorRef);392 } 393 } 394 395 SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,hOldPen);391 SetPixel(MdiInfo[WndNum]->MdiIconEditInfo->memdc,x,y,ColorRef); 392 } 393 } 394 395 SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,hOldPen); 396 396 DeleteObject(hPen); 397 397 } … … 404 404 405 405 if(x<0||y<0) return; 406 if(x>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biWidth||407 y>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biHeight/2)406 if(x>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biWidth|| 407 y>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biHeight/2) 408 408 return; 409 409 410 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum];411 412 pBuffer=MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]+410 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]; 411 412 pBuffer=MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]+ 413 413 sizeof(BITMAPINFOHEADER); 414 414 pBuffer+=sizeof(DWORD)*(int)pow((double)2,(double)pBmpInfoHdr->biBitCount); … … 466 466 467 467 if(x<0||y<0) return 0; 468 if(x>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biWidth||469 y>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biHeight/2)468 if(x>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biWidth|| 469 y>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biHeight/2) 470 470 return 0; 471 471 472 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum];472 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]; 473 473 474 474 //カラーテーブルを取得 475 pRgbq=(RGBQUAD *)(MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]+sizeof(BITMAPINFOHEADER));475 pRgbq=(RGBQUAD *)(MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]+sizeof(BITMAPINFOHEADER)); 476 476 477 477 //通常バッファを取得 478 pBuffer=MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]+478 pBuffer=MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]+ 479 479 sizeof(BITMAPINFOHEADER)+ 480 480 sizeof(DWORD)*(int)pow((double)2,(double)pBmpInfoHdr->biBitCount); … … 567 567 568 568 if(x<0||y<0) return; 569 if(x>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biWidth||570 y>=MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]->biHeight/2)569 if(x>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biWidth|| 570 y>=MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]->biHeight/2) 571 571 return; 572 572 … … 676 676 pRect->right, 677 677 pRect->bottom, 678 GetColorCode(WndNum,MdiInfo[WndNum] .MdiIconEditInfo->SubColor),679 GetColorCode(WndNum,MdiInfo[WndNum] .MdiIconEditInfo->SubColor),1);678 GetColorCode(WndNum,MdiInfo[WndNum]->MdiIconEditInfo->SubColor), 679 GetColorCode(WndNum,MdiInfo[WndNum]->MdiIconEditInfo->SubColor),1); 680 680 681 681 DrawIconToMemBmp(WndNum,0); 682 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hMain,NULL,0);682 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hMain,NULL,0); 683 683 } 684 684 … … 697 697 //以前の選択フレームを消去 698 698 BITMAPINFOHEADER *pBmpInfoHdr; 699 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum];699 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]; 700 700 pos.x=pBmpInfoHdr->biWidth; 701 701 pos.y=pBmpInfoHdr->biHeight/2; 702 702 GetZoomedPos(&pos); 703 BitBlt(hdc,0,0,pos.x,pos.y,MdiInfo[WndNum] .MdiIconEditInfo->memdc,0,0,SRCCOPY);703 BitBlt(hdc,0,0,pos.x,pos.y,MdiInfo[WndNum]->MdiIconEditInfo->memdc,0,0,SRCCOPY); 704 704 705 705 … … 735 735 RECT rect; 736 736 737 rect.left=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.left*PIXEL_WIDTH+ZOOMED_XPOS;738 rect.top=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.top*PIXEL_WIDTH;739 rect.right=(MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.right+1)*PIXEL_WIDTH+ZOOMED_XPOS+1;740 rect.bottom=(MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.bottom+1)*PIXEL_WIDTH+1;737 rect.left=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left*PIXEL_WIDTH+ZOOMED_XPOS; 738 rect.top=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top*PIXEL_WIDTH; 739 rect.right=(MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.right+1)*PIXEL_WIDTH+ZOOMED_XPOS+1; 740 rect.bottom=(MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.bottom+1)*PIXEL_WIDTH+1; 741 741 742 742 SetBkMode(hdc,TRANSPARENT); … … 810 810 COLORREF *pSelectingBuffer; 811 811 812 GetObject(MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp,sizeof(BITMAP),&Bitmap);812 GetObject(MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp,sizeof(BITMAP),&Bitmap); 813 813 pSelectingBuffer=(COLORREF *)HeapAlloc(hHeap,0,Bitmap.bmWidth*Bitmap.bmHeight*sizeof(COLORREF)); 814 814 SelectingBitmapInfo.bmiHeader.biSize=sizeof(BITMAPINFOHEADER); … … 818 818 SelectingBitmapInfo.bmiHeader.biBitCount=32; 819 819 SelectingBitmapInfo.bmiHeader.biCompression=BI_RGB; 820 GetDIBits(MdiInfo[WndNum] .MdiIconEditInfo->memdc,821 MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp,820 GetDIBits(MdiInfo[WndNum]->MdiIconEditInfo->memdc, 821 MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp, 822 822 0,Bitmap.bmHeight, 823 823 pSelectingBuffer,&SelectingBitmapInfo,DIB_RGB_COLORS); … … 855 855 RECT rect; 856 856 857 pos.x=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.left;858 pos.y=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.top;857 pos.x=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left; 858 pos.y=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top; 859 859 GetZoomedPos(&pos); 860 860 rect.left=pos.x; 861 861 rect.top=pos.y; 862 pos.x=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.right+1;863 pos.y=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.bottom+1;862 pos.x=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.right+1; 863 pos.y=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.bottom+1; 864 864 GetZoomedPos(&pos); 865 865 rect.right=pos.x; … … 878 878 POINT pos; 879 879 880 size.cx=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.right-MdiInfo[WndNum].MdiIconEditInfo->DraggingRect.left;881 size.cy=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.bottom-MdiInfo[WndNum].MdiIconEditInfo->DraggingRect.top;882 hDC2=CreateCompatibleDC(MdiInfo[WndNum] .MdiIconEditInfo->memdc);883 SelectObject(hDC2,MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);880 size.cx=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.right-MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left; 881 size.cy=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.bottom-MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top; 882 hDC2=CreateCompatibleDC(MdiInfo[WndNum]->MdiIconEditInfo->memdc); 883 SelectObject(hDC2,MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 884 884 BitBlt(hdc, 885 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.left,886 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.top,885 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left, 886 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top, 887 887 size.cx,size.cy, 888 888 hDC2,0,0,SRCCOPY); … … 890 890 891 891 //拡大選択イメージを表示 892 pos.x=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.left;893 pos.y=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.top;892 pos.x=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left; 893 pos.y=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top; 894 894 DrawZoomedBitmap(hdc,WndNum,&pos); 895 895 } … … 1140 1140 if(message==WM_LBUTTONDOWN){ 1141 1141 dwDrag=1; 1142 MainClrRef=MdiInfo[WndNum] .MdiIconEditInfo->MainColor;1143 SubClrRef=MdiInfo[WndNum] .MdiIconEditInfo->SubColor;1142 MainClrRef=MdiInfo[WndNum]->MdiIconEditInfo->MainColor; 1143 SubClrRef=MdiInfo[WndNum]->MdiIconEditInfo->SubColor; 1144 1144 } 1145 1145 else{ 1146 1146 dwDrag=2; 1147 MainClrRef=MdiInfo[WndNum] .MdiIconEditInfo->SubColor;1148 SubClrRef=MdiInfo[WndNum] .MdiIconEditInfo->MainColor;1149 } 1150 1151 if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_SELECT){1147 MainClrRef=MdiInfo[WndNum]->MdiIconEditInfo->SubColor; 1148 SubClrRef=MdiInfo[WndNum]->MdiIconEditInfo->MainColor; 1149 } 1150 1151 if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_SELECT){ 1152 1152 if(dwDrag==2){ 1153 1153 dwDrag=0; … … 1156 1156 } 1157 1157 1158 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel){1158 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel){ 1159 1159 NowDragging=IconEdit_GetStateOfDraggingFrame(WndNum,LOWORD(lParam),HIWORD(lParam)); 1160 1160 if(NowDragging==0){ 1161 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==1){1162 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=0;1161 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==1){ 1162 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=0; 1163 1163 InvalidateRect(hwnd,NULL,0); 1164 1164 } 1165 else if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==2)1165 else if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==2) 1166 1166 IconEdit_PasteImage(WndNum); 1167 1167 … … 1169 1169 } 1170 1170 else if(NowDragging==FRAME_INSIDE){ 1171 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==1){1171 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==1){ 1172 1172 IconEdit_SelectImage(WndNum); 1173 IconEdit_EraseRect(WndNum,&MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect);1173 IconEdit_EraseRect(WndNum,&MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect); 1174 1174 } 1175 1175 1176 OldRect=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect;1176 OldRect=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect; 1177 1177 } 1178 1178 } … … 1185 1185 InvalidateRect(hwnd,NULL,0); 1186 1186 } 1187 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_PEN){1187 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_PEN){ 1188 1188 //変更情報 1189 1189 IconEdit_NoticeChanging(WndNum); … … 1201 1201 SetCursor(LoadCursor(hResInst,MAKEINTRESOURCE(IDC_CURSOR_PEN))); 1202 1202 } 1203 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_FILL){1203 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILL){ 1204 1204 //変更情報 1205 1205 IconEdit_NoticeChanging(WndNum); … … 1216 1216 SetCursor(LoadCursor(hResInst,MAKEINTRESOURCE(IDC_CURSOR_FILL))); 1217 1217 } 1218 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_LINE||1219 MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_RECTANGLE||1220 MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT||1221 MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT2||1222 MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_ELLIPSE){1218 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_LINE|| 1219 MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_RECTANGLE|| 1220 MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT|| 1221 MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT2|| 1222 MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_ELLIPSE){ 1223 1223 hdc=GetDC(hwnd); 1224 1224 TempLine(hdc,WndNum,pos.x,pos.y,pos.x,pos.y,MainClrRef); … … 1242 1242 1243 1243 if(dwDrag==1){ 1244 MainClrRef=MdiInfo[WndNum] .MdiIconEditInfo->MainColor;1245 SubClrRef=MdiInfo[WndNum] .MdiIconEditInfo->SubColor;1244 MainClrRef=MdiInfo[WndNum]->MdiIconEditInfo->MainColor; 1245 SubClrRef=MdiInfo[WndNum]->MdiIconEditInfo->SubColor; 1246 1246 } 1247 1247 else{ 1248 MainClrRef=MdiInfo[WndNum] .MdiIconEditInfo->SubColor;1249 SubClrRef=MdiInfo[WndNum] .MdiIconEditInfo->MainColor;1248 MainClrRef=MdiInfo[WndNum]->MdiIconEditInfo->SubColor; 1249 SubClrRef=MdiInfo[WndNum]->MdiIconEditInfo->MainColor; 1250 1250 } 1251 1251 … … 1254 1254 1255 1255 bRedrawMemBmp=0; 1256 if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_SELECT){1256 if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_SELECT){ 1257 1257 if(NowDragging==SELECTING_FRAME){ 1258 1258 if(LastPos.x==pos.x&&LastPos.y==pos.y){ … … 1265 1265 rect.bottom=pos.y; 1266 1266 1267 RectNaturalFormat(&rect,&MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect);1268 LimitRectFormat(WndNum,&MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect);1269 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=1;1267 RectNaturalFormat(&rect,&MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect); 1268 LimitRectFormat(WndNum,&MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect); 1269 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=1; 1270 1270 InvalidateRect(hwnd,NULL,0); 1271 1271 } … … 1273 1273 InvalidateRect(hwnd,NULL,0); 1274 1274 } 1275 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_LINE){1275 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_LINE){ 1276 1276 //変更情報 1277 1277 IconEdit_NoticeChanging(WndNum); … … 1281 1281 bRedrawMemBmp=1; 1282 1282 } 1283 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_RECTANGLE){1283 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_RECTANGLE){ 1284 1284 //変更情報 1285 1285 IconEdit_NoticeChanging(WndNum); … … 1289 1289 bRedrawMemBmp=1; 1290 1290 } 1291 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT){1291 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT){ 1292 1292 //変更情報 1293 1293 IconEdit_NoticeChanging(WndNum); … … 1299 1299 bRedrawMemBmp=1; 1300 1300 } 1301 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT2){1301 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT2){ 1302 1302 //変更情報 1303 1303 IconEdit_NoticeChanging(WndNum); … … 1309 1309 bRedrawMemBmp=1; 1310 1310 } 1311 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_ELLIPSE){1311 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_ELLIPSE){ 1312 1312 //変更情報 1313 1313 IconEdit_NoticeChanging(WndNum); … … 1337 1337 1338 1338 if(dwDrag==1){ 1339 MainClrRef=MdiInfo[WndNum] .MdiIconEditInfo->MainColor;1340 SubClrRef=MdiInfo[WndNum] .MdiIconEditInfo->SubColor;1339 MainClrRef=MdiInfo[WndNum]->MdiIconEditInfo->MainColor; 1340 SubClrRef=MdiInfo[WndNum]->MdiIconEditInfo->SubColor; 1341 1341 } 1342 1342 else{ 1343 MainClrRef=MdiInfo[WndNum] .MdiIconEditInfo->SubColor;1344 SubClrRef=MdiInfo[WndNum] .MdiIconEditInfo->MainColor;1343 MainClrRef=MdiInfo[WndNum]->MdiIconEditInfo->SubColor; 1344 SubClrRef=MdiInfo[WndNum]->MdiIconEditInfo->MainColor; 1345 1345 } 1346 1346 1347 1347 if(dwDrag){ 1348 if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_SELECT){1348 if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_SELECT){ 1349 1349 if(NowDragging==SELECTING_FRAME){ 1350 1350 //範囲選択中 … … 1361 1361 dx=pos.x-LastPos.x; 1362 1362 dy=pos.y-LastPos.y; 1363 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.left+=dx;1364 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.right+=dx;1365 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.top+=dy;1366 MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.bottom+=dy;1363 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left+=dx; 1364 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.right+=dx; 1365 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top+=dy; 1366 MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.bottom+=dy; 1367 1367 LastPos=pos; 1368 1368 … … 1376 1376 1377 1377 hRgn=CreateRectRgnIndirect(&OldRect); 1378 hRgn2=CreateRectRgnIndirect(&MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect);1378 hRgn2=CreateRectRgnIndirect(&MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect); 1379 1379 CombineRgn(hRgn,hRgn,hRgn2,RGN_XOR); 1380 1380 DeleteObject(hRgn2); … … 1394 1394 DeleteObject(hRgn2); 1395 1395 1396 p2.x=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.left;1397 p2.y=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.top;1396 p2.x=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.left; 1397 p2.y=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.top; 1398 1398 GetZoomedPos(&p2); 1399 1399 rect.left=p2.x; 1400 1400 rect.top=p2.y; 1401 p2.x=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.right;1402 p2.y=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect.bottom;1401 p2.x=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.right; 1402 p2.y=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect.bottom; 1403 1403 GetZoomedPos(&p2); 1404 1404 rect.right=p2.x+1; … … 1415 1415 ReleaseDC(hwnd,hdc); 1416 1416 1417 OldRect=MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect;1417 OldRect=MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect; 1418 1418 } 1419 1419 } 1420 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_PEN){1420 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_PEN){ 1421 1421 if(abs(pos.x-LastPos.x)>1||abs(pos.y-LastPos.y)>1){ 1422 1422 IconEdit_DrawLine(WndNum,LastPos.x,LastPos.y,pos.x,pos.y,GetColorCode(WndNum,MainClrRef)); … … 1442 1442 LastPos=pos; 1443 1443 } 1444 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_LINE){1444 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_LINE){ 1445 1445 InvalidateRect(hwnd,NULL,0); 1446 1446 UpdateWindow(hwnd); … … 1450 1450 ReleaseDC(hwnd,hdc); 1451 1451 } 1452 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_RECTANGLE){1452 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_RECTANGLE){ 1453 1453 InvalidateRect(hwnd,NULL,0); 1454 1454 UpdateWindow(hwnd); … … 1458 1458 ReleaseDC(hwnd,hdc); 1459 1459 } 1460 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT){1460 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT){ 1461 1461 InvalidateRect(hwnd,NULL,0); 1462 1462 UpdateWindow(hwnd); … … 1468 1468 ReleaseDC(hwnd,hdc); 1469 1469 } 1470 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT2){1470 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT2){ 1471 1471 InvalidateRect(hwnd,NULL,0); 1472 1472 UpdateWindow(hwnd); … … 1478 1478 ReleaseDC(hwnd,hdc); 1479 1479 } 1480 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_ELLIPSE){1480 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_ELLIPSE){ 1481 1481 InvalidateRect(hwnd,NULL,0); 1482 1482 UpdateWindow(hwnd); … … 1489 1489 else{ 1490 1490 //ドラッグ中でないとき 1491 if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_SELECT){1492 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel)1491 if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_SELECT){ 1492 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel) 1493 1493 SetCursorByState(IconEdit_GetStateOfDraggingFrame(WndNum,LOWORD(lParam),HIWORD(lParam))); 1494 1494 else 1495 1495 SetCursor(LoadCursor(NULL,IDC_CROSS)); 1496 1496 } 1497 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_PEN)1497 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_PEN) 1498 1498 SetCursor(LoadCursor(hResInst,MAKEINTRESOURCE(IDC_CURSOR_PEN))); 1499 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_FILL)1499 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILL) 1500 1500 SetCursor(LoadCursor(hResInst,MAKEINTRESOURCE(IDC_CURSOR_FILL))); 1501 else if(MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_LINE||1502 MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_RECTANGLE||1503 MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT||1504 MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT2||1505 MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_ELLIPSE){1501 else if(MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_LINE|| 1502 MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_RECTANGLE|| 1503 MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT|| 1504 MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_FILLRECT2|| 1505 MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_ELLIPSE){ 1506 1506 SetCursor(LoadCursor(NULL,IDC_CROSS)); 1507 1507 } … … 1512 1512 case VK_ESCAPE: 1513 1513 WndNum=GetWndNum(GetParent(hwnd)); 1514 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==2){1515 DeleteObject(MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);1516 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=0;1514 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==2){ 1515 DeleteObject(MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 1516 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=0; 1517 1517 } 1518 1518 InvalidateRect(hwnd,NULL,0); … … 1526 1526 WndNum=GetWndNum(GetParent(hwnd)); 1527 1527 BITMAPINFOHEADER *pBmpInfoHdr; 1528 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum];1528 pBmpInfoHdr=(BITMAPINFOHEADER *)MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]; 1529 1529 1530 1530 hdc=BeginPaint(hwnd,&ps); … … 1537 1537 size.cx, 1538 1538 size.cy, 1539 MdiInfo[WndNum] .MdiIconEditInfo->memdc,0,0,SRCCOPY);1539 MdiInfo[WndNum]->MdiIconEditInfo->memdc,0,0,SRCCOPY); 1540 1540 1541 1541 HBRUSH hOldBrush; … … 1550 1550 PATCOPY); 1551 1551 1552 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==1)1552 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==1) 1553 1553 IconEdit_DrawSelectingRect(hdc,WndNum); 1554 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==2){1554 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==2){ 1555 1555 DrawSelectingImage(hdc,WndNum); 1556 1556 if(dwDrag==0) IconEdit_DrawSelectingRect(hdc,WndNum); -
trunk/ab5.0/abdev/abdev/IconEditor_Tool.cpp
r625 r629 80 80 WndNum=GetWndNum(GetParent(GetParent(hwnd))); 81 81 if(LOWORD(wParam)!=IDC_TOOL_SELECT&& 82 MdiInfo[WndNum] .MdiIconEditInfo->NowTool==IDC_TOOL_SELECT){83 MdiInfo[WndNum] .MdiIconEditInfo->NowTool=LOWORD(wParam);84 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel){85 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==2)86 DeleteObject(MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);87 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=0;82 MdiInfo[WndNum]->MdiIconEditInfo->NowTool==IDC_TOOL_SELECT){ 83 MdiInfo[WndNum]->MdiIconEditInfo->NowTool=LOWORD(wParam); 84 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel){ 85 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==2) 86 DeleteObject(MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 87 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=0; 88 88 } 89 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hMain,NULL,0);89 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hMain,NULL,0); 90 90 } 91 else MdiInfo[WndNum] .MdiIconEditInfo->NowTool=LOWORD(wParam);91 else MdiInfo[WndNum]->MdiIconEditInfo->NowTool=LOWORD(wParam); 92 92 return 1; 93 93 } … … 116 116 117 117 memset(bExist,0,sizeof(BOOL)*4); 118 for(i=0;i<MdiInfo[WndNum] .MdiIconEditInfo->num;i++){119 if(MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[i]->biWidth==16&&120 MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[i]->biBitCount==4){118 for(i=0;i<MdiInfo[WndNum]->MdiIconEditInfo->num;i++){ 119 if(MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[i]->biWidth==16&& 120 MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[i]->biBitCount==4){ 121 121 bExist[0]=1; 122 122 } 123 if(MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[i]->biWidth==16&&124 MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[i]->biBitCount==8){123 if(MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[i]->biWidth==16&& 124 MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[i]->biBitCount==8){ 125 125 bExist[1]=1; 126 126 } 127 if(MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[i]->biWidth==32&&128 MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[i]->biBitCount==4){127 if(MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[i]->biWidth==32&& 128 MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[i]->biBitCount==4){ 129 129 bExist[2]=1; 130 130 } 131 if(MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[i]->biWidth==32&&132 MdiInfo[WndNum] .MdiIconEditInfo->pBmpHdr[i]->biBitCount==8){131 if(MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[i]->biWidth==32&& 132 MdiInfo[WndNum]->MdiIconEditInfo->pBmpHdr[i]->biBitCount==8){ 133 133 bExist[3]=1; 134 134 } … … 196 196 DeleteIconType(WndNum); 197 197 198 if(MdiInfo[WndNum] .MdiIconEditInfo->num<=1)198 if(MdiInfo[WndNum]->MdiIconEditInfo->num<=1) 199 199 EnableWindow(GetDlgItem(hwnd,IDC_DELETE_ICONTYPE),0); 200 200 return 1; … … 204 204 205 205 //イメージ選択用のメモリを解放 206 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==2)207 DeleteObject(MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);208 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=0;209 210 MdiInfo[WndNum] .MdiIconEditInfo->SelectIconNum=206 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==2) 207 DeleteObject(MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 208 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=0; 209 210 MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum= 211 211 SendDlgItemMessage(hwnd,IDC_ICONTYPECOMBO,CB_GETCURSEL,0,0); 212 212 213 213 HBRUSH hOldBrush; 214 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,GetStockObject(WHITE_BRUSH));215 PatBlt(MdiInfo[WndNum] .MdiIconEditInfo->memdc,0,0,400,400,PATCOPY);216 SelectObject(MdiInfo[WndNum] .MdiIconEditInfo->memdc,hOldBrush);214 hOldBrush=(HBRUSH)SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,GetStockObject(WHITE_BRUSH)); 215 PatBlt(MdiInfo[WndNum]->MdiIconEditInfo->memdc,0,0,400,400,PATCOPY); 216 SelectObject(MdiInfo[WndNum]->MdiIconEditInfo->memdc,hOldBrush); 217 217 DrawIconToMemBmp(WndNum,0); 218 218 219 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hMain,NULL,1);220 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hColorDlg,NULL,0);219 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hMain,NULL,1); 220 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hColorDlg,NULL,0); 221 221 } 222 222 return 1; -
trunk/ab5.0/abdev/abdev/IconEditor_UndoRedo.cpp
r625 r629 8 8 ICONEDIT_UNDOSTATE *pUndoState; 9 9 10 pUndoState=&MdiInfo[WndNum] .MdiIconEditInfo->undo[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum];10 pUndoState=&MdiInfo[WndNum]->MdiIconEditInfo->undo[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]; 11 11 12 12 i=pUndoState->NowPos-1; … … 18 18 pUndoState->NowPos=i; 19 19 20 pByte=MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum];21 MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]=20 pByte=MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]; 21 MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]= 22 22 pUndoState->lpData[i]; 23 23 pUndoState->lpData[i]=pByte; 24 24 25 25 //選択フレームを消去 26 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==2){27 DeleteObject(MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);28 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=0;26 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==2){ 27 DeleteObject(MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 28 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=0; 29 29 } 30 30 31 31 //再描画 32 32 DrawIconToMemBmp(WndNum,0); 33 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hMain,NULL,0);33 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hMain,NULL,0); 34 34 35 MdiInfo[WndNum] .MdiIconEditInfo->bModify=1;35 MdiInfo[WndNum]->MdiIconEditInfo->bModify=1; 36 36 37 37 //メニューを有効化 … … 42 42 ICONEDIT_UNDOSTATE *pUndoState; 43 43 44 pUndoState=&MdiInfo[WndNum] .MdiIconEditInfo->undo[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum];44 pUndoState=&MdiInfo[WndNum]->MdiIconEditInfo->undo[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]; 45 45 46 46 if(!pUndoState->lpData[pUndoState->NowPos]){ … … 49 49 } 50 50 51 pByte=MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum];52 MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]=51 pByte=MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]; 52 MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]= 53 53 pUndoState->lpData[pUndoState->NowPos]; 54 54 pUndoState->lpData[pUndoState->NowPos]=pByte; 55 55 56 56 DrawIconToMemBmp(WndNum,0); 57 InvalidateRect(MdiInfo[WndNum] .MdiIconEditInfo->hMain,NULL,0);57 InvalidateRect(MdiInfo[WndNum]->MdiIconEditInfo->hMain,NULL,0); 58 58 59 59 pUndoState->NowPos++; 60 60 if(pUndoState->NowPos==MAX_ICONEDIT_UNDONUM) pUndoState->NowPos=0; 61 61 62 MdiInfo[WndNum] .MdiIconEditInfo->bModify=1;62 MdiInfo[WndNum]->MdiIconEditInfo->bModify=1; 63 63 64 64 ResetState_UndoMenu(); … … 69 69 ICONEDIT_UNDOSTATE *pUndoState; 70 70 71 pUndoState=&MdiInfo[WndNum] .MdiIconEditInfo->undo[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum];71 pUndoState=&MdiInfo[WndNum]->MdiIconEditInfo->undo[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]; 72 72 73 73 //Redoされた場合の不要なデータを削除する … … 80 80 81 81 pUndoState->lpData[pUndoState->NowPos]=(BYTE *) 82 HeapAlloc(hHeap,0,MdiInfo[WndNum] .MdiIconEditInfo->dwBytesInRes[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]);82 HeapAlloc(hHeap,0,MdiInfo[WndNum]->MdiIconEditInfo->dwBytesInRes[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]); 83 83 84 84 memcpy(pUndoState->lpData[pUndoState->NowPos], 85 MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum],86 MdiInfo[WndNum] .MdiIconEditInfo->dwBytesInRes[MdiInfo[WndNum].MdiIconEditInfo->SelectIconNum]);85 MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum], 86 MdiInfo[WndNum]->MdiIconEditInfo->dwBytesInRes[MdiInfo[WndNum]->MdiIconEditInfo->SelectIconNum]); 87 87 88 88 pUndoState->NowPos++; … … 94 94 } 95 95 96 MdiInfo[WndNum] .MdiIconEditInfo->bModify=1;96 MdiInfo[WndNum]->MdiIconEditInfo->bModify=1; 97 97 98 98 ResetState_UndoMenu(); -
trunk/ab5.0/abdev/abdev/MenuProc.cpp
r626 r629 121 121 // ウィンドウ プロパティを更新 122 122 for(i=0;i<MdiInfo.size();i++){ 123 if(MdiInfo[i] .hwnd&&MdiInfo[i].DocType==WNDTYPE_RAD){124 if(MdiInfo[i] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW)125 ChangePropertyWindow(i,GetWndInfoNum(MdiInfo[i] .path));123 if(MdiInfo[i]->hwnd&&MdiInfo[i]->DocType==WNDTYPE_RAD){ 124 if(MdiInfo[i]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) 125 ChangePropertyWindow(i,GetWndInfoNum(MdiInfo[i]->path)); 126 126 } 127 127 } … … 135 135 //ウィンドウが開かれている場合は閉じる 136 136 for(i=0;i<MdiInfo.size();i++){ 137 if(MdiInfo[i] .hwnd&&lstrcmpi(projectInfo.pMenuInfo[MenuInfoNum].IdName,MdiInfo[i].path.c_str())==0){138 SendMessage(MdiInfo[i] .hwnd,WM_CLOSE,0,0);137 if(MdiInfo[i]->hwnd&&lstrcmpi(projectInfo.pMenuInfo[MenuInfoNum].IdName,MdiInfo[i]->path.c_str())==0){ 138 SendMessage(MdiInfo[i]->hwnd,WM_CLOSE,0,0); 139 139 break; 140 140 } … … 165 165 // ウィンドウ プロパティを更新 166 166 for(i=0;i<MdiInfo.size();i++){ 167 if(MdiInfo[i] .hwnd&&MdiInfo[i].DocType==WNDTYPE_RAD){168 if(MdiInfo[i] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW)169 ChangePropertyWindow(i,GetWndInfoNum(MdiInfo[i] .path.c_str()));167 if(MdiInfo[i]->hwnd&&MdiInfo[i]->DocType==WNDTYPE_RAD){ 168 if(MdiInfo[i]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) 169 ChangePropertyWindow(i,GetWndInfoNum(MdiInfo[i]->path.c_str())); 170 170 } 171 171 } … … 199 199 while(hChild){ 200 200 i=GetWndNum(hChild); 201 if(MdiInfo[i] .DocType==WNDTYPE_MENU){202 if(lstrcmpi(MdiInfo[i] .path.c_str(),pMenuInfo->IdName)==0) break;201 if(MdiInfo[i]->DocType==WNDTYPE_MENU){ 202 if(lstrcmpi(MdiInfo[i]->path.c_str(),pMenuInfo->IdName)==0) break; 203 203 } 204 204 hChild=GetNextWindow(hChild,GW_HWNDNEXT); … … 228 228 229 229 mdic.lParam=0; 230 mdic.style |= WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_SYSMENU | WS_CAPTION | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX; 230 231 hChild=(HWND)SendMessage(hClient,WM_MDICREATE,0,(long)&mdic); //ウィンドウ作成 231 232 … … 248 249 249 250 //ウィンドウのID登録 250 MdiInfo.push_back( MDIINFO() );251 MdiInfo.push_back( new MDIINFO() ); 251 252 i = MdiInfo.size()-1; 252 MdiInfo[i] .hwnd=hChild;253 MdiInfo[i] .DocType=WNDTYPE_MENU;254 MdiInfo[i] .title = pMenuInfo->IdName;255 MdiInfo[i] .path = pMenuInfo->IdName;253 MdiInfo[i]->hwnd=hChild; 254 MdiInfo[i]->DocType=WNDTYPE_MENU; 255 MdiInfo[i]->title = pMenuInfo->IdName; 256 MdiInfo[i]->path = pMenuInfo->IdName; 256 257 257 258 … … 259 260 //MENU ウィンドウ情報 260 261 261 MdiInfo[i] .MdiMenuInfo=(MDIMENUINFO *)GlobalAlloc(GPTR,sizeof(MDIMENUINFO));262 263 MdiInfo[i] .MdiMenuInfo->hList=hListWnd;264 265 MdiInfo[i] .MdiMenuInfo->hMenuEdit=hMenuEdit;266 MdiInfo[i] .MdiMenuInfo->hEdit_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_PROJECT_MENUEDIT),hMenuEdit,(DLGPROC)MenuEditDlg);262 MdiInfo[i]->MdiMenuInfo=(MDIMENUINFO *)GlobalAlloc(GPTR,sizeof(MDIMENUINFO)); 263 264 MdiInfo[i]->MdiMenuInfo->hList=hListWnd; 265 266 MdiInfo[i]->MdiMenuInfo->hMenuEdit=hMenuEdit; 267 MdiInfo[i]->MdiMenuInfo->hEdit_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_PROJECT_MENUEDIT),hMenuEdit,(DLGPROC)MenuEditDlg); 267 268 268 269 SCROLLINFO ScrollInfo; … … 270 271 ScrollInfo.fMask=SIF_POS; 271 272 ScrollInfo.nPos=0; 272 SetScrollInfo(MdiInfo[i] .MdiMenuInfo->hMenuEdit,SB_VERT,&ScrollInfo,1);273 SetScrollInfo(MdiInfo[i]->MdiMenuInfo->hMenuEdit,SB_VERT,&ScrollInfo,1); 273 274 274 275 SendMessage(hListWnd,LB_RESETCONTENT,0,0); … … 282 283 //ウィンドウ位置を初期化 283 284 GetClientRect(hChild,&rect); 284 MoveWindow(MdiInfo[i] .MdiMenuInfo->hMenuEdit,0,0,172,rect.bottom,1);285 MoveWindow(MdiInfo[i] .MdiMenuInfo->hList,172,0,rect.right-172,rect.bottom,1);285 MoveWindow(MdiInfo[i]->MdiMenuInfo->hMenuEdit,0,0,172,rect.bottom,1); 286 MoveWindow(MdiInfo[i]->MdiMenuInfo->hList,172,0,rect.right-172,rect.bottom,1); 286 287 287 288 //Docコンボボックスに追加 … … 334 335 SetPosCenter(hwnd); 335 336 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 336 GetDlgItemText(MdiInfo[i] .MdiMenuInfo->hEdit_Dlg,IDC_IDNAME,temporary,MAX_PATH);337 GetDlgItemText(MdiInfo[i]->MdiMenuInfo->hEdit_Dlg,IDC_IDNAME,temporary,MAX_PATH); 337 338 SetDlgItemText(hwnd,IDC_IDNAME,temporary); 338 GetDlgItemText(MdiInfo[i] .MdiMenuInfo->hEdit_Dlg,IDC_CAPTION,temporary,MAX_PATH);339 GetDlgItemText(MdiInfo[i]->MdiMenuInfo->hEdit_Dlg,IDC_CAPTION,temporary,MAX_PATH); 339 340 SetDlgItemText(hwnd,IDC_CAPTION,temporary); 340 341 … … 396 397 WndNum=GetWndNum(GetParent(GetParent(hwnd))); 397 398 if(WndNum==-1) return 1; 398 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum] .path);399 400 i4=SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_GETCURSEL,0,0);399 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum]->path); 400 401 i4=SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_GETCURSEL,0,0); 401 402 if(i4==LB_ERR) return 1; 402 403 i2=0; … … 410 411 if(!pMenuInfo->pMenuInfo){ 411 412 //ID 412 SetDlgItemText(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_IDNAME,pMenuInfo->IdName);413 SetDlgItemText(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_IDNAME,pMenuInfo->IdName); 413 414 } 414 415 415 416 //キャプション 416 SetDlgItemText(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_CAPTION,pMenuInfo->caption);417 SetDlgItemText(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_CAPTION,pMenuInfo->caption); 417 418 418 419 //リストへキャプションを反映 419 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_DELETESTRING,i4,0);420 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_DELETESTRING,i4,0); 420 421 memset(temporary,' ',i3*4); 421 422 lstrcpy(temporary+i3*4,pMenuInfo->caption); 422 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_INSERTSTRING,i4,(long)temporary);423 424 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_SETCURSEL,i4,0);423 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_INSERTSTRING,i4,(long)temporary); 424 425 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_SETCURSEL,i4,0); 425 426 projectInfo.ModifyOfMaterial=1; 426 427 return 1; … … 428 429 WndNum=GetWndNum(GetParent(GetParent(hwnd))); 429 430 if(WndNum==-1) return 1; 430 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum] .path);431 432 i4=SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_GETCURSEL,0,0);431 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum]->path); 432 433 i4=SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_GETCURSEL,0,0); 433 434 if(i4==LB_ERR) return 1; 434 435 i2=0; … … 446 447 447 448 for(i2=0;i2<i;i2++) 448 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_DELETESTRING,i4+1,0);449 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_DELETESTRING,i4+1,0); 449 450 450 451 HeapDefaultFree(pMenuInfo->pMenuInfo); … … 468 469 pMenuInfo->type=MFT_STRING; 469 470 } 470 SendMessage(MdiInfo[WndNum] .hwnd,WM_COMMAND,MAKELONG(0,LBN_SELCHANGE),(long)MdiInfo[WndNum].MdiMenuInfo->hList);471 SendMessage(MdiInfo[WndNum]->hwnd,WM_COMMAND,MAKELONG(0,LBN_SELCHANGE),(long)MdiInfo[WndNum]->MdiMenuInfo->hList); 471 472 projectInfo.ModifyOfMaterial=1; 472 473 return 1; … … 474 475 WndNum=GetWndNum(GetParent(GetParent(hwnd))); 475 476 if(WndNum==-1) return 1; 476 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum] .path);477 478 i4=SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_GETCURSEL,0,0);477 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum]->path); 478 479 i4=SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_GETCURSEL,0,0); 479 480 if(i4==LB_ERR) return 1; 480 481 i2=0; … … 490 491 pMenuInfo->type=MFT_SEPARATOR; 491 492 492 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_DELETESTRING,i4,0);493 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_DELETESTRING,i4,0); 493 494 memset(temporary,' ',i3*4); 494 495 lstrcpy(temporary+i3*4,"-"); 495 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_INSERTSTRING,i4,(long)temporary);496 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_INSERTSTRING,i4,(long)temporary); 496 497 } 497 498 else{ … … 504 505 pMenuInfo->type=MFT_STRING; 505 506 506 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_DELETESTRING,i4,0);507 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_DELETESTRING,i4,0); 507 508 memset(temporary,' ',i3*4); 508 509 lstrcpy(temporary+i3*4,pMenuInfo->caption); 509 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_INSERTSTRING,i4,(long)temporary);510 } 511 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_SETCURSEL,i4,0);512 SendMessage(MdiInfo[WndNum] .hwnd,WM_COMMAND,MAKELONG(0,LBN_SELCHANGE),(long)MdiInfo[WndNum].MdiMenuInfo->hList);510 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_INSERTSTRING,i4,(long)temporary); 511 } 512 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_SETCURSEL,i4,0); 513 SendMessage(MdiInfo[WndNum]->hwnd,WM_COMMAND,MAKELONG(0,LBN_SELCHANGE),(long)MdiInfo[WndNum]->MdiMenuInfo->hList); 513 514 return 1; 514 515 case IDC_CHECKED: 515 516 WndNum=GetWndNum(GetParent(GetParent(hwnd))); 516 517 if(WndNum==-1) return 1; 517 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum] .path);518 519 i4=SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_GETCURSEL,0,0);518 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum]->path); 519 520 i4=SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_GETCURSEL,0,0); 520 521 if(i4==LB_ERR) return 1; 521 522 i2=0; … … 534 535 WndNum=GetWndNum(GetParent(GetParent(hwnd))); 535 536 if(WndNum==-1) return 1; 536 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum] .path);537 538 i4=SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_GETCURSEL,0,0);537 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum]->path); 538 539 i4=SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_GETCURSEL,0,0); 539 540 if(i4==LB_ERR) return 1; 540 541 i2=0; … … 553 554 WndNum=GetWndNum(GetParent(GetParent(hwnd))); 554 555 if(WndNum==-1) return 1; 555 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum] .path);556 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum]->path); 556 557 557 558 if(projectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu==0){ … … 573 574 projectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu++; 574 575 575 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_INSERTSTRING,0,(long)pMenuInfo->caption);576 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_SETCURSEL,0,0);577 SendMessage(GetParent(MdiInfo[WndNum] .MdiMenuInfo->hMenuEdit),WM_COMMAND,MAKELONG(0,LBN_SELCHANGE),(long)MdiInfo[WndNum].MdiMenuInfo->hList);576 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_INSERTSTRING,0,(long)pMenuInfo->caption); 577 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_SETCURSEL,0,0); 578 SendMessage(GetParent(MdiInfo[WndNum]->MdiMenuInfo->hMenuEdit),WM_COMMAND,MAKELONG(0,LBN_SELCHANGE),(long)MdiInfo[WndNum]->MdiMenuInfo->hList); 578 579 } 579 580 else{ 580 i4=SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_GETCURSEL,0,0);581 i4=SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_GETCURSEL,0,0); 581 582 if(i4==LB_ERR){ 582 583 //"新しいメニュー アイテムの挿入位置を選択して下さい" … … 622 623 pMenuInfo->NumberOfMenu++; 623 624 624 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_INSERTSTRING,i4,(long)temporary);625 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_SETCURSEL,i4,0);626 SendMessage(GetParent(MdiInfo[WndNum] .MdiMenuInfo->hMenuEdit),WM_COMMAND,MAKELONG(0,LBN_SELCHANGE),(long)MdiInfo[WndNum].MdiMenuInfo->hList);625 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_INSERTSTRING,i4,(long)temporary); 626 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_SETCURSEL,i4,0); 627 SendMessage(GetParent(MdiInfo[WndNum]->MdiMenuInfo->hMenuEdit),WM_COMMAND,MAKELONG(0,LBN_SELCHANGE),(long)MdiInfo[WndNum]->MdiMenuInfo->hList); 627 628 } 628 629 projectInfo.ModifyOfMaterial=1; … … 631 632 WndNum=GetWndNum(GetParent(GetParent(hwnd))); 632 633 if(WndNum==-1) return 1; 633 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum] .path);634 635 i4=SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_GETCURSEL,0,0);634 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum]->path); 635 636 i4=SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_GETCURSEL,0,0); 636 637 if(i4==LB_ERR){ 637 638 //"削除するメニュー アイテムを選択して下さい" … … 664 665 665 666 for(i=0;i<i3;i++) 666 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_DELETESTRING,i4,0);667 668 i=SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_GETCOUNT,0,0)-1;667 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_DELETESTRING,i4,0); 668 669 i=SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_GETCOUNT,0,0)-1; 669 670 if(i){ 670 671 if(i<i4) i4=i; 671 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_SETCURSEL,i4,0);672 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_SETCURSEL,i4,0); 672 673 } 673 674 … … 677 678 WndNum=GetWndNum(GetParent(GetParent(hwnd))); 678 679 if(WndNum==-1) return 1; 679 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum] .path);680 681 i4=SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_GETCURSEL,0,0);680 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum]->path); 681 682 i4=SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_GETCURSEL,0,0); 682 683 if(i4==LB_ERR){ 683 684 //"移動するメニュー アイテムを選択して下さい" … … 695 696 memcpy(&pMenuInfo->pMenuInfo[i2+1],&tempMenuInfo,sizeof(MENU_INFO)); 696 697 697 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_RESETCONTENT,0,0);698 SetMenuDataList(MdiInfo[WndNum] .MdiMenuInfo->hList,&projectInfo.pMenuInfo[MenuInfoNum],0);698 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_RESETCONTENT,0,0); 699 SetMenuDataList(MdiInfo[WndNum]->MdiMenuInfo->hList,&projectInfo.pMenuInfo[MenuInfoNum],0); 699 700 if(!pMenuInfo->pMenuInfo[i2].pMenuInfo) 700 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_SETCURSEL,i4-1,0);701 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_SETCURSEL,i4-1,0); 701 702 702 703 projectInfo.ModifyOfMaterial=1; … … 705 706 WndNum=GetWndNum(GetParent(GetParent(hwnd))); 706 707 if(WndNum==-1) return 1; 707 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum] .path);708 709 i4=SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_GETCURSEL,0,0);708 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum]->path); 709 710 i4=SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_GETCURSEL,0,0); 710 711 if(i4==LB_ERR){ 711 712 //"移動するメニュー アイテムを選択して下さい" … … 722 723 memcpy(&pMenuInfo->pMenuInfo[i2+1],&tempMenuInfo,sizeof(MENU_INFO)); 723 724 724 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_RESETCONTENT,0,0);725 SetMenuDataList(MdiInfo[WndNum] .MdiMenuInfo->hList,&projectInfo.pMenuInfo[MenuInfoNum],0);725 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_RESETCONTENT,0,0); 726 SetMenuDataList(MdiInfo[WndNum]->MdiMenuInfo->hList,&projectInfo.pMenuInfo[MenuInfoNum],0); 726 727 if(!pMenuInfo->pMenuInfo[i2].pMenuInfo) 727 SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_SETCURSEL,i4+1,0);728 SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_SETCURSEL,i4+1,0); 728 729 729 730 projectInfo.ModifyOfMaterial=1; … … 770 771 ScrollInfo.fMask=SIF_PAGE|SIF_RANGE|SIF_POS; 771 772 GetScrollInfo(hwnd,SB_VERT,&ScrollInfo); 772 GetClientRect(MdiInfo[i] .MdiMenuInfo->hEdit_Dlg,&rect);773 GetClientRect(MdiInfo[i]->MdiMenuInfo->hEdit_Dlg,&rect); 773 774 ScrollInfo.nMin=0; 774 775 ScrollInfo.nMax=rect.bottom; … … 796 797 WndNum=GetWndNum(hwnd); 797 798 if(WndNum==-1) return 0; 798 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum] .path);799 if((HWND)lParam==MdiInfo[WndNum] .MdiMenuInfo->hList&&HIWORD(wParam)==LBN_SELCHANGE){800 i=SendMessage(MdiInfo[WndNum] .MdiMenuInfo->hList,LB_GETCURSEL,0,0);799 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum]->path); 800 if((HWND)lParam==MdiInfo[WndNum]->MdiMenuInfo->hList&&HIWORD(wParam)==LBN_SELCHANGE){ 801 i=SendMessage(MdiInfo[WndNum]->MdiMenuInfo->hList,LB_GETCURSEL,0,0); 801 802 i2=0; 802 803 i3=0; … … 805 806 806 807 if(pMenuInfo->pMenuInfo){ 807 SetDlgItemText(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_CAPTION,pMenuInfo->caption);808 SetDlgItemText(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_IDNAME,"");809 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_IDSTATIC),0);810 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_RENAME),1);811 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_POPUP),1);812 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR),0);813 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_CHECKED),1);814 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_DISABLED),1);815 SendDlgItemMessage(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_POPUP,BM_SETCHECK,BST_CHECKED,0);816 SendDlgItemMessage(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR,BM_SETCHECK,BST_UNCHECKED,0);808 SetDlgItemText(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_CAPTION,pMenuInfo->caption); 809 SetDlgItemText(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_IDNAME,""); 810 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_IDSTATIC),0); 811 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_RENAME),1); 812 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_POPUP),1); 813 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR),0); 814 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_CHECKED),1); 815 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_DISABLED),1); 816 SendDlgItemMessage(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_POPUP,BM_SETCHECK,BST_CHECKED,0); 817 SendDlgItemMessage(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR,BM_SETCHECK,BST_UNCHECKED,0); 817 818 } 818 819 else if(pMenuInfo->type==MFT_STRING){ 819 SetDlgItemText(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_CAPTION,pMenuInfo->caption);820 SetDlgItemText(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_IDNAME,pMenuInfo->IdName);821 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_IDSTATIC),1);822 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_CAPTIONSTATIC),1);823 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_RENAME),1);824 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_POPUP),1);825 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR),1);826 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_CHECKED),1);827 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_DISABLED),1);828 SendDlgItemMessage(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_POPUP,BM_SETCHECK,BST_UNCHECKED,0);829 SendDlgItemMessage(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR,BM_SETCHECK,BST_UNCHECKED,0);820 SetDlgItemText(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_CAPTION,pMenuInfo->caption); 821 SetDlgItemText(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_IDNAME,pMenuInfo->IdName); 822 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_IDSTATIC),1); 823 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_CAPTIONSTATIC),1); 824 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_RENAME),1); 825 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_POPUP),1); 826 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR),1); 827 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_CHECKED),1); 828 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_DISABLED),1); 829 SendDlgItemMessage(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_POPUP,BM_SETCHECK,BST_UNCHECKED,0); 830 SendDlgItemMessage(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR,BM_SETCHECK,BST_UNCHECKED,0); 830 831 } 831 832 else if(pMenuInfo->type==MFT_SEPARATOR){ 832 SetDlgItemText(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_CAPTION,"");833 SetDlgItemText(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_IDNAME,"");834 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_IDSTATIC),0);835 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_CAPTIONSTATIC),0);836 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_RENAME),0);837 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_POPUP),0);838 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR),1);839 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_CHECKED),0);840 EnableWindow(GetDlgItem(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_DISABLED),0);841 SendDlgItemMessage(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_POPUP,BM_SETCHECK,BST_UNCHECKED,0);842 SendDlgItemMessage(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR,BM_SETCHECK,BST_CHECKED,0);833 SetDlgItemText(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_CAPTION,""); 834 SetDlgItemText(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_IDNAME,""); 835 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_IDSTATIC),0); 836 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_CAPTIONSTATIC),0); 837 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_RENAME),0); 838 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_POPUP),0); 839 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR),1); 840 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_CHECKED),0); 841 EnableWindow(GetDlgItem(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_DISABLED),0); 842 SendDlgItemMessage(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_POPUP,BM_SETCHECK,BST_UNCHECKED,0); 843 SendDlgItemMessage(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_SEPARATOR,BM_SETCHECK,BST_CHECKED,0); 843 844 } 844 845 845 846 if(pMenuInfo->state&MFS_CHECKED) i2=BST_CHECKED; 846 847 else i2=BST_UNCHECKED; 847 SendDlgItemMessage(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_CHECKED,BM_SETCHECK,i2,0);848 SendDlgItemMessage(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_CHECKED,BM_SETCHECK,i2,0); 848 849 if(pMenuInfo->state&MFS_DISABLED) i2=BST_CHECKED; 849 850 else i2=BST_UNCHECKED; 850 SendDlgItemMessage(MdiInfo[WndNum] .MdiMenuInfo->hEdit_Dlg,IDC_DISABLED,BM_SETCHECK,i2,0);851 SendDlgItemMessage(MdiInfo[WndNum]->MdiMenuInfo->hEdit_Dlg,IDC_DISABLED,BM_SETCHECK,i2,0); 851 852 } 852 853 return 0; … … 856 857 if(i==-1) return 0; //ウィンドウが初期状態の場合 857 858 858 i=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[i] .title.c_str());859 i=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[i]->title.c_str()); 859 860 SendMessage(hDocCombo,CB_SETCURSEL,i,0); 860 861 SetStatusText(NULL); … … 864 865 WndNum=GetWndNum(hwnd); 865 866 if(WndNum==-1) break; 866 MoveWindow(MdiInfo[WndNum] .MdiMenuInfo->hMenuEdit,0,0,172,HIWORD(lParam),1);867 MoveWindow(MdiInfo[WndNum] .MdiMenuInfo->hList,172,0,LOWORD(lParam)-172,HIWORD(lParam),1);867 MoveWindow(MdiInfo[WndNum]->MdiMenuInfo->hMenuEdit,0,0,172,HIWORD(lParam),1); 868 MoveWindow(MdiInfo[WndNum]->MdiMenuInfo->hList,172,0,LOWORD(lParam)-172,HIWORD(lParam),1); 868 869 break; 869 870 case WM_CLOSE: -
trunk/ab5.0/abdev/abdev/MessageCallOperation.cpp
r625 r629 41 41 CallBackNameLen=pWindowInfo->GetCallbackName().size(); 42 42 43 buffer = ReadBuffer( projectInfo.GetWorkDir().GetPath() + pWindowInfo->GetSourceFileName () );43 buffer = ReadBuffer( projectInfo.GetWorkDir().GetPath() + pWindowInfo->GetSourceFileNameForOldVer( projectInfo.GetWorkDir().GetPath() ) ); 44 44 45 45 *num=0; … … 50 50 //メッセージ 51 51 *ppItemEventInfo=(ITEMEVENTINFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,sizeof(ITEMEVENTINFO)); 52 for(i=0,i4=0;;i++){ 53 if(buffer[i]=='\0') break;54 55 //注釈(複数行)56 if(buffer[i]=='/'&&buffer[i+1]=='*'){57 i+=2; 58 while(!(buffer[i]=='*'&&buffer[i+1]=='/')){59 if(buffer[i]=='\0'){60 i--;61 break;62 }63 i++;64 }65 continue;66 }67 68 if((buffer[i]=='\r'&&buffer[i+1]=='\n'&&buffer[i+2]!='\0')||i==0){69 if(buffer[i]=='\r'&&buffer[i+1]=='\n') i2=i+2;70 else i2=i; 71 while(buffer[i2]>='0'&&buffer[i2]<='9') i2++;72 while(buffer[i2]==' '||buffer[i2]=='\t') i2++;73 if(memicmp(buffer+i2,"Sub",3)==0&&(buffer[i2+3]==' '||buffer[i2+3]=='\t')){74 i2+=4;52 53 if( buffer ) 54 { 55 for(i=0,i4=0;;i++){ 56 if(buffer[i]=='\0') break; 57 58 //注釈(複数行) 59 if(buffer[i]=='/'&&buffer[i+1]=='*'){ 60 i+=2; 61 while(!(buffer[i]=='*'&&buffer[i+1]=='/')){ 62 if(buffer[i]=='\0'){ 63 i--; 64 break; 65 } 66 i++; 67 } 68 continue; 69 } 70 71 if((buffer[i]=='\r'&&buffer[i+1]=='\n'&&buffer[i+2]!='\0')||i==0){ 72 if(buffer[i]=='\r'&&buffer[i+1]=='\n') i2=i+2; 73 else i2=i; 74 while(buffer[i2]>='0'&&buffer[i2]<='9') i2++; 75 75 while(buffer[i2]==' '||buffer[i2]=='\t') i2++; 76 strncpy(temporary,buffer+i2,NameLen); 77 temporary[NameLen]=0; 78 if( pWindowInfo->GetName() == temporary && buffer[i2+NameLen] == '_' ){ 79 for(i2+=NameLen+1,i3=0;;i2++,i3++){ 80 if(!IsVariableChar(buffer[i2])){ 81 temporary[i3]=0; 82 break; 83 } 84 temporary[i3]=buffer[i2]; 85 } 86 i6=GetItemMessageInfo(WndInfoNum,temporary,temp2); 87 if(i6){ 88 //アイテムメッセージ(WM_COMMAND、WM_NOTIFY) 89 for(i5=0;;i5++){ 90 if((*ppItemEventInfo)[i5].IdName==0){ 91 *ppItemEventInfo=(ITEMEVENTINFO *)HeapReAlloc(hHeap,HEAP_ZERO_MEMORY,*ppItemEventInfo,(i4+2)*sizeof(ITEMEVENTINFO)); 92 (*ppItemEventInfo)[i4].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 93 lstrcpy((*ppItemEventInfo)[i4].IdName,temporary); 94 (*ppItemEventInfo)[i4].pEventNames=(char **)HeapAlloc(hHeap,0,1); 95 (*ppItemEventInfo)[i4].ClassID=i6; 96 i4++; 76 if(memicmp(buffer+i2,"Sub",3)==0&&(buffer[i2+3]==' '||buffer[i2+3]=='\t')){ 77 i2+=4; 78 while(buffer[i2]==' '||buffer[i2]=='\t') i2++; 79 strncpy(temporary,buffer+i2,NameLen); 80 temporary[NameLen]=0; 81 if( pWindowInfo->GetName() == temporary && buffer[i2+NameLen] == '_' ){ 82 for(i2+=NameLen+1,i3=0;;i2++,i3++){ 83 if(!IsVariableChar(buffer[i2])){ 84 temporary[i3]=0; 97 85 break; 98 86 } 99 if(lstrcmp((*ppItemEventInfo)[i5].IdName,temporary)==0) break;87 temporary[i3]=buffer[i2]; 100 88 } 101 (*ppItemEventInfo)[i5].pEventNames=(char **)HeapReAlloc(hHeap,0,(*ppItemEventInfo)[i5].pEventNames,((*ppItemEventInfo)[i5].EventNum+1)*sizeof(char *)); 102 (*ppItemEventInfo)[i5].pEventNames[(*ppItemEventInfo)[i5].EventNum]=(char *)HeapAlloc(hHeap,0,lstrlen(temp2)+1); 103 lstrcpy((*ppItemEventInfo)[i5].pEventNames[(*ppItemEventInfo)[i5].EventNum],temp2); 104 (*ppItemEventInfo)[i5].EventNum++; 89 i6=GetItemMessageInfo(WndInfoNum,temporary,temp2); 90 if(i6){ 91 //アイテムメッセージ(WM_COMMAND、WM_NOTIFY) 92 for(i5=0;;i5++){ 93 if((*ppItemEventInfo)[i5].IdName==0){ 94 *ppItemEventInfo=(ITEMEVENTINFO *)HeapReAlloc(hHeap,HEAP_ZERO_MEMORY,*ppItemEventInfo,(i4+2)*sizeof(ITEMEVENTINFO)); 95 (*ppItemEventInfo)[i4].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 96 lstrcpy((*ppItemEventInfo)[i4].IdName,temporary); 97 (*ppItemEventInfo)[i4].pEventNames=(char **)HeapAlloc(hHeap,0,1); 98 (*ppItemEventInfo)[i4].ClassID=i6; 99 i4++; 100 break; 101 } 102 if(lstrcmp((*ppItemEventInfo)[i5].IdName,temporary)==0) break; 103 } 104 (*ppItemEventInfo)[i5].pEventNames=(char **)HeapReAlloc(hHeap,0,(*ppItemEventInfo)[i5].pEventNames,((*ppItemEventInfo)[i5].EventNum+1)*sizeof(char *)); 105 (*ppItemEventInfo)[i5].pEventNames[(*ppItemEventInfo)[i5].EventNum]=(char *)HeapAlloc(hHeap,0,lstrlen(temp2)+1); 106 lstrcpy((*ppItemEventInfo)[i5].pEventNames[(*ppItemEventInfo)[i5].EventNum],temp2); 107 (*ppItemEventInfo)[i5].EventNum++; 108 } 109 else if(temporary[0]){ 110 //一般メッセージ 111 ppNames=(char **)HeapReAlloc(hHeap,0,ppNames,(*num+1)*sizeof(char *)); 112 ppNames[*num]=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 113 lstrcpy(ppNames[*num],temporary); 114 (*num)++; 115 } 105 116 } 106 else if(temporary[0]){ 107 //一般メッセージ 108 ppNames=(char **)HeapReAlloc(hHeap,0,ppNames,(*num+1)*sizeof(char *)); 109 ppNames[*num]=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 110 lstrcpy(ppNames[*num],temporary); 111 (*num)++; 117 } 118 if(memicmp(buffer+i2,"Function",8)==0&&(buffer[i2+8]==' '||buffer[i2+8]=='\t')){ 119 //[WndName]_WindowProcのみFunction定義 120 i2+=9; 121 while(buffer[i2]==' '||buffer[i2]=='\t') i2++; 122 if(memicmp(buffer+i2,pWindowInfo->GetCallbackName().c_str(),CallBackNameLen)==0&& 123 (buffer[i2+CallBackNameLen]==' '||buffer[i2+CallBackNameLen]=='\t'||buffer[i2+CallBackNameLen]=='(')){ 124 *pbAlways=1; 112 125 } 113 126 } 114 127 } 115 if(memicmp(buffer+i2,"Function",8)==0&&(buffer[i2+8]==' '||buffer[i2+8]=='\t')){ 116 //[WndName]_WindowProcのみFunction定義 117 i2+=9; 118 while(buffer[i2]==' '||buffer[i2]=='\t') i2++; 119 if(memicmp(buffer+i2,pWindowInfo->GetCallbackName().c_str(),CallBackNameLen)==0&& 120 (buffer[i2+CallBackNameLen]==' '||buffer[i2+CallBackNameLen]=='\t'||buffer[i2+CallBackNameLen]=='(')){ 121 *pbAlways=1; 122 } 123 } 124 } 125 } 126 HeapDefaultFree(buffer); 128 } 129 HeapDefaultFree(buffer); 130 } 127 131 128 132 return ppNames; … … 136 140 ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 137 141 138 hChild=OpenFileWithExtension( projectInfo.GetWorkDir().GetPath() + pWindowInfo->GetSourceFileName () );142 hChild=OpenFileWithExtension( projectInfo.GetWorkDir().GetPath() + pWindowInfo->GetSourceFileNameForOldVer( projectInfo.GetWorkDir().GetPath() ) ); 139 143 if(!hChild) return; 140 144 WndNum=GetWndNum(hChild); 141 145 142 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;146 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 143 147 144 148 for(i=0;;i++){ … … 195 199 TextEdit_SetSel(WndNum,i+2,i+i2); 196 200 } 197 SetFocus(MdiInfo[WndNum] .pMdiTextEdit->hEdit);201 SetFocus(MdiInfo[WndNum]->pMdiTextEdit->hEdit); 198 202 } 199 203 void InsertEventToList(HWND hList,int ItemNum,char *EventName,char *MessageName,char *OutLine){ … … 221 225 222 226 MaxCount=ListView_GetItemCount(hList); 223 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){227 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ 224 228 if(dwEventType==EVENTTYPE_DEFAULT){ 225 229 for(i=0;i<MaxCount;i++){ … … 296 300 sprintf(EventName,"%s_%s_%s", 297 301 pWindowInfo->GetName().c_str(), 298 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->GetName().c_str(),302 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->GetName().c_str(), 299 303 temporary); 300 304 break; … … 303 307 if(i==MaxCount) return 0; 304 308 305 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW){309 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW){ 306 310 //ListView 307 311 if(i==0) lstrcpy(Parameter,"ByRef nmListView As NMLISTVIEW"); … … 327 331 else if(i==20) lstrcpy(Parameter,"ByRef nmLVDispInfo As NMLVDISPINFO"); 328 332 } 329 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR){333 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR){ 330 334 //ProgressBar 331 335 lstrcpy(Parameter,"ByRef nmHdr As NMHDR"); 332 336 } 333 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR){337 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR){ 334 338 //TrackBar 335 339 lstrcpy(Parameter,"ByRef nmHdr As NMHDR"); 336 340 } 337 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW){341 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW){ 338 342 //TreeView 339 343 if(0<=i&&i<=7) lstrcpy(Parameter,"ByRef nmHdr As NMHDR"); 340 344 else lstrcpy(Parameter,"ByRef nmTreeView As NMTREEVIEW"); 341 345 } 342 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN){346 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN){ 343 347 //UpDown 344 348 if(i==0) lstrcpy(Parameter,"ByRef nmHdr As NMHDR"); … … 400 404 401 405 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 402 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum] .path);406 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum]->path); 403 407 i=0; 404 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){408 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ 405 409 EnableWindow(GetDlgItem(hDlg,IDC_DEFAULT),1); 406 410 EnableWindow(GetDlgItem(hDlg,IDC_MENU),1); … … 458 462 EnableWindow(GetDlgItem(hDlg,IDC_MMSYS),0); 459 463 SendDlgItemMessage(hDlg,IDC_DEFAULT,BM_SETCHECK,BST_CHECKED,0); 460 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_BUTTON){464 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_BUTTON){ 461 465 //Button 462 466 InsertEventToList(hList,i++,"Click","BN_CLICKED","ボタンがクリックされた時"); 463 467 InsertEventToList(hList,i++,"DblClick","BN_DBLCLK","ボタンがダブル クリックされた時"); 464 468 } 465 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX){469 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX){ 466 470 //CheckBox 467 471 InsertEventToList(hList,i++,"Click","BN_CLICKED","チェック ボックスがクリックされた時"); 468 472 InsertEventToList(hList,i++,"DblClick","BN_DBLCLK","チェック ボックスがダブル クリックされた時"); 469 473 } 470 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_COMBOBOX){474 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_COMBOBOX){ 471 475 //ComboBox 472 476 InsertEventToList(hList,i++,"CloseUp","CBN_CLOSEUP","リスト ボックスが非表示になる時"); … … 482 486 InsertEventToList(hList,i++,"SetFocus","CBN_SETFOCUS","入力フォーカスを取得した時"); 483 487 } 484 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT){488 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT){ 485 489 //Edit 486 490 InsertEventToList(hList,i++,"Change","EN_CHANGE","エディット ボックスの内容が変更された時(後処理)"); … … 493 497 InsertEventToList(hList,i++,"VScroll","EN_VSCROLL","垂直スクロールを行った時"); 494 498 } 495 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX){499 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX){ 496 500 //ImageBox 497 501 InsertEventToList(hList,i++,"Click","STN_CLICKED","イメージ ボックスがクリックされた時"); 498 502 InsertEventToList(hList,i++,"DblClick","STN_DBLCLK","イメージ ボックスがダブル クリックされた時"); 499 503 } 500 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX){504 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX){ 501 505 //ListBox 502 506 InsertEventToList(hList,i++,"SelChange","LBN_SELCHANGE","リスト内の選択が変更された時"); … … 507 511 InsertEventToList(hList,i++,"SetFocus","LBN_SETFOCUS","入力フォーカスを取得した時"); 508 512 } 509 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW){513 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW){ 510 514 //ListView 511 515 i=SetDefaultNotifyMessagesInList(hList,CT_LISTVIEW); 512 516 } 513 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR){517 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR){ 514 518 //ProgressBar 515 519 InsertEventToList(hList,i++,"OutOfMemory","NM_OUTOFMEMORY","メモリ不足でコントロールの動作が完了できない時"); 516 520 } 517 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON){521 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON){ 518 522 //RadioButton 519 523 InsertEventToList(hList,i++,"Click","BN_CLICKED","ラジオ ボタンがクリックされた時"); 520 524 InsertEventToList(hList,i++,"DblClick","BN_DBLCLK","ラジオ ボタンがダブル クリックされた時"); 521 525 } 522 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC){526 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC){ 523 527 //Static 524 528 InsertEventToList(hList,i++,"Click","STN_CLICKED","スタティック テキストがクリックされた時"); 525 529 InsertEventToList(hList,i++,"DblClick","STN_DBLCLK","スタティック テキストがダブル クリックされた時"); 526 530 } 527 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR){531 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR){ 528 532 //TrackBar 529 533 InsertEventToList(hList,i++,"OutOfMemory","NM_OUTOFMEMORY","メモリ不足でコントロールの動作が完了できない時"); … … 531 535 InsertEventToList(hList,i++,"CustomDraw","NM_CUSTOMDRAW ","カスタム描画操作の通知"); 532 536 } 533 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW){537 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW){ 534 538 //TreeView 535 539 i=SetDefaultNotifyMessagesInList(hList,CT_TREEVIEW); 536 540 } 537 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN){541 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN){ 538 542 //UpDown 539 543 InsertEventToList(hList,i++,"OutOfMemory","NM_OUTOFMEMORY","メモリ不足でコントロールの動作が完了できない時"); … … 595 599 hList=GetDlgItem(hwnd,IDC_EVENTLIST); 596 600 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 597 WndInfoNum=GetWndInfoNum(MdiInfo[WndNum] .path);601 WndInfoNum=GetWndInfoNum(MdiInfo[WndNum]->path); 598 602 599 603 ListView_DeleteAllItems(hList); … … 644 648 { 645 649 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 646 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum] .path);650 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum]->path); 647 651 NowMenuNum=GetMenuInfoNum(pWindowInfo->GetMenuIdName().c_str()); 648 652 } … … 671 675 hList=GetDlgItem(hwnd,IDC_EVENTLIST); 672 676 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 673 WndInfoNum=GetWndInfoNum(MdiInfo[WndNum] .path);677 WndInfoNum=GetWndInfoNum(MdiInfo[WndNum]->path); 674 678 if(GetEventProcedureNameFromListView(hList,WndNum,WndInfoNum,temporary,temp2,dwEventType)){ 675 679 SelectProcedureOfMessageCall(WndInfoNum,temporary,temp2); … … 689 693 hList=GetDlgItem(hwnd,IDC_EVENTLIST); 690 694 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 691 WndInfoNum=GetWndInfoNum(MdiInfo[WndNum] .path);695 WndInfoNum=GetWndInfoNum(MdiInfo[WndNum]->path); 692 696 if(GetEventProcedureNameFromListView(hList,WndNum,WndInfoNum,temporary,temp2,dwEventType)){ 693 697 sprintf(temporary+lstrlen(temporary),"(%s)",temp2); -
trunk/ab5.0/abdev/abdev/ParameterHint.cpp
r625 r629 39 39 40 40 for(i=0;i<MdiInfo.size();i++){ 41 if(MdiInfo[i] .hwnd){42 if(lstrcmpi(MdiInfo[i] .path.c_str(),temporary)==0) break;41 if(MdiInfo[i]->hwnd){ 42 if(lstrcmpi(MdiInfo[i]->path.c_str(),temporary)==0) break; 43 43 } 44 44 } … … 49 49 else{ 50 50 //エディタから読み込む 51 pBuf=(char *)HeapAlloc(hHeap,0,lstrlen(MdiInfo[i] .pMdiTextEdit->buffer)+1);52 lstrcpy(pBuf,MdiInfo[i] .pMdiTextEdit->buffer);51 pBuf=(char *)HeapAlloc(hHeap,0,lstrlen(MdiInfo[i]->pMdiTextEdit->buffer)+1); 52 lstrcpy(pBuf,MdiInfo[i]->pMdiTextEdit->buffer); 53 53 } 54 54 } … … 59 59 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 60 60 61 pBuf=(char *)HeapAlloc(hHeap,0,lstrlen(MdiInfo[WndNum] .pMdiTextEdit->buffer)+1);62 lstrcpy(pBuf,MdiInfo[WndNum] .pMdiTextEdit->buffer);61 pBuf=(char *)HeapAlloc(hHeap,0,lstrlen(MdiInfo[WndNum]->pMdiTextEdit->buffer)+1); 62 lstrcpy(pBuf,MdiInfo[WndNum]->pMdiTextEdit->buffer); 63 63 } 64 64 … … 685 685 char temp2[8192]; 686 686 687 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;687 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 688 688 689 689 //キャレットが示すバッファインデックスを取得 690 690 iPos=GetBufferIndexFromCaretPos( 691 691 pBuf, 692 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x,693 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y);692 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x, 693 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 694 694 695 695 static int Before_StartCaretY; 696 696 BOOL Before_StartCaretSwitch=0; 697 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y!=Before_StartCaretY){698 Before_StartCaretY=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y;697 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y!=Before_StartCaretY){ 698 Before_StartCaretY=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y; 699 699 Before_StartCaretSwitch=1; 700 700 } … … 966 966 else{ 967 967 if(MethodCheckInfo.hWnd){ 968 UpdateWindow(MdiInfo[WndNum] .pMdiTextEdit->hEdit); //ちらつき防止968 UpdateWindow(MdiInfo[WndNum]->pMdiTextEdit->hEdit); //ちらつき防止 969 969 970 970 DestroyWindow(MethodCheckInfo.hWnd); … … 1254 1254 ReleaseDC(MethodCheckInfo.hWnd,hdc); 1255 1255 1256 GetWindowRect(MdiInfo[i] .hwnd,&rect);1256 GetWindowRect(MdiInfo[i]->hwnd,&rect); 1257 1257 GetCaretPos(&pos); 1258 ClientToScreen(MdiInfo[i] .pMdiTextEdit->hEdit,&pos);1258 ClientToScreen(MdiInfo[i]->pMdiTextEdit->hEdit,&pos); 1259 1259 rect.left=pos.x-20; 1260 1260 rect.top=pos.y-pobj_nv->lf.lfHeight; -
trunk/ab5.0/abdev/abdev/Print.cpp
r626 r629 93 93 94 94 char *buffer; 95 buffer=MdiInfo[WndNum] .pMdiTextEdit->buffer;95 buffer=MdiInfo[WndNum]->pMdiTextEdit->buffer; 96 96 int i=0,i2=0,iPage=0; 97 97 for(i=0,i2=0;;i++,i2++){ … … 547 547 memset(&di,0,sizeof(DOCINFO)); 548 548 di.cbSize=sizeof(DOCINFO); 549 di.lpszDocName=MdiInfo[WndNum] .title.c_str();549 di.lpszDocName=MdiInfo[WndNum]->title.c_str(); 550 550 if(StartDoc(pd.hDC,&di)==0){ 551 551 MessageBox(hOwner,"印刷できません。プリンターの状況を確認してください。",APPLICATION_NAME,MB_OK | MB_ICONEXCLAMATION); -
trunk/ab5.0/abdev/abdev/ProjectControl.cpp
r625 r629 146 146 //ResetScrollbarが再描画時に呼び出されるので、再描画する 147 147 WndNum=GetWndNum(hChild); 148 InvalidateRect(MdiInfo[WndNum] .pMdiTextEdit->hEdit,NULL,0);149 UpdateWindow(MdiInfo[WndNum] .pMdiTextEdit->hEdit);148 InvalidateRect(MdiInfo[WndNum]->pMdiTextEdit->hEdit,NULL,0); 149 UpdateWindow(MdiInfo[WndNum]->pMdiTextEdit->hEdit); 150 150 TextEdit_SelectOneLine(WndNum,pobj_ClassTreeView->pProcInfo[i].code_pos,TRUE); 151 151 … … 506 506 SetWindowLongPtr(hwnd,GWL_EXSTYLE,WS_EX_STATICEDGE); 507 507 SetParent(hwnd,hOwner); 508 ResizeOwnerWnd();508 ActiveBasic::IDE::Program::mainFrame.Resized(); 509 509 510 510 ShowWindow(hProjectView_ToolWindow,SW_HIDE); … … 517 517 SetParent(hwnd,hProjectView_ToolWindow); 518 518 519 ResizeOwnerWnd();519 ActiveBasic::IDE::Program::mainFrame.Resized(); 520 520 ResizeProjectView_ToolWindow(); 521 521 … … 1287 1287 1288 1288 //ResetScrollbarが再描画時に呼び出されるので、再描画する 1289 InvalidateRect(MdiInfo[WndNum] .pMdiTextEdit->hEdit,NULL,0);1290 UpdateWindow(MdiInfo[WndNum] .pMdiTextEdit->hEdit);1289 InvalidateRect(MdiInfo[WndNum]->pMdiTextEdit->hEdit,NULL,0); 1290 UpdateWindow(MdiInfo[WndNum]->pMdiTextEdit->hEdit); 1291 1291 1292 1292 if(temp2[i2]=='\0') goto EndToSetWorkFile; … … 1316 1316 si.fMask=SIF_POS; 1317 1317 si.nPos=pos.x; 1318 SetScrollInfo(MdiInfo[WndNum] .pMdiTextEdit->hEdit,SB_HORZ,&si,1);1318 SetScrollInfo(MdiInfo[WndNum]->pMdiTextEdit->hEdit,SB_HORZ,&si,1); 1319 1319 si.nPos=pos.y; 1320 SetScrollInfo(MdiInfo[WndNum] .pMdiTextEdit->hEdit,SB_VERT,&si,1);1320 SetScrollInfo(MdiInfo[WndNum]->pMdiTextEdit->hEdit,SB_VERT,&si,1); 1321 1321 1322 1322 if(temp2[i2]=='\0') goto EndToSetWorkFile; … … 1591 1591 WndNum=GetWndNum(hChild); 1592 1592 sw=0; 1593 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){1594 if( MdiInfo[WndNum] .pMdiTextEdit->IsModified() ){1593 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 1594 if( MdiInfo[WndNum]->pMdiTextEdit->IsModified() ){ 1595 1595 for(i=0;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 1596 1596 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 1597 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),temporary)==0) sw=1;1598 } 1599 } 1600 } 1601 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){1602 if(MdiInfo[WndNum] .MdiIconEditInfo->bModify){1597 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),temporary)==0) sw=1; 1598 } 1599 } 1600 } 1601 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 1602 if(MdiInfo[WndNum]->MdiIconEditInfo->bModify){ 1603 1603 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources ) 1604 1604 { 1605 1605 lstrcpy(temporary,resourceItem.filepath.c_str()); 1606 1606 lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() ); 1607 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),temporary)==0) sw=1;1607 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),temporary)==0) sw=1; 1608 1608 } 1609 1609 } … … 1648 1648 while(hChild){ 1649 1649 WndNum=GetWndNum(hChild); 1650 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){1650 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 1651 1651 for(i=0;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 1652 1652 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 1653 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),temporary)==0){1653 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),temporary)==0){ 1654 1654 TextEdit_GetSel(WndNum,&CharRange); 1655 1655 … … 1658 1658 si.cbSize=sizeof(SCROLLINFO); 1659 1659 si.fMask=SIF_POS; 1660 GetScrollInfo(MdiInfo[WndNum] .pMdiTextEdit->hEdit,SB_HORZ,&si);1660 GetScrollInfo(MdiInfo[WndNum]->pMdiTextEdit->hEdit,SB_HORZ,&si); 1661 1661 pos.x=si.nPos; 1662 GetScrollInfo(MdiInfo[WndNum] .pMdiTextEdit->hEdit,SB_VERT,&si);1662 GetScrollInfo(MdiInfo[WndNum]->pMdiTextEdit->hEdit,SB_VERT,&si); 1663 1663 pos.y=si.nPos; 1664 1664 … … 1674 1674 } 1675 1675 } 1676 else if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD){1676 else if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD){ 1677 1677 BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1678 1678 { 1679 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),pWindowInfo->GetName().c_str())==0){1680 sprintf(buffer+i2,"rad,%s\r\n",MdiInfo[WndNum] .path.c_str());1679 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),pWindowInfo->GetName().c_str())==0){ 1680 sprintf(buffer+i2,"rad,%s\r\n",MdiInfo[WndNum]->path.c_str()); 1681 1681 i2+=lstrlen(buffer+i2); 1682 1682 break; … … 1684 1684 } 1685 1685 } 1686 else if(MdiInfo[WndNum] .DocType==WNDTYPE_MENU){1686 else if(MdiInfo[WndNum]->DocType==WNDTYPE_MENU){ 1687 1687 for(i=0;i<projectInfo.NumberOfMenu;i++){ 1688 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),projectInfo.pMenuInfo[i].IdName)==0){1689 sprintf(buffer+i2,"menu,%s\r\n",MdiInfo[WndNum] .path.c_str());1688 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),projectInfo.pMenuInfo[i].IdName)==0){ 1689 sprintf(buffer+i2,"menu,%s\r\n",MdiInfo[WndNum]->path.c_str()); 1690 1690 i2+=lstrlen(buffer+i2); 1691 1691 break; … … 1693 1693 } 1694 1694 } 1695 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){1695 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 1696 1696 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources ) 1697 1697 { 1698 1698 lstrcpy(temporary,resourceItem.filepath.c_str()); 1699 1699 lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() ); 1700 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),temporary)==0){1700 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),temporary)==0){ 1701 1701 sprintf(buffer+i2,"icon,%s\r\n",resourceItem.filepath.c_str()); 1702 1702 i2+=lstrlen(buffer+i2); -
trunk/ab5.0/abdev/abdev/RadProc.cpp
r626 r629 17 17 while(hChild){ 18 18 i=GetWndNum(hChild); 19 if(MdiInfo[i] .DocType==WNDTYPE_RAD){20 if(lstrcmpi(MdiInfo[i] .path.c_str(),windowInfo.GetName().c_str())==0) break;19 if(MdiInfo[i]->DocType==WNDTYPE_RAD){ 20 if(lstrcmpi(MdiInfo[i]->path.c_str(),windowInfo.GetName().c_str())==0) break; 21 21 } 22 22 hChild=GetNextWindow(hChild,GW_HWNDNEXT); … … 46 46 47 47 mdic.lParam=0; 48 mdic.style |= WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_SYSMENU | WS_CAPTION | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX; 48 49 hChild=(HWND)SendMessage(hClient,WM_MDICREATE,0,(long)&mdic); //ウィンドウ作成 49 50 … … 80 81 //ウィンドウのID登録 81 82 HDC hdc; 82 MdiInfo.push_back( MDIINFO() );83 MdiInfo.push_back( new MDIINFO() ); 83 84 i = MdiInfo.size()-1; 84 85 85 MdiInfo[i] .hwnd=hChild;86 MdiInfo[i] .DocType=WNDTYPE_RAD;87 MdiInfo[i] .title = windowInfo.GetName();88 MdiInfo[i] .path = windowInfo.GetName();86 MdiInfo[i]->hwnd=hChild; 87 MdiInfo[i]->DocType=WNDTYPE_RAD; 88 MdiInfo[i]->title = windowInfo.GetName(); 89 MdiInfo[i]->path = windowInfo.GetName(); 89 90 90 91 … … 93 94 //////////////////////////// 94 95 95 MdiInfo[i] .MdiRadInfo=(MDIRADINFO *)GlobalAlloc(GPTR,sizeof(MDIRADINFO));96 97 MdiInfo[i] .MdiRadInfo->hTools=hTools;98 MdiInfo[i] .MdiRadInfo->hProperty=hProperty;99 MdiInfo[i] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW),hProperty,(DLGPROC)RadProperty_WindowProc);96 MdiInfo[i]->MdiRadInfo=(MDIRADINFO *)GlobalAlloc(GPTR,sizeof(MDIRADINFO)); 97 98 MdiInfo[i]->MdiRadInfo->hTools=hTools; 99 MdiInfo[i]->MdiRadInfo->hProperty=hProperty; 100 MdiInfo[i]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW),hProperty,(DLGPROC)RadProperty_WindowProc); 100 101 101 102 SCROLLINFO ScrollInfo; … … 103 104 ScrollInfo.fMask=SIF_POS; 104 105 ScrollInfo.nPos=0; 105 SetScrollInfo(MdiInfo[i] .MdiRadInfo->hProperty,SB_VERT,&ScrollInfo,1);106 107 MdiInfo[i] .MdiRadInfo->hRad=hRad;108 109 MdiInfo[i] .MdiRadInfo->hSupport=hSupport;106 SetScrollInfo(MdiInfo[i]->MdiRadInfo->hProperty,SB_VERT,&ScrollInfo,1); 107 108 MdiInfo[i]->MdiRadInfo->hRad=hRad; 109 110 MdiInfo[i]->MdiRadInfo->hSupport=hSupport; 110 111 111 112 hdc=GetDC(hRad); 112 MdiInfo[i] .MdiRadInfo->hBitmap=CreateCompatibleBitmap(hdc,ScreenX*2,ScreenY*2);113 MdiInfo[i] .MdiRadInfo->hMemDC=CreateCompatibleDC(hdc);114 MdiInfo[i] .MdiRadInfo->hOldBitmap=115 (HBITMAP)SelectObject(MdiInfo[i] .MdiRadInfo->hMemDC,MdiInfo[i].MdiRadInfo->hBitmap);113 MdiInfo[i]->MdiRadInfo->hBitmap=CreateCompatibleBitmap(hdc,ScreenX*2,ScreenY*2); 114 MdiInfo[i]->MdiRadInfo->hMemDC=CreateCompatibleDC(hdc); 115 MdiInfo[i]->MdiRadInfo->hOldBitmap= 116 (HBITMAP)SelectObject(MdiInfo[i]->MdiRadInfo->hMemDC,MdiInfo[i]->MdiRadInfo->hBitmap); 116 117 ReleaseDC(hRad,hdc); 117 118 118 for(i2=0;i2<MAX_RAD_SELITEM;i2++) MdiInfo[i] .MdiRadInfo->SelectingItem[i2]=-1;119 MdiInfo[i] .MdiRadInfo->ButtonSelect=IDC_TOOL_MOUSE;119 for(i2=0;i2<MAX_RAD_SELITEM;i2++) MdiInfo[i]->MdiRadInfo->SelectingItem[i2]=-1; 120 MdiInfo[i]->MdiRadInfo->ButtonSelect=IDC_TOOL_MOUSE; 120 121 121 122 //変更情報を初期化 122 MdiInfo[i] .MdiRadInfo->undo.NowPos=0;123 memset(MdiInfo[i] .MdiRadInfo->undo.Command,0,sizeof(int)*MAX_UNDONUM);123 MdiInfo[i]->MdiRadInfo->undo.NowPos=0; 124 memset(MdiInfo[i]->MdiRadInfo->undo.Command,0,sizeof(int)*MAX_UNDONUM); 124 125 125 126 DrawRadWindow(i,&windowInfo); … … 286 287 ////////////////////////////// 287 288 //プロパティウィンドウを設定 288 DestroyWindow(MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg);289 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_WindowProc);289 DestroyWindow(MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg); 290 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_WindowProc); 290 291 291 292 SCROLLINFO ScrollInfo; … … 293 294 ScrollInfo.fMask=SIF_POS; 294 295 ScrollInfo.nPos=0; 295 SetScrollInfo(MdiInfo[WndNum] .MdiRadInfo->hProperty,SB_VERT,&ScrollInfo,1);296 SetScrollInfo(MdiInfo[WndNum]->MdiRadInfo->hProperty,SB_VERT,&ScrollInfo,1); 296 297 297 298 RECT rect; 298 GetClientRect(MdiInfo[WndNum] .MdiRadInfo->hProperty,&rect);299 SendMessage(MdiInfo[WndNum] .MdiRadInfo->hProperty,WM_SIZE,0,MAKELONG(rect.right,rect.bottom));299 GetClientRect(MdiInfo[WndNum]->MdiRadInfo->hProperty,&rect); 300 SendMessage(MdiInfo[WndNum]->MdiRadInfo->hProperty,WM_SIZE,0,MAKELONG(rect.right,rect.bottom)); 300 301 } 301 302 … … 344 345 { 345 346 const ActiveBasic::PM::ChildWindowInfo *pChildInfo = pWindowInfo->childWindowInfos[i]; 346 if(i==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]) continue;347 if(i==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) continue; 347 348 if(pChildInfo->Control != 348 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control) continue;349 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control) continue; 349 350 350 351 if(NewRect->left<OldRect->left){ 351 352 if(pChildInfo->pos.x 352 353 > 353 NewRect->left - MdiInfo[WndNum] .MdiRadInfo->ClientPos.x354 NewRect->left - MdiInfo[WndNum]->MdiRadInfo->ClientPos.x 354 355 && 355 356 pChildInfo->pos.x-10 356 357 < 357 NewRect->left - MdiInfo[WndNum] .MdiRadInfo->ClientPos.x){358 NewRect->left - MdiInfo[WndNum]->MdiRadInfo->ClientPos.x){ 358 359 359 360 //左側をストップする 360 361 x=NewRect->right-NewRect->left; 361 NewRect->left=pChildInfo->pos.x + MdiInfo[WndNum] .MdiRadInfo->ClientPos.x;362 NewRect->left=pChildInfo->pos.x + MdiInfo[WndNum]->MdiRadInfo->ClientPos.x; 362 363 NewRect->right=NewRect->left+x; 363 364 … … 376 377 if(pChildInfo->pos.y 377 378 > 378 NewRect->top - MdiInfo[WndNum] .MdiRadInfo->ClientPos.y379 NewRect->top - MdiInfo[WndNum]->MdiRadInfo->ClientPos.y 379 380 && 380 381 pChildInfo->pos.y-10 381 382 < 382 NewRect->top - MdiInfo[WndNum] .MdiRadInfo->ClientPos.y){383 NewRect->top - MdiInfo[WndNum]->MdiRadInfo->ClientPos.y){ 383 384 384 385 //左側をストップする 385 386 y=NewRect->bottom-NewRect->top; 386 NewRect->top=pChildInfo->pos.y + MdiInfo[WndNum] .MdiRadInfo->ClientPos.y;387 NewRect->top=pChildInfo->pos.y + MdiInfo[WndNum]->MdiRadInfo->ClientPos.y; 387 388 NewRect->bottom=NewRect->top+y; 388 389 … … 409 410 if(swLineStop&&sw==0){ 410 411 BitBlt(hdc,0,0,ScreenX*2,ScreenY*2, 411 MdiInfo[WndNum] .MdiRadInfo->hMemDC,0,0,SRCCOPY);412 MdiInfo[WndNum]->MdiRadInfo->hMemDC,0,0,SRCCOPY); 412 413 swLineStop=0; 413 414 } … … 415 416 BitBlt(hdc,rect.left-LEVER_THICK, rect.top-LEVER_THICK, 416 417 rect.right-rect.left+LEVER_THICK*2, rect.bottom-rect.top+LEVER_THICK*2, 417 MdiInfo[WndNum] .MdiRadInfo->hMemDC,x-LEVER_THICK,y-LEVER_THICK,SRCCOPY);418 MdiInfo[WndNum]->MdiRadInfo->hMemDC,x-LEVER_THICK,y-LEVER_THICK,SRCCOPY); 418 419 } 419 420 … … 440 441 ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 441 442 442 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[num]==SELECT_WINDOW){443 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[num]==SELECT_WINDOW){ 443 444 //ウィンドウ軸を選択 444 445 rect->left=0; … … 449 450 else{ 450 451 //子ウィンドウを選択 451 rect->left=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]]->pos.x-LEVER_THICK;452 rect->top=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]]->pos.y-LEVER_THICK;453 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;454 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;452 rect->left=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[num]]->pos.x-LEVER_THICK; 453 rect->top=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[num]]->pos.y-LEVER_THICK; 454 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; 455 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; 455 456 } 456 457 } … … 472 473 473 474 i=0; 474 while(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[i]!=-1||i==0){475 while(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[i]!=-1||i==0){ 475 476 GetSelectingRect(WndNum,WndInfoNum,i,&tempRect); 476 477 RectNaturalFormat(&tempRect,&rect); … … 535 536 ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 536 537 537 DestroyWindow(MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg);538 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){539 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_WindowProc);538 DestroyWindow(MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg); 539 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ 540 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_WindowProc); 540 541 541 542 ScrollInfo.cbSize=sizeof(SCROLLINFO); 542 543 ScrollInfo.fMask=SIF_POS; 543 544 ScrollInfo.nPos=0; 544 SetScrollInfo(MdiInfo[WndNum] .MdiRadInfo->hProperty,SB_VERT,&ScrollInfo,1);545 546 GetClientRect(MdiInfo[WndNum] .MdiRadInfo->hProperty,&rect);547 SendMessage(MdiInfo[WndNum] .MdiRadInfo->hProperty,WM_SIZE,0,MAKELONG(rect.right,rect.bottom));545 SetScrollInfo(MdiInfo[WndNum]->MdiRadInfo->hProperty,SB_VERT,&ScrollInfo,1); 546 547 GetClientRect(MdiInfo[WndNum]->MdiRadInfo->hProperty,&rect); 548 SendMessage(MdiInfo[WndNum]->MdiRadInfo->hProperty,WM_SIZE,0,MAKELONG(rect.right,rect.bottom)); 548 549 } 549 550 else{ 550 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_BUTTON)551 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_BUTTON),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ButtonProc);552 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX)553 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_CHECKBOX),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_CheckBoxProc);554 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_COMBOBOX)555 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_COMBOBOX),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ComboBoxProc);556 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT)557 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_EDIT),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_EditProc);558 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_GROUPBOX)559 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_GROUPBOX),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_GroupBoxProc);560 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_HSCROLLBAR)561 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_SCROLLBAR),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ScrollBarProc);562 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX)563 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_IMAGEBOX),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ImageBoxProc);564 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX)565 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_LISTBOX),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ListBoxProc);566 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW)567 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_LISTVIEW),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ListViewProc);568 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR)569 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_PROGRESSBAR),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ProgressBarProc);570 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON)571 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_RADIOBUTTON),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_RadioButtonProc);572 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC)573 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_STATIC),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_StaticProc);574 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR)575 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_TRACKBAR),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_TrackBarProc);576 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW)577 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_TREEVIEW),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_TreeViewProc);578 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN)579 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_UPDOWN),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_UpDownProc);580 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_VSCROLLBAR)581 MdiInfo[WndNum] .MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_SCROLLBAR),MdiInfo[WndNum].MdiRadInfo->hProperty,(DLGPROC)RadProperty_ScrollBarProc);551 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_BUTTON) 552 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_BUTTON),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_ButtonProc); 553 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX) 554 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_CHECKBOX),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_CheckBoxProc); 555 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_COMBOBOX) 556 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_COMBOBOX),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_ComboBoxProc); 557 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT) 558 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_EDIT),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_EditProc); 559 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_GROUPBOX) 560 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_GROUPBOX),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_GroupBoxProc); 561 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_HSCROLLBAR) 562 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_SCROLLBAR),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_ScrollBarProc); 563 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX) 564 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_IMAGEBOX),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_ImageBoxProc); 565 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX) 566 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_LISTBOX),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_ListBoxProc); 567 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_LISTVIEW) 568 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_LISTVIEW),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_ListViewProc); 569 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_PROGRESSBAR) 570 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_PROGRESSBAR),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_ProgressBarProc); 571 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON) 572 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_RADIOBUTTON),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_RadioButtonProc); 573 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC) 574 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_STATIC),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_StaticProc); 575 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_TRACKBAR) 576 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_TRACKBAR),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_TrackBarProc); 577 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_TREEVIEW) 578 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_TREEVIEW),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_TreeViewProc); 579 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_UPDOWN) 580 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_UPDOWN),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_UpDownProc); 581 else if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_VSCROLLBAR) 582 MdiInfo[WndNum]->MdiRadInfo->hProp_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_SCROLLBAR),MdiInfo[WndNum]->MdiRadInfo->hProperty,(DLGPROC)RadProperty_ScrollBarProc); 582 583 583 584 ScrollInfo.cbSize=sizeof(SCROLLINFO); 584 585 ScrollInfo.fMask=SIF_POS; 585 586 ScrollInfo.nPos=0; 586 SetScrollInfo(MdiInfo[WndNum] .MdiRadInfo->hProperty,SB_VERT,&ScrollInfo,1);587 588 GetClientRect(MdiInfo[WndNum] .MdiRadInfo->hProperty,&rect);589 SendMessage(MdiInfo[WndNum] .MdiRadInfo->hProperty,WM_SIZE,0,MAKELONG(rect.right,rect.bottom));587 SetScrollInfo(MdiInfo[WndNum]->MdiRadInfo->hProperty,SB_VERT,&ScrollInfo,1); 588 589 GetClientRect(MdiInfo[WndNum]->MdiRadInfo->hProperty,&rect); 590 SendMessage(MdiInfo[WndNum]->MdiRadInfo->hProperty,WM_SIZE,0,MAKELONG(rect.right,rect.bottom)); 590 591 } 591 592 } … … 599 600 (pWindowInfo->childWindowInfos[i]->GetStyle()&0x000F)!=CBS_SIMPLE){ 600 601 //コンボ ボックスの場合は表示部分をターゲットに選択する(高さ20pixel) 601 if(x>=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x&&602 x<=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx&&603 y>=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y&&604 y<=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+20){602 if(x>=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x&& 603 x<=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx&& 604 y>=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y&& 605 y<=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+20){ 605 606 break; 606 607 } … … 609 610 //グループ ボックスの場合は中央をあける 610 611 if(( 611 x>=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x&&612 x<=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx&&613 y>=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y&&614 y<=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+pWindowInfo->childWindowInfos[i]->size.cy612 x>=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x&& 613 x<=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx&& 614 y>=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y&& 615 y<=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+pWindowInfo->childWindowInfos[i]->size.cy 615 616 )&& 616 617 (!( 617 x>=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+LEVER_THICK*2&&618 x<=MdiInfo[WndNum] .MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx-LEVER_THICK*2&&619 y>=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+LEVER_THICK*3&&620 y<=MdiInfo[WndNum] .MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+pWindowInfo->childWindowInfos[i]->size.cy-LEVER_THICK*2618 x>=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+LEVER_THICK*2&& 619 x<=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx-LEVER_THICK*2&& 620 y>=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+LEVER_THICK*3&& 621 y<=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+pWindowInfo->childWindowInfos[i]->size.cy-LEVER_THICK*2 621 622 )) 622 623 ){ … … 624 625 } 625 626 } 626 else if(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){627 else if(x>=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x&& 628 x<=MdiInfo[WndNum]->MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx&& 629 y>=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y&& 630 y<=MdiInfo[WndNum]->MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[i]->pos.y+pWindowInfo->childWindowInfos[i]->size.cy){ 630 631 break; 631 632 } … … 637 638 int i; 638 639 639 for(i=1;i<MAX_RAD_SELITEM;i++) MdiInfo[WndNum] .MdiRadInfo->SelectingItem[i]=-1;640 for(i=1;i<MAX_RAD_SELITEM;i++) MdiInfo[WndNum]->MdiRadInfo->SelectingItem[i]=-1; 640 641 i=GetItemNumOnMouse(WndNum,WndInfoNum,x,y); 641 642 642 643 if(i==-1){ 643 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW){644 MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]=SELECT_WINDOW;644 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW){ 645 MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]=SELECT_WINDOW; 645 646 ChangePropertyWindow(WndNum,WndInfoNum); 646 647 } 647 648 } 648 649 else{ 649 MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]=i;650 MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]=i; 650 651 ChangePropertyWindow(WndNum,WndInfoNum); 651 652 } … … 662 663 ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 663 664 664 for(i=1;i<MAX_RAD_SELITEM;i++) MdiInfo[WndNum] .MdiRadInfo->SelectingItem[i]=-1;665 for(i=1;i<MAX_RAD_SELITEM;i++) MdiInfo[WndNum]->MdiRadInfo->SelectingItem[i]=-1; 665 666 RectNaturalFormat(pRect,&rect); 666 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) sw=0;667 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) sw=0; 667 668 else sw=1; 668 669 for(i=pWindowInfo->childWindowInfos.size()-1,i2=0;i>=0;i--){ 669 if(rect.left <= pWindowInfo->childWindowInfos[i]->pos.x+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x&&670 rect.top <= pWindowInfo->childWindowInfos[i]->pos.y+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y&&671 rect.right >= pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx+MdiInfo[WndNum] .MdiRadInfo->ClientPos.x&&672 rect.bottom >= pWindowInfo->childWindowInfos[i]->pos.y+pWindowInfo->childWindowInfos[i]->size.cy+MdiInfo[WndNum] .MdiRadInfo->ClientPos.y){673 MdiInfo[WndNum] .MdiRadInfo->SelectingItem[i2]=i;670 if(rect.left <= pWindowInfo->childWindowInfos[i]->pos.x+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x&& 671 rect.top <= pWindowInfo->childWindowInfos[i]->pos.y+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y&& 672 rect.right >= pWindowInfo->childWindowInfos[i]->pos.x+pWindowInfo->childWindowInfos[i]->size.cx+MdiInfo[WndNum]->MdiRadInfo->ClientPos.x&& 673 rect.bottom >= pWindowInfo->childWindowInfos[i]->pos.y+pWindowInfo->childWindowInfos[i]->size.cy+MdiInfo[WndNum]->MdiRadInfo->ClientPos.y){ 674 MdiInfo[WndNum]->MdiRadInfo->SelectingItem[i2]=i; 674 675 i2++; 675 676 } 676 677 } 677 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW||678 (MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW&&sw)){678 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW|| 679 (MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW&&sw)){ 679 680 ChangePropertyWindow(WndNum,WndInfoNum); 680 681 } … … 686 687 ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 687 688 688 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[1]!=-1){689 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[1]!=-1){ 689 690 i=0; 690 while(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[i]!=-1||i==0){691 while(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[i]!=-1||i==0){ 691 692 GetSelectingRect(WndNum,WndInfoNum,i,&rect); 692 693 693 694 if(x>=rect.left+LEVER_THICK&&x<=rect.right-LEVER_THICK&& 694 695 y>=rect.top+LEVER_THICK&&y<=rect.bottom-LEVER_THICK){ 695 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[i]]->Control==CT_GROUPBOX){696 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[i]]->Control==CT_GROUPBOX){ 696 697 //グループボックスの場合は中央をあける 697 698 if(!(x>=rect.left+LEVER_THICK*2&&x<=rect.right-LEVER_THICK*2&& … … 708 709 GetSelectingRect(WndNum,WndInfoNum,0,&rect); 709 710 710 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW){711 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW){ 711 712 if(x>=rect.left+LEVER_THICK&&x<=rect.right-LEVER_THICK&& 712 713 y>=rect.top+LEVER_THICK&&y<=rect.bottom-LEVER_THICK){ 713 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->Control==CT_GROUPBOX){714 if(pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->Control==CT_GROUPBOX){ 714 715 //グループ ボックスの場合は中央をあける 715 716 if(!(x>=rect.left+LEVER_THICK*3&&x<=rect.right-LEVER_THICK*3&& … … 744 745 SIZE NeedSize; 745 746 746 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum] .path);747 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum]->path); 747 748 748 749 //必要な幅、高さを共に100ピクセル余裕を持たせる … … 754 755 755 756 //垂直スクロールバーの設定 756 GetScrollInfo(MdiInfo[WndNum] .MdiRadInfo->hRad,SB_VERT,&ScrollInfo);757 GetScrollInfo(MdiInfo[WndNum]->MdiRadInfo->hRad,SB_VERT,&ScrollInfo); 757 758 ScrollInfo.nMin=0; 758 759 if(height>NeedSize.cy) ScrollInfo.nMax=0; … … 761 762 ScrollInfo.nPage=height; 762 763 } 763 SetScrollInfo(MdiInfo[WndNum] .MdiRadInfo->hRad,SB_VERT,&ScrollInfo,1);764 SetScrollInfo(MdiInfo[WndNum]->MdiRadInfo->hRad,SB_VERT,&ScrollInfo,1); 764 765 765 766 //水平スクロールバーの設定 766 GetScrollInfo(MdiInfo[WndNum] .MdiRadInfo->hRad,SB_VERT,&ScrollInfo);767 GetScrollInfo(MdiInfo[WndNum]->MdiRadInfo->hRad,SB_VERT,&ScrollInfo); 767 768 ScrollInfo.nMin=0; 768 769 if(weight>NeedSize.cx) ScrollInfo.nMax=0; … … 771 772 ScrollInfo.nPage=weight; 772 773 } 773 SetScrollInfo(MdiInfo[WndNum] .MdiRadInfo->hRad,SB_HORZ,&ScrollInfo,1);774 SetScrollInfo(MdiInfo[WndNum]->MdiRadInfo->hRad,SB_HORZ,&ScrollInfo,1); 774 775 } 775 776 LRESULT CALLBACK RadWindow(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){ … … 797 798 798 799 i=GetWndNum(GetParent(hwnd)); 799 i2 = GetWndInfoNum(MdiInfo[i] .path);800 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);801 802 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){800 i2 = GetWndInfoNum(MdiInfo[i]->path); 801 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 802 803 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){ 803 804 if(((wParam&MK_CONTROL)||(wParam&MK_SHIFT))&& 804 MdiInfo[i] .MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW){805 MdiInfo[i]->MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW){ 805 806 806 807 //Shiftキー、Ctrlキーによる複数選択 807 808 for(i3=0;;i3++){ 808 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]==-1){809 MdiInfo[i] .MdiRadInfo->SelectingItem[i3]=GetItemNumOnMouse(i,i2,mouse.x,mouse.y);809 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]==-1){ 810 MdiInfo[i]->MdiRadInfo->SelectingItem[i3]=GetItemNumOnMouse(i,i2,mouse.x,mouse.y); 810 811 InvalidateRect(hwnd,NULL,0); 811 812 … … 826 827 //アイテム選択中。サイズ、位置変更開始 827 828 828 if(MdiInfo[i] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){829 if(MdiInfo[i]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ 829 830 RadInfo.DraggingRect[0].left=LEVER_THICK; 830 831 RadInfo.DraggingRect[0].top=LEVER_THICK; … … 835 836 else{ 836 837 i3=0; 837 while(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]!=-1){838 RadInfo.DraggingRect[i3].left=MdiInfo[i] .MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.x;839 RadInfo.DraggingRect[i3].top=MdiInfo[i] .MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[i3]]->pos.y;840 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;841 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;838 while(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]!=-1){ 839 RadInfo.DraggingRect[i3].left=MdiInfo[i]->MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos.x; 840 RadInfo.DraggingRect[i3].top=MdiInfo[i]->MdiRadInfo->ClientPos.y+pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos.y; 841 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; 842 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; 842 843 RadInfo.DragStartRect[i3]=RadInfo.DraggingRect[i3]; 843 844 i3++; … … 877 878 hParent=GetParent(hwnd); 878 879 i=GetWndNum(hParent); 879 i2 = GetWndInfoNum(MdiInfo[i] .path);880 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);881 882 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){880 i2 = GetWndInfoNum(MdiInfo[i]->path); 881 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 882 883 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){ 883 884 if(RadInfo.NowDragging){ 884 885 if(RadInfo.DragStartPos.x==mouse.x&&RadInfo.DragStartPos.y==mouse.y){ … … 889 890 } 890 891 891 if(MdiInfo[i] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){892 if(MdiInfo[i]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ 892 893 if(RadInfo.NowDragging==SELECTING_FRAME){ 893 894 SetItemNumOnFrame(i,i2,&RadInfo.DraggingRect[0]); … … 897 898 //ウィンドウ枠の調整完了 898 899 PointAndSize.size=pWindowInfo->size; 899 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize);900 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 900 901 pWindowInfo->size.cx=RadInfo.DraggingRect[0].right-LEVER_THICK; 901 902 pWindowInfo->size.cy=RadInfo.DraggingRect[0].bottom-LEVER_THICK; … … 909 910 else{ 910 911 i3=0; 911 while(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]!=-1){912 while(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]!=-1){ 912 913 //アイテム枠の調整完了 913 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos;914 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->size;915 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize);916 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos.x=RadInfo.DraggingRect[i3].left-MdiInfo[i].MdiRadInfo->ClientPos.x;917 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos.y=RadInfo.DraggingRect[i3].top-MdiInfo[i].MdiRadInfo->ClientPos.y;918 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->size.cx=RadInfo.DraggingRect[i3].right-RadInfo.DraggingRect[i3].left;919 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->size.cy=RadInfo.DraggingRect[i3].bottom-RadInfo.DraggingRect[i3].top;914 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos; 915 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->size; 916 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 917 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos.x=RadInfo.DraggingRect[i3].left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 918 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos.y=RadInfo.DraggingRect[i3].top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 919 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->size.cx=RadInfo.DraggingRect[i3].right-RadInfo.DraggingRect[i3].left; 920 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->size.cy=RadInfo.DraggingRect[i3].bottom-RadInfo.DraggingRect[i3].top; 920 921 DrawRadWindow(i,pWindowInfo); 921 922 i3++; … … 930 931 } 931 932 else if(RadInfo.NowDragging==ITEM_MAKING){ 932 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_BUTTON){933 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_BUTTON){ 933 934 //ボタン コントロール作成 934 935 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 943 944 } 944 945 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 945 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;946 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;946 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 947 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 947 948 size.cx=rect.right-rect.left; 948 949 size.cy=rect.bottom-rect.top; 949 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(950 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 950 951 i, 951 952 i2, … … 961 962 ); 962 963 } 963 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_CHECKBOX){964 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_CHECKBOX){ 964 965 //チェック ボックス作成 965 966 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 974 975 } 975 976 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 976 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;977 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;977 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 978 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 978 979 size.cx=rect.right-rect.left; 979 980 size.cy=rect.bottom-rect.top; 980 MdiInfo[i] .MdiRadInfo->SelectingItem[0]=InsertDlgItem(981 MdiInfo[i]->MdiRadInfo->SelectingItem[0]=InsertDlgItem( 981 982 i, 982 983 i2, … … 994 995 ); 995 996 } 996 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_COMBOBOX){997 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_COMBOBOX){ 997 998 //コンボ ボックス作成 998 999 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1007 1008 } 1008 1009 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1009 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1010 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1010 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1011 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1011 1012 size.cx=rect.right-rect.left; 1012 1013 size.cy=rect.bottom-rect.top; 1013 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1014 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1014 1015 i, 1015 1016 i2, … … 1027 1028 ); 1028 1029 } 1029 else if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_EDIT){1030 else if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_EDIT){ 1030 1031 //エディット コントロール作成 1031 1032 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1040 1041 } 1041 1042 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1042 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1043 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1043 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1044 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1044 1045 size.cx=rect.right-rect.left; 1045 1046 size.cy=rect.bottom-rect.top; 1046 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1047 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1047 1048 i, 1048 1049 i2, … … 1059 1060 ); 1060 1061 } 1061 else if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_GROUPBOX){1062 else if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_GROUPBOX){ 1062 1063 //グループ ボックス作成 1063 1064 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1072 1073 } 1073 1074 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1074 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1075 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1075 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1076 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1076 1077 size.cx=rect.right-rect.left; 1077 1078 size.cy=rect.bottom-rect.top; 1078 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1079 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1079 1080 i, 1080 1081 i2, … … 1092 1093 ); 1093 1094 } 1094 else if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_HSCROLLBAR){1095 else if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_HSCROLLBAR){ 1095 1096 //水平スクロールバー作成 1096 1097 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1105 1106 } 1106 1107 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1107 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1108 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1108 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1109 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1109 1110 size.cx=rect.right-rect.left; 1110 1111 size.cy=rect.bottom-rect.top; 1111 MdiInfo[i] .MdiRadInfo->SelectingItem[0]=InsertDlgItem(1112 MdiInfo[i]->MdiRadInfo->SelectingItem[0]=InsertDlgItem( 1112 1113 i, 1113 1114 i2, … … 1125 1126 ); 1126 1127 } 1127 else if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_IMAGEBOX){1128 else if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_IMAGEBOX){ 1128 1129 //イメージ ボックス作成 1129 1130 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1138 1139 } 1139 1140 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1140 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1141 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1141 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1142 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1142 1143 size.cx=rect.right-rect.left; 1143 1144 size.cy=rect.bottom-rect.top; 1144 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1145 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1145 1146 i, 1146 1147 i2, … … 1156 1157 ); 1157 1158 } 1158 else if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_LISTBOX){1159 else if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_LISTBOX){ 1159 1160 //リスト ボックス作成 1160 1161 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1169 1170 } 1170 1171 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1171 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1172 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1172 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1173 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1173 1174 size.cx=rect.right-rect.left; 1174 1175 size.cy=rect.bottom-rect.top; 1175 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1176 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1176 1177 i, 1177 1178 i2, … … 1188 1189 ); 1189 1190 } 1190 else if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_LISTVIEW){1191 else if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_LISTVIEW){ 1191 1192 //リスト ビュー作成 1192 1193 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1201 1202 } 1202 1203 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1203 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1204 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1204 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1205 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1205 1206 size.cx=rect.right-rect.left; 1206 1207 size.cy=rect.bottom-rect.top; 1207 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1208 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1208 1209 i, 1209 1210 i2, … … 1220 1221 ); 1221 1222 } 1222 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_PROGRESSBAR){1223 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_PROGRESSBAR){ 1223 1224 //プロバレス バー作成 1224 1225 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1233 1234 } 1234 1235 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1235 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1236 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1236 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1237 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1237 1238 size.cx=rect.right-rect.left; 1238 1239 size.cy=rect.bottom-rect.top; 1239 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1240 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1240 1241 i, 1241 1242 i2, … … 1252 1253 ); 1253 1254 } 1254 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_RADIOBUTTON){1255 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_RADIOBUTTON){ 1255 1256 //ラジオ ボタン作成 1256 1257 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1265 1266 } 1266 1267 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1267 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1268 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1268 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1269 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1269 1270 size.cx=rect.right-rect.left; 1270 1271 size.cy=rect.bottom-rect.top; 1271 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1272 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1272 1273 i, 1273 1274 i2, … … 1285 1286 ); 1286 1287 } 1287 else if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_STATIC){1288 else if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_STATIC){ 1288 1289 //スタティック コントロール作成 1289 1290 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1298 1299 } 1299 1300 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1300 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1301 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1301 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1302 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1302 1303 size.cx=rect.right-rect.left; 1303 1304 size.cy=rect.bottom-rect.top; 1304 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1305 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1305 1306 i, 1306 1307 i2, … … 1318 1319 ); 1319 1320 } 1320 else if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_TRACKBAR){1321 else if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_TRACKBAR){ 1321 1322 //トラック バー作成 1322 1323 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1331 1332 } 1332 1333 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1333 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1334 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1334 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1335 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1335 1336 size.cx=rect.right-rect.left; 1336 1337 size.cy=rect.bottom-rect.top; 1337 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1338 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1338 1339 i, 1339 1340 i2, … … 1351 1352 ); 1352 1353 } 1353 else if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_TREEVIEW){1354 else if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_TREEVIEW){ 1354 1355 //ツリー ビュー作成 1355 1356 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1364 1365 } 1365 1366 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1366 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1367 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1367 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1368 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1368 1369 size.cx=rect.right-rect.left; 1369 1370 size.cy=rect.bottom-rect.top; 1370 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1371 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1371 1372 i, 1372 1373 i2, … … 1384 1385 ); 1385 1386 } 1386 else if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_UPDOWN){1387 else if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_UPDOWN){ 1387 1388 //アップ ダウン コントロール作成 1388 1389 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1397 1398 } 1398 1399 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1399 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1400 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1400 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1401 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1401 1402 size.cx=rect.right-rect.left; 1402 1403 size.cy=rect.bottom-rect.top; 1403 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1404 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1404 1405 i, 1405 1406 i2, … … 1417 1418 ); 1418 1419 } 1419 else if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_VSCROLLBAR){1420 else if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_VSCROLLBAR){ 1420 1421 //垂直スクロールバー作成 1421 1422 if(RadInfo.DraggingRect[0].left==mouse.x&&RadInfo.DraggingRect[0].top==mouse.y){ … … 1430 1431 } 1431 1432 RectNaturalFormat(&RadInfo.DraggingRect[0],&rect); 1432 pos.x=rect.left-MdiInfo[i] .MdiRadInfo->ClientPos.x;1433 pos.y=rect.top-MdiInfo[i] .MdiRadInfo->ClientPos.y;1433 pos.x=rect.left-MdiInfo[i]->MdiRadInfo->ClientPos.x; 1434 pos.y=rect.top-MdiInfo[i]->MdiRadInfo->ClientPos.y; 1434 1435 size.cx=rect.right-rect.left; 1435 1436 size.cy=rect.bottom-rect.top; 1436 MdiInfo[i] .MdiRadInfo->SelectingItem[0] = InsertDlgItem(1437 MdiInfo[i]->MdiRadInfo->SelectingItem[0] = InsertDlgItem( 1437 1438 i, 1438 1439 i2, … … 1450 1451 ); 1451 1452 } 1452 SendMessage(GetWindow(MdiInfo[i] .MdiRadInfo->hTools,GW_CHILD),WM_COMMAND,IDC_TOOL_MOUSE,0);1453 SendMessage(GetWindow(GetWindow(MdiInfo[i] .MdiRadInfo->hTools,GW_CHILD),GW_CHILD),TB_CHECKBUTTON,IDC_TOOL_MOUSE,TRUE);1453 SendMessage(GetWindow(MdiInfo[i]->MdiRadInfo->hTools,GW_CHILD),WM_COMMAND,IDC_TOOL_MOUSE,0); 1454 SendMessage(GetWindow(GetWindow(MdiInfo[i]->MdiRadInfo->hTools,GW_CHILD),GW_CHILD),TB_CHECKBUTTON,IDC_TOOL_MOUSE,TRUE); 1454 1455 ChangePropertyWindow(i,i2); 1455 1456 1456 1457 //複数選択を解除 1457 MdiInfo[i] .MdiRadInfo->SelectingItem[1]=-1;1458 MdiInfo[i]->MdiRadInfo->SelectingItem[1]=-1; 1458 1459 } 1459 1460 … … 1471 1472 hParent=GetParent(hwnd); 1472 1473 i=GetWndNum(hParent); 1473 i2 = GetWndInfoNum(MdiInfo[i] .path);1474 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1475 1476 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){1474 i2 = GetWndInfoNum(MdiInfo[i]->path); 1475 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1476 1477 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){ 1477 1478 if(wParam&MK_LBUTTON&&RadInfo.NowDragging){ 1478 1479 //////////////////////////////////////////////// … … 1482 1483 if(RadInfo.DraggingRect[0].right-MIN_ITEM_X<=(mouse.x+LEVER_THICK)) 1483 1484 RadInfo.DraggingRect[0].left=RadInfo.DraggingRect[0].right-MIN_ITEM_X; 1484 else if(mouse.x+LEVER_THICK<MdiInfo[i] .MdiRadInfo->ClientPos.x)1485 RadInfo.DraggingRect[0].left=MdiInfo[i] .MdiRadInfo->ClientPos.x;1485 else if(mouse.x+LEVER_THICK<MdiInfo[i]->MdiRadInfo->ClientPos.x) 1486 RadInfo.DraggingRect[0].left=MdiInfo[i]->MdiRadInfo->ClientPos.x; 1486 1487 else RadInfo.DraggingRect[0].left=mouse.x+LEVER_THICK; 1487 1488 1488 1489 if(RadInfo.DraggingRect[0].bottom-MIN_ITEM_Y<=(mouse.y+LEVER_THICK)) 1489 1490 RadInfo.DraggingRect[0].top=RadInfo.DraggingRect[0].bottom-MIN_ITEM_Y; 1490 else if(mouse.y+LEVER_THICK<MdiInfo[i] .MdiRadInfo->ClientPos.y)1491 RadInfo.DraggingRect[0].top=MdiInfo[i] .MdiRadInfo->ClientPos.y;1491 else if(mouse.y+LEVER_THICK<MdiInfo[i]->MdiRadInfo->ClientPos.y) 1492 RadInfo.DraggingRect[0].top=MdiInfo[i]->MdiRadInfo->ClientPos.y; 1492 1493 else RadInfo.DraggingRect[0].top=mouse.y+LEVER_THICK; 1493 1494 DrawFrame(hwnd,i,i2,&RadInfo.DraggingRect[0],&RadInfo.OldDraggingRect[0],0); … … 1496 1497 if(mouse.x-LEVER_THICK-MIN_ITEM_X<=RadInfo.DraggingRect[0].left) 1497 1498 RadInfo.DraggingRect[0].right=RadInfo.DraggingRect[0].left+MIN_ITEM_X; 1498 else if(mouse.x>MdiInfo[i] .MdiRadInfo->ClientPos.x+MdiInfo[i].MdiRadInfo->ClientSize.cx)1499 RadInfo.DraggingRect[0].right=MdiInfo[i] .MdiRadInfo->ClientPos.x+MdiInfo[i].MdiRadInfo->ClientSize.cx;1499 else if(mouse.x>MdiInfo[i]->MdiRadInfo->ClientPos.x+MdiInfo[i]->MdiRadInfo->ClientSize.cx) 1500 RadInfo.DraggingRect[0].right=MdiInfo[i]->MdiRadInfo->ClientPos.x+MdiInfo[i]->MdiRadInfo->ClientSize.cx; 1500 1501 else RadInfo.DraggingRect[0].right=mouse.x-LEVER_THICK; 1501 1502 1502 1503 if(RadInfo.DraggingRect[0].bottom-MIN_ITEM_Y<=(mouse.y+LEVER_THICK)) RadInfo.DraggingRect[0].top=RadInfo.DraggingRect[0].bottom-MIN_ITEM_Y; 1503 else if(mouse.y+LEVER_THICK<MdiInfo[i] .MdiRadInfo->ClientPos.y)1504 RadInfo.DraggingRect[0].top=MdiInfo[i] .MdiRadInfo->ClientPos.y;1504 else if(mouse.y+LEVER_THICK<MdiInfo[i]->MdiRadInfo->ClientPos.y) 1505 RadInfo.DraggingRect[0].top=MdiInfo[i]->MdiRadInfo->ClientPos.y; 1505 1506 else RadInfo.DraggingRect[0].top=mouse.y+LEVER_THICK; 1506 1507 DrawFrame(hwnd,i,i2,&RadInfo.DraggingRect[0],&RadInfo.OldDraggingRect[0],0); … … 1509 1510 if(RadInfo.DraggingRect[0].right-MIN_ITEM_X<=(mouse.x+LEVER_THICK)) 1510 1511 RadInfo.DraggingRect[0].left=RadInfo.DraggingRect[0].right-MIN_ITEM_X; 1511 else if(mouse.x+LEVER_THICK<MdiInfo[i] .MdiRadInfo->ClientPos.x)1512 RadInfo.DraggingRect[0].left=MdiInfo[i] .MdiRadInfo->ClientPos.x;1512 else if(mouse.x+LEVER_THICK<MdiInfo[i]->MdiRadInfo->ClientPos.x) 1513 RadInfo.DraggingRect[0].left=MdiInfo[i]->MdiRadInfo->ClientPos.x; 1513 1514 else RadInfo.DraggingRect[0].left=mouse.x+LEVER_THICK; 1514 1515 1515 1516 if(mouse.y-LEVER_THICK-MIN_ITEM_Y<=RadInfo.DraggingRect[0].top) 1516 1517 RadInfo.DraggingRect[0].bottom=RadInfo.DraggingRect[0].top+MIN_ITEM_Y; 1517 else if(mouse.y>MdiInfo[i] .MdiRadInfo->ClientPos.y+MdiInfo[i].MdiRadInfo->ClientSize.cy)1518 RadInfo.DraggingRect[0].bottom=MdiInfo[i] .MdiRadInfo->ClientPos.y+MdiInfo[i].MdiRadInfo->ClientSize.cy;1518 else if(mouse.y>MdiInfo[i]->MdiRadInfo->ClientPos.y+MdiInfo[i]->MdiRadInfo->ClientSize.cy) 1519 RadInfo.DraggingRect[0].bottom=MdiInfo[i]->MdiRadInfo->ClientPos.y+MdiInfo[i]->MdiRadInfo->ClientSize.cy; 1519 1520 else RadInfo.DraggingRect[0].bottom=mouse.y-LEVER_THICK; 1520 1521 DrawFrame(hwnd,i,i2,&RadInfo.DraggingRect[0],&RadInfo.OldDraggingRect[0],0); … … 1523 1524 if(mouse.x-LEVER_THICK-MIN_ITEM_X<=RadInfo.DraggingRect[0].left) 1524 1525 RadInfo.DraggingRect[0].right=RadInfo.DraggingRect[0].left+MIN_ITEM_X; 1525 else if((mouse.x>MdiInfo[i] .MdiRadInfo->ClientPos.x+MdiInfo[i].MdiRadInfo->ClientSize.cx)&&MdiInfo[i].MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW)1526 RadInfo.DraggingRect[0].right=MdiInfo[i] .MdiRadInfo->ClientPos.x+MdiInfo[i].MdiRadInfo->ClientSize.cx;1526 else if((mouse.x>MdiInfo[i]->MdiRadInfo->ClientPos.x+MdiInfo[i]->MdiRadInfo->ClientSize.cx)&&MdiInfo[i]->MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW) 1527 RadInfo.DraggingRect[0].right=MdiInfo[i]->MdiRadInfo->ClientPos.x+MdiInfo[i]->MdiRadInfo->ClientSize.cx; 1527 1528 else RadInfo.DraggingRect[0].right=mouse.x-LEVER_THICK; 1528 1529 1529 1530 if(mouse.y-LEVER_THICK-MIN_ITEM_Y<=RadInfo.DraggingRect[0].top) 1530 1531 RadInfo.DraggingRect[0].bottom=RadInfo.DraggingRect[0].top+MIN_ITEM_Y; 1531 else if((mouse.y>MdiInfo[i] .MdiRadInfo->ClientPos.y+MdiInfo[i].MdiRadInfo->ClientSize.cy)&&MdiInfo[i].MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW)1532 RadInfo.DraggingRect[0].bottom=MdiInfo[i] .MdiRadInfo->ClientPos.y+MdiInfo[i].MdiRadInfo->ClientSize.cy;1532 else if((mouse.y>MdiInfo[i]->MdiRadInfo->ClientPos.y+MdiInfo[i]->MdiRadInfo->ClientSize.cy)&&MdiInfo[i]->MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW) 1533 RadInfo.DraggingRect[0].bottom=MdiInfo[i]->MdiRadInfo->ClientPos.y+MdiInfo[i]->MdiRadInfo->ClientSize.cy; 1533 1534 else RadInfo.DraggingRect[0].bottom=mouse.y-LEVER_THICK; 1534 1535 DrawFrame(hwnd,i,i2,&RadInfo.DraggingRect[0],&RadInfo.OldDraggingRect[0],0); … … 1537 1538 if(RadInfo.DraggingRect[0].right-MIN_ITEM_X<=(mouse.x+LEVER_THICK)) 1538 1539 RadInfo.DraggingRect[0].left=RadInfo.DraggingRect[0].right-MIN_ITEM_X; 1539 else if(mouse.x+LEVER_THICK<MdiInfo[i] .MdiRadInfo->ClientPos.x)1540 RadInfo.DraggingRect[0].left=MdiInfo[i] .MdiRadInfo->ClientPos.x;1540 else if(mouse.x+LEVER_THICK<MdiInfo[i]->MdiRadInfo->ClientPos.x) 1541 RadInfo.DraggingRect[0].left=MdiInfo[i]->MdiRadInfo->ClientPos.x; 1541 1542 else RadInfo.DraggingRect[0].left=mouse.x+LEVER_THICK; 1542 1543 DrawFrame(hwnd,i,i2,&RadInfo.DraggingRect[0],&RadInfo.OldDraggingRect[0],0); … … 1545 1546 if(mouse.x-LEVER_THICK-MIN_ITEM_X<=RadInfo.DraggingRect[0].left) 1546 1547 RadInfo.DraggingRect[0].right=RadInfo.DraggingRect[0].left+MIN_ITEM_X; 1547 else if((mouse.x>MdiInfo[i] .MdiRadInfo->ClientPos.x+MdiInfo[i].MdiRadInfo->ClientSize.cx)&&MdiInfo[i].MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW)1548 RadInfo.DraggingRect[0].right=MdiInfo[i] .MdiRadInfo->ClientPos.x+MdiInfo[i].MdiRadInfo->ClientSize.cx;1548 else if((mouse.x>MdiInfo[i]->MdiRadInfo->ClientPos.x+MdiInfo[i]->MdiRadInfo->ClientSize.cx)&&MdiInfo[i]->MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW) 1549 RadInfo.DraggingRect[0].right=MdiInfo[i]->MdiRadInfo->ClientPos.x+MdiInfo[i]->MdiRadInfo->ClientSize.cx; 1549 1550 else RadInfo.DraggingRect[0].right=mouse.x-LEVER_THICK; 1550 1551 DrawFrame(hwnd,i,i2,&RadInfo.DraggingRect[0],&RadInfo.OldDraggingRect[0],0); … … 1553 1554 if(RadInfo.DraggingRect[0].bottom-MIN_ITEM_Y<=(mouse.y+LEVER_THICK)) 1554 1555 RadInfo.DraggingRect[0].top=RadInfo.DraggingRect[0].bottom-MIN_ITEM_Y; 1555 else if(mouse.y+LEVER_THICK<MdiInfo[i] .MdiRadInfo->ClientPos.y)1556 RadInfo.DraggingRect[0].top=MdiInfo[i] .MdiRadInfo->ClientPos.y;1556 else if(mouse.y+LEVER_THICK<MdiInfo[i]->MdiRadInfo->ClientPos.y) 1557 RadInfo.DraggingRect[0].top=MdiInfo[i]->MdiRadInfo->ClientPos.y; 1557 1558 else RadInfo.DraggingRect[0].top=mouse.y+LEVER_THICK; 1558 1559 DrawFrame(hwnd,i,i2,&RadInfo.DraggingRect[0],&RadInfo.OldDraggingRect[0],0); … … 1561 1562 if(mouse.y-LEVER_THICK-MIN_ITEM_Y<=RadInfo.DraggingRect[0].top) 1562 1563 RadInfo.DraggingRect[0].bottom=RadInfo.DraggingRect[0].top+MIN_ITEM_Y; 1563 else if((mouse.y>MdiInfo[i] .MdiRadInfo->ClientPos.y+MdiInfo[i].MdiRadInfo->ClientSize.cy)&&MdiInfo[i].MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW)1564 RadInfo.DraggingRect[0].bottom=MdiInfo[i] .MdiRadInfo->ClientPos.y+MdiInfo[i].MdiRadInfo->ClientSize.cy;1564 else if((mouse.y>MdiInfo[i]->MdiRadInfo->ClientPos.y+MdiInfo[i]->MdiRadInfo->ClientSize.cy)&&MdiInfo[i]->MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW) 1565 RadInfo.DraggingRect[0].bottom=MdiInfo[i]->MdiRadInfo->ClientPos.y+MdiInfo[i]->MdiRadInfo->ClientSize.cy; 1565 1566 else RadInfo.DraggingRect[0].bottom=mouse.y-LEVER_THICK; 1566 1567 DrawFrame(hwnd,i,i2,&RadInfo.DraggingRect[0],&RadInfo.OldDraggingRect[0],0); … … 1568 1569 else if(RadInfo.NowDragging==FRAME_INSIDE){ 1569 1570 i3=0; 1570 while(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]!=-1){1571 while(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]!=-1){ 1571 1572 i4=RadInfo.DragStartRect[i3].left+mouse.x-RadInfo.DragStartPos.x; 1572 1573 1573 if(i4>MdiInfo[i] .MdiRadInfo->ClientPos.x){1574 if(i4>MdiInfo[i]->MdiRadInfo->ClientPos.x){ 1574 1575 i4=RadInfo.DragStartRect[i3].right+mouse.x-RadInfo.DragStartPos.x; 1575 if(i4<MdiInfo[i] .MdiRadInfo->ClientPos.x+MdiInfo[i].MdiRadInfo->ClientSize.cx) i4=0;1576 else i4-=MdiInfo[i] .MdiRadInfo->ClientPos.x+MdiInfo[i].MdiRadInfo->ClientSize.cx;1576 if(i4<MdiInfo[i]->MdiRadInfo->ClientPos.x+MdiInfo[i]->MdiRadInfo->ClientSize.cx) i4=0; 1577 else i4-=MdiInfo[i]->MdiRadInfo->ClientPos.x+MdiInfo[i]->MdiRadInfo->ClientSize.cx; 1577 1578 } 1578 else i4-=MdiInfo[i] .MdiRadInfo->ClientPos.x;1579 else i4-=MdiInfo[i]->MdiRadInfo->ClientPos.x; 1579 1580 //i4は枠外に出たときのポインタと壁にあたったコントロールとの差 1580 1581 RadInfo.DraggingRect[i3].left=RadInfo.DragStartRect[i3].left+mouse.x-RadInfo.DragStartPos.x-i4; … … 1582 1583 1583 1584 i4=RadInfo.DragStartRect[i3].top+mouse.y-RadInfo.DragStartPos.y; 1584 if(i4>MdiInfo[i] .MdiRadInfo->ClientPos.y){1585 if(i4>MdiInfo[i]->MdiRadInfo->ClientPos.y){ 1585 1586 i4=RadInfo.DragStartRect[i3].bottom+mouse.y-RadInfo.DragStartPos.y; 1586 if(i4<MdiInfo[i] .MdiRadInfo->ClientPos.y+MdiInfo[i].MdiRadInfo->ClientSize.cy) i4=0;1587 else i4-=MdiInfo[i] .MdiRadInfo->ClientPos.y+MdiInfo[i].MdiRadInfo->ClientSize.cy;1587 if(i4<MdiInfo[i]->MdiRadInfo->ClientPos.y+MdiInfo[i]->MdiRadInfo->ClientSize.cy) i4=0; 1588 else i4-=MdiInfo[i]->MdiRadInfo->ClientPos.y+MdiInfo[i]->MdiRadInfo->ClientSize.cy; 1588 1589 } 1589 else i4-=MdiInfo[i] .MdiRadInfo->ClientPos.y;1590 else i4-=MdiInfo[i]->MdiRadInfo->ClientPos.y; 1590 1591 RadInfo.DraggingRect[i3].top=RadInfo.DragStartRect[i3].top+mouse.y-RadInfo.DragStartPos.y-i4; 1591 1592 RadInfo.DraggingRect[i3].bottom=RadInfo.DragStartRect[i3].bottom+mouse.y-RadInfo.DragStartPos.y-i4; 1592 1593 1593 if(MdiInfo[i] .MdiRadInfo->SelectingItem[1]==-1) i4=1;1594 if(MdiInfo[i]->MdiRadInfo->SelectingItem[1]==-1) i4=1; 1594 1595 else i4=0; 1595 1596 DrawFrame(hwnd,i,i2,&RadInfo.DraggingRect[i3],&RadInfo.OldDraggingRect[i3],i4); … … 1636 1637 hParent=GetParent(hwnd); 1637 1638 i=GetWndNum(hParent); 1638 i2=GetWndInfoNum(MdiInfo[i] .path);1639 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1640 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){1641 if(MdiInfo[i] .MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW){1639 i2=GetWndInfoNum(MdiInfo[i]->path); 1640 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1641 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){ 1642 if(MdiInfo[i]->MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW){ 1642 1643 temp2[0]=0; 1643 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->Control==CT_BUTTON||1644 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX||1645 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX||1646 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON||1647 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC)1644 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->Control==CT_BUTTON|| 1645 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX|| 1646 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->Control==CT_IMAGEBOX|| 1647 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON|| 1648 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC) 1648 1649 { 1649 1650 sprintf(temporary,"%s_%s_Click", 1650 1651 pWindowInfo->GetName().c_str(), 1651 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str()1652 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str() 1652 1653 ); 1653 1654 } 1654 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->Control==CT_COMBOBOX)1655 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->Control==CT_COMBOBOX) 1655 1656 { 1656 1657 sprintf(temporary,"%s_%s_EditChange", 1657 1658 pWindowInfo->GetName().c_str(), 1658 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());1659 } 1660 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT)1659 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 1660 } 1661 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT) 1661 1662 { 1662 1663 sprintf(temporary,"%s_%s_Change", 1663 1664 pWindowInfo->GetName().c_str(), 1664 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());1665 } 1666 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX)1665 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 1666 } 1667 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX) 1667 1668 { 1668 1669 sprintf(temporary,"%s_%s_SelChange", 1669 1670 pWindowInfo->GetName().c_str(), 1670 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());1671 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 1671 1672 } 1672 1673 else temporary[0]=0; … … 1680 1681 hParent=GetParent(hwnd); 1681 1682 i=GetWndNum(hParent); 1682 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1683 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){1684 if(MdiInfo[i] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){1683 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1684 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){ 1685 if(MdiInfo[i]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ 1685 1686 PointAndSize.pos=pWindowInfo->pos; 1686 1687 PointAndSize.size=pWindowInfo->size; 1687 1688 if(GetKeyState(VK_SHIFT)&0x8000){ 1688 1689 if(wParam==VK_RIGHT||wParam==VK_LEFT||wParam==VK_DOWN||wParam==VK_UP) 1689 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize);1690 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1690 1691 1691 1692 if(wParam==VK_RIGHT) … … 1709 1710 } 1710 1711 else{ 1711 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->pos;1712 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size;1712 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->pos; 1713 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size; 1713 1714 if(wParam==VK_RIGHT){ 1714 1715 if(GetKeyState(VK_SHIFT)&0x8000){ 1715 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize);1716 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size.cx++;1716 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1717 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size.cx++; 1717 1718 } 1718 1719 else{ 1719 1720 for(i3=0;;i3++){ 1720 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]==-1) break;1721 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos;1722 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->size;1723 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize);1724 1725 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos.x++;1721 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]==-1) break; 1722 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos; 1723 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->size; 1724 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 1725 1726 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos.x++; 1726 1727 } 1727 1728 } … … 1734 1735 else if(wParam==VK_LEFT){ 1735 1736 if(GetKeyState(VK_SHIFT)&0x8000){ 1736 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize);1737 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size.cx--;1737 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1738 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size.cx--; 1738 1739 } 1739 1740 else{ 1740 1741 for(i3=0;;i3++){ 1741 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]==-1) break;1742 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos;1743 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->size;1744 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize);1745 1746 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos.x--;1742 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]==-1) break; 1743 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos; 1744 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->size; 1745 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 1746 1747 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos.x--; 1747 1748 } 1748 1749 } … … 1755 1756 else if(wParam==VK_UP){ 1756 1757 if(GetKeyState(VK_SHIFT)&0x8000){ 1757 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize);1758 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size.cy--;1758 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1759 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size.cy--; 1759 1760 } 1760 1761 else{ 1761 1762 for(i3=0;;i3++){ 1762 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]==-1) break;1763 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos;1764 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->size;1765 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize);1766 1767 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos.y--;1763 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]==-1) break; 1764 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos; 1765 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->size; 1766 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 1767 1768 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos.y--; 1768 1769 } 1769 1770 } … … 1776 1777 else if(wParam==VK_DOWN){ 1777 1778 if(GetKeyState(VK_SHIFT)&0x8000){ 1778 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize);1779 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size.cy++;1779 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1780 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size.cy++; 1780 1781 } 1781 1782 else{ 1782 1783 for(i3=0;;i3++){ 1783 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]==-1) break;1784 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos;1785 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->size;1786 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize);1787 1788 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos.y++;1784 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]==-1) break; 1785 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos; 1786 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->size; 1787 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 1788 1789 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos.y++; 1789 1790 } 1790 1791 } … … 1803 1804 case WM_SETFOCUS: 1804 1805 i=GetWndNum(GetParent(hwnd)); 1805 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==NON_TOOL)1806 MdiInfo[i] .MdiRadInfo->ButtonSelect=IDC_TOOL_MOUSE;1806 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==NON_TOOL) 1807 MdiInfo[i]->MdiRadInfo->ButtonSelect=IDC_TOOL_MOUSE; 1807 1808 InvalidateRect(hwnd,NULL,0); 1808 1809 return 0; … … 1810 1811 i=GetWndNum(GetParent(hwnd)); 1811 1812 if(i==-1) return 0; //ウィンドウが破棄された場合 1812 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE)1813 MdiInfo[i] .MdiRadInfo->ButtonSelect=NON_TOOL;1813 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE) 1814 MdiInfo[i]->MdiRadInfo->ButtonSelect=NON_TOOL; 1814 1815 InvalidateRect(hwnd,NULL,0); 1815 1816 return 0; … … 1817 1818 i=GetWndNum(GetParent(hwnd)); 1818 1819 if(i==-1) return 0; //ウィンドウが初期状態の場合 1819 i2=GetWndInfoNum(MdiInfo[i] .path);1820 i2=GetWndInfoNum(MdiInfo[i]->path); 1820 1821 1821 1822 ScrollInfo.cbSize=sizeof(SCROLLINFO); … … 1828 1829 hdc=BeginPaint(hwnd,&ps); 1829 1830 BitBlt(hdc,0,0,ScreenX*2,ScreenY*2, 1830 MdiInfo[i] .MdiRadInfo->hMemDC,si2.nPos,ScrollInfo.nPos,SRCCOPY);1831 MdiInfo[i]->MdiRadInfo->hMemDC,si2.nPos,ScrollInfo.nPos,SRCCOPY); 1831 1832 EndPaint(hwnd,&ps); 1832 1833 1833 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE||MdiInfo[i].MdiRadInfo->ButtonSelect==NON_TOOL)1834 DrawSelectingRect(hwnd,i,i2,MdiInfo[i] .MdiRadInfo->ButtonSelect);1834 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE||MdiInfo[i]->MdiRadInfo->ButtonSelect==NON_TOOL) 1835 DrawSelectingRect(hwnd,i,i2,MdiInfo[i]->MdiRadInfo->ButtonSelect); 1835 1836 return 0; 1836 1837 case WM_CONTEXTMENU: … … 1841 1842 SetFocus(hwnd); 1842 1843 i=GetWndNum(hParent); 1843 i2=GetWndInfoNum(MdiInfo[i] .path);1844 1845 if(MdiInfo[i] .MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){1844 i2=GetWndInfoNum(MdiInfo[i]->path); 1845 1846 if(MdiInfo[i]->MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){ 1846 1847 mouse.x=LOWORD(lParam); 1847 1848 mouse.y=HIWORD(lParam); … … 1851 1852 InvalidateRect(hwnd,NULL,0); 1852 1853 extern HMENU hRadMenuBase; 1853 if(MdiInfo[i] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW)1854 if(MdiInfo[i]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) 1854 1855 TrackPopupMenu(GetSubMenu(hRadMenuBase,0),TPM_LEFTALIGN,LOWORD(lParam),HIWORD(lParam),0,hwnd,0); 1855 1856 else TrackPopupMenu(GetSubMenu(hRadMenuBase,1),TPM_LEFTALIGN,LOWORD(lParam),HIWORD(lParam),0,hwnd,0); … … 1869 1870 hParent=GetParent(hwnd); 1870 1871 i=GetWndNum(hParent); 1871 i2=GetWndInfoNum(MdiInfo[i] .path);1872 i2=GetWndInfoNum(MdiInfo[i]->path); 1872 1873 1873 1874 //削除順序を考慮しなければならないので、バブルソートを行う 1874 1875 int i5,i6; 1875 1876 for(i5=0;;i5++){ 1876 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i5]==-1) break;1877 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i5]==-1) break; 1877 1878 } 1878 1879 for(i3=0;i3<i5-1;i3++){ 1879 1880 for(i4=i5-1;i4>i3;i4--){ 1880 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i4] >1881 MdiInfo[i] .MdiRadInfo->SelectingItem[i4-1]){1882 i6=MdiInfo[i] .MdiRadInfo->SelectingItem[i4];1883 MdiInfo[i] .MdiRadInfo->SelectingItem[i4]=1884 MdiInfo[i] .MdiRadInfo->SelectingItem[i4-1];1885 MdiInfo[i] .MdiRadInfo->SelectingItem[i4-1]=i6;1881 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i4] > 1882 MdiInfo[i]->MdiRadInfo->SelectingItem[i4-1]){ 1883 i6=MdiInfo[i]->MdiRadInfo->SelectingItem[i4]; 1884 MdiInfo[i]->MdiRadInfo->SelectingItem[i4]= 1885 MdiInfo[i]->MdiRadInfo->SelectingItem[i4-1]; 1886 MdiInfo[i]->MdiRadInfo->SelectingItem[i4-1]=i6; 1886 1887 } 1887 1888 } … … 1890 1891 1891 1892 for(i3=0;;i3++){ 1892 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]==-1) break;1893 DeleteDlgItem(i,i2,MdiInfo[i] .MdiRadInfo->SelectingItem[i3],1);1894 } 1895 for(i3=0;i3<MAX_RAD_SELITEM;i3++) MdiInfo[i] .MdiRadInfo->SelectingItem[i3]=-1;1893 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]==-1) break; 1894 DeleteDlgItem(i,i2,MdiInfo[i]->MdiRadInfo->SelectingItem[i3],1); 1895 } 1896 for(i3=0;i3<MAX_RAD_SELITEM;i3++) MdiInfo[i]->MdiRadInfo->SelectingItem[i3]=-1; 1896 1897 1897 1898 ResetState_EditMenu(); … … 1955 1956 else{ 1956 1957 //ツールボタンウィンドウ(長さ、i) 1957 GetClientRect(GetWindow(MdiInfo[WndNum] .MdiRadInfo->hTools,GW_CHILD),&rect);1958 GetClientRect(GetWindow(MdiInfo[WndNum]->MdiRadInfo->hTools,GW_CHILD),&rect); 1958 1959 if(height>rect.bottom+1) i=rect.bottom+1; 1959 1960 else i=height; 1960 1961 1961 1962 //プロパティウィンドウ(長さ、i2) 1962 GetClientRect(GetWindow(MdiInfo[WndNum] .MdiRadInfo->hProperty,GW_CHILD),&rect);1963 GetClientRect(GetWindow(MdiInfo[WndNum]->MdiRadInfo->hProperty,GW_CHILD),&rect); 1963 1964 i2=height-i; 1964 1965 … … 1968 1969 } 1969 1970 } 1970 MoveWindow(MdiInfo[WndNum] .MdiRadInfo->hTools,weight-172,0,172,i,1);1971 MoveWindow(MdiInfo[WndNum] .MdiRadInfo->hProperty,weight-172,i,172,i2,1);1972 1973 GetWindowRect(MdiInfo[WndNum] .MdiRadInfo->hSupport,&rect);1971 MoveWindow(MdiInfo[WndNum]->MdiRadInfo->hTools,weight-172,0,172,i,1); 1972 MoveWindow(MdiInfo[WndNum]->MdiRadInfo->hProperty,weight-172,i,172,i2,1); 1973 1974 GetWindowRect(MdiInfo[WndNum]->MdiRadInfo->hSupport,&rect); 1974 1975 rect.right-=rect.left; 1975 1976 rect.bottom-=rect.top; 1976 1977 1977 1978 //RADウィンドウ 1978 MoveWindow(MdiInfo[WndNum] .MdiRadInfo->hRad,0,0,weight-172,height-rect.bottom,1);1979 MoveWindow(MdiInfo[WndNum]->MdiRadInfo->hRad,0,0,weight-172,height-rect.bottom,1); 1979 1980 1980 1981 //サポートウィンドウ 1981 MoveWindow(MdiInfo[WndNum] .MdiRadInfo->hSupport,0,height-rect.bottom,weight-172,rect.bottom,1);1982 MoveWindow(MdiInfo[WndNum]->MdiRadInfo->hSupport,0,height-rect.bottom,weight-172,rect.bottom,1); 1982 1983 } 1983 1984 LRESULT CALLBACK MDIClientWindow_Rad(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){ … … 1995 1996 if(i==-1) return 0; //ウィンドウが初期状態の場合 1996 1997 1997 i=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[i] .title.c_str());1998 i=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[i]->title.c_str()); 1998 1999 SendMessage(hDocCombo,CB_SETCURSEL,i,0); 1999 2000 SetStatusText(NULL); -
trunk/ab5.0/abdev/abdev/RadSupport.cpp
r625 r629 195 195 bSupportDlg_NoChange=1; 196 196 197 hSupport=MdiInfo[WndNum] .MdiRadInfo->hSupport;197 hSupport=MdiInfo[WndNum]->MdiRadInfo->hSupport; 198 198 199 199 if(RadInfo.NowDragging>=FRAME_CHANGEPOS_START&&RadInfo.NowDragging<=FRAME_CHANGEPOS_END&& 200 (!(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]!=-1&&MdiInfo[WndNum].MdiRadInfo->SelectingItem[1]!=-1))){201 sprintf(temporary,"%d",RadInfo.DraggingRect[0].left-MdiInfo[WndNum] .MdiRadInfo->ClientPos.x);200 (!(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]!=-1&&MdiInfo[WndNum]->MdiRadInfo->SelectingItem[1]!=-1))){ 201 sprintf(temporary,"%d",RadInfo.DraggingRect[0].left-MdiInfo[WndNum]->MdiRadInfo->ClientPos.x); 202 202 SetDlgItemText(hSupport,IDC_XPOS,temporary); 203 203 204 sprintf(temporary,"%d",RadInfo.DraggingRect[0].top-MdiInfo[WndNum] .MdiRadInfo->ClientPos.y);204 sprintf(temporary,"%d",RadInfo.DraggingRect[0].top-MdiInfo[WndNum]->MdiRadInfo->ClientPos.y); 205 205 SetDlgItemText(hSupport,IDC_YPOS,temporary); 206 206 … … 211 211 SetDlgItemText(hSupport,IDC_HEIGHT,temporary); 212 212 } 213 else if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){213 else if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ 214 214 EnableWindow(GetDlgItem(hSupport,IDC_XPOS),0); 215 215 EnableWindow(GetDlgItem(hSupport,IDC_YPOS),0); … … 232 232 EnableWindow(GetDlgItem(hSupport,IDC_YPOS),1); 233 233 234 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[1]!=-1){234 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[1]!=-1){ 235 235 EnableWindow(GetDlgItem(hSupport,IDC_SPIN1),0); 236 236 EnableWindow(GetDlgItem(hSupport,IDC_SPIN2),0); … … 249 249 EnableWindow(GetDlgItem(hSupport,IDC_SPIN4),1); 250 250 251 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->pos.x);251 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->pos.x); 252 252 SetDlgItemText(hSupport,IDC_XPOS,temporary); 253 253 254 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->pos.y);254 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->pos.y); 255 255 SetDlgItemText(hSupport,IDC_YPOS,temporary); 256 256 257 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->size.cx);257 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->size.cx); 258 258 SetDlgItemText(hSupport,IDC_WIDTH,temporary); 259 259 260 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->size.cy);260 sprintf(temporary,"%d",windowInfo.childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->size.cy); 261 261 SetDlgItemText(hSupport,IDC_HEIGHT,temporary); 262 262 } … … 291 291 (void (__cdecl *)(void *))ShowTestWindow, 292 292 0, 293 (void *)GetWndInfoNum(MdiInfo[GetWndNum(GetParent(hwnd))] .path));293 (void *)GetWndInfoNum(MdiInfo[GetWndNum(GetParent(hwnd))]->path)); 294 294 return 1; 295 295 case IDC_XPOS: … … 313 313 314 314 i=GetWndNum(GetParent(hwnd)); 315 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);315 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 316 316 317 317 for(i3=0;;i3++){ 318 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]==-1) break;319 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos;320 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->size;321 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize);318 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]==-1) break; 319 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos; 320 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->size; 321 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[i3],(DWORD)&PointAndSize); 322 322 } 323 323 … … 325 325 if(temporary[0]){ 326 326 for(i3=0;;i3++){ 327 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]==-1) break;328 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos.x=atol(temporary);327 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]==-1) break; 328 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos.x=atol(temporary); 329 329 } 330 330 } … … 333 333 if(temporary[0]){ 334 334 for(i3=0;;i3++){ 335 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]==-1) break;336 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->pos.y=atol(temporary);335 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]==-1) break; 336 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->pos.y=atol(temporary); 337 337 } 338 338 } … … 340 340 GetDlgItemText(hwnd,IDC_WIDTH,temporary,255); 341 341 if(temporary[0]){ 342 if(MdiInfo[i] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW)342 if(MdiInfo[i]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) 343 343 pWindowInfo->size.cx=atol(temporary); 344 344 else{ 345 345 for(i3=0;;i3++){ 346 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]==-1) break;347 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->size.cx=atol(temporary);346 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]==-1) break; 347 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->size.cx=atol(temporary); 348 348 } 349 349 } … … 352 352 GetDlgItemText(hwnd,IDC_HEIGHT,temporary,255); 353 353 if(temporary[0]){ 354 if(MdiInfo[i] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW)354 if(MdiInfo[i]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) 355 355 pWindowInfo->size.cy=atol(temporary); 356 356 else{ 357 357 for(i3=0;;i3++){ 358 if(MdiInfo[i] .MdiRadInfo->SelectingItem[i3]==-1) break;359 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[i3]]->size.cy=atol(temporary);358 if(MdiInfo[i]->MdiRadInfo->SelectingItem[i3]==-1) break; 359 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[i3]]->size.cy=atol(temporary); 360 360 } 361 361 } … … 366 366 367 367 //スクロールバーをリセット 368 GetClientRect(MdiInfo[i] .MdiRadInfo->hRad,&rect);368 GetClientRect(MdiInfo[i]->MdiRadInfo->hRad,&rect); 369 369 ResetScrollbarOfRadEditor(i,rect.right,rect.bottom); 370 370 -
trunk/ab5.0/abdev/abdev/RadToolsAndPropertyProc.cpp
r625 r629 153 153 BringWindowToTop(hParent); 154 154 i=GetWndNum(hParent); 155 i2=GetWndInfoNum(MdiInfo[i] .path);156 MdiInfo[i] .MdiRadInfo->ButtonSelect=IDC_TOOL_MOUSE;157 DrawSelectingRect(MdiInfo[i] .MdiRadInfo->hRad,i,i2,IDC_TOOL_MOUSE);158 SetFocus(MdiInfo[i] .MdiRadInfo->hRad);155 i2=GetWndInfoNum(MdiInfo[i]->path); 156 MdiInfo[i]->MdiRadInfo->ButtonSelect=IDC_TOOL_MOUSE; 157 DrawSelectingRect(MdiInfo[i]->MdiRadInfo->hRad,i,i2,IDC_TOOL_MOUSE); 158 SetFocus(MdiInfo[i]->MdiRadInfo->hRad); 159 159 return 1; 160 160 case IDC_TOOL_BUTTON: … … 178 178 BringWindowToTop(hParent); 179 179 WndNum=GetWndNum(hParent); 180 MdiInfo[WndNum] .MdiRadInfo->ButtonSelect=LOWORD(wParam);181 InvalidateRect(MdiInfo[WndNum] .MdiRadInfo->hRad,NULL,0);180 MdiInfo[WndNum]->MdiRadInfo->ButtonSelect=LOWORD(wParam); 181 InvalidateRect(MdiInfo[WndNum]->MdiRadInfo->hRad,NULL,0); 182 182 return 1; 183 183 } … … 357 357 SetPosCenter(hwnd); 358 358 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 359 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);359 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 360 360 SetDlgItemText(hwnd,IDC_WINDOWNAME,pWindowInfo->GetName().c_str()); 361 361 SetDlgItemText(hwnd,IDC_WINDOWHANDLE,( "h" + pWindowInfo->GetName() ).c_str()); … … 384 384 385 385 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 386 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);386 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 387 387 388 388 RAD_UNDOSTATE_NAME names,NoticeNames; … … 406 406 407 407 pWindowInfo->SetName( names.name ); 408 MdiInfo[i] .path = names.name;408 MdiInfo[i]->path = names.name; 409 409 410 410 EndDialog(hwnd,1); … … 442 442 SetPosCenter(hwnd); 443 443 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 444 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);444 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 445 445 if(pWindowInfo->GetExStyle()&WS_EX_TOPMOST) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOPMOST,BM_SETCHECK,BST_CHECKED,0); 446 446 if(pWindowInfo->GetExStyle()&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0); … … 481 481 style|=WS_EX_CONTROLPARENT; 482 482 483 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);483 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 484 484 485 485 if(style==pWindowInfo->GetExStyle()){ … … 513 513 bInitial=1; 514 514 i=GetWndNum(GetParent(GetParent(hwnd))); 515 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);515 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 516 516 517 517 SetDlgItemText(hwnd,IDC_WINDOWNAME,pWindowInfo->GetName().c_str()); … … 675 675 if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW_RENAME),hwnd,(DLGPROC)DlgRadProperty_Window_Rename)) return 1; 676 676 i=GetWndNum(GetParent(GetParent(hwnd))); 677 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);677 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 678 678 SetDlgItemText(hwnd,IDC_WINDOWNAME,pWindowInfo->GetName().c_str()); 679 679 SetDlgItemText(hwnd,IDC_HANDLE,pWindowInfo->GetHandleName().c_str()); … … 684 684 if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMECAPTION),hwnd,(DLGPROC)DlgRadProperty_Item_RenameCaption)) return 1; 685 685 i=GetWndNum(GetParent(GetParent(hwnd))); 686 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);686 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 687 687 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->GetCaption().c_str()); 688 688 return 1; … … 691 691 { 692 692 i=GetWndNum(GetParent(GetParent(hwnd))); 693 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);693 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 694 694 LOGFONT lf; 695 695 lf=pWindowInfo->LogFont; … … 706 706 if(HIWORD(wParam)==CBN_SELCHANGE){ 707 707 i=GetWndNum(GetParent(GetParent(hwnd))); 708 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);708 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 709 709 710 710 i3=SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_GETCURSEL,0,0); … … 782 782 if(HIWORD(wParam)==CBN_SELCHANGE){ 783 783 i=GetWndNum(GetParent(GetParent(hwnd))); 784 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);784 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 785 785 786 786 //変更情報 … … 806 806 if(HIWORD(wParam)==CBN_SELCHANGE){ 807 807 i=GetWndNum(GetParent(GetParent(hwnd))); 808 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);808 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 809 809 810 810 //変更情報 … … 830 830 if(HIWORD(wParam)==CBN_SELCHANGE){ 831 831 i=GetWndNum(GetParent(GetParent(hwnd))); 832 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);832 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 833 833 834 834 //変更情報 … … 851 851 if(HIWORD(wParam)==CBN_SELCHANGE){ 852 852 i=GetWndNum(GetParent(GetParent(hwnd))); 853 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);853 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 854 854 855 855 //変更情報 … … 875 875 if(HIWORD(wParam)==BN_CLICKED){ 876 876 i=GetWndNum(GetParent(GetParent(hwnd))); 877 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);877 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 878 878 879 879 //変更情報 … … 894 894 if(HIWORD(wParam)==BN_CLICKED){ 895 895 i=GetWndNum(GetParent(GetParent(hwnd))); 896 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);896 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 897 897 898 898 //変更情報 … … 910 910 if(HIWORD(wParam)==BN_CLICKED){ 911 911 i=GetWndNum(GetParent(GetParent(hwnd))); 912 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);912 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 913 913 914 914 //変更情報 … … 926 926 if(HIWORD(wParam)==BN_CLICKED){ 927 927 i=GetWndNum(GetParent(GetParent(hwnd))); 928 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);928 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 929 929 930 930 //変更情報 … … 942 942 if(HIWORD(wParam)==BN_CLICKED){ 943 943 i=GetWndNum(GetParent(GetParent(hwnd))); 944 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);944 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 945 945 946 946 //変更情報 … … 958 958 if(HIWORD(wParam)==BN_CLICKED){ 959 959 i=GetWndNum(GetParent(GetParent(hwnd))); 960 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);960 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 961 961 962 962 //変更情報 … … 973 973 if(HIWORD(wParam)==BN_CLICKED){ 974 974 i=GetWndNum(GetParent(GetParent(hwnd))); 975 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);975 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 976 976 977 977 //変更情報 … … 988 988 if(HIWORD(wParam)==BN_CLICKED){ 989 989 i=GetWndNum(GetParent(GetParent(hwnd))); 990 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);990 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 991 991 992 992 //変更情報 … … 1004 1004 if(HIWORD(wParam)==BN_CLICKED){ 1005 1005 i=GetWndNum(GetParent(GetParent(hwnd))); 1006 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1006 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1007 1007 1008 1008 //変更情報 … … 1020 1020 if(HIWORD(wParam)==BN_CLICKED){ 1021 1021 i=GetWndNum(GetParent(GetParent(hwnd))); 1022 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1022 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1023 1023 1024 1024 //変更情報 … … 1036 1036 if(HIWORD(wParam)==BN_CLICKED){ 1037 1037 i=GetWndNum(GetParent(GetParent(hwnd))); 1038 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1038 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1039 1039 1040 1040 //変更情報 … … 1052 1052 if(HIWORD(wParam)==BN_CLICKED){ 1053 1053 i=GetWndNum(GetParent(GetParent(hwnd))); 1054 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1054 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1055 1055 1056 1056 //変更情報 … … 1069 1069 if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW_EXSTYLE),hwnd,(DLGPROC)DlgRadProperty_Window_ExStyle)) return 1; 1070 1070 i=GetWndNum(GetParent(GetParent(hwnd))); 1071 DrawRadWindow(i,GetWndInfo(MdiInfo[i] .path));1071 DrawRadWindow(i,GetWndInfo(MdiInfo[i]->path)); 1072 1072 return 1; 1073 1073 … … 1077 1077 if(HIWORD(wParam)==BN_CLICKED){ 1078 1078 i=GetWndNum(GetParent(GetParent(hwnd))); 1079 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1079 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1080 1080 1081 1081 //変更情報 … … 1114 1114 SetPosCenter(hwnd); 1115 1115 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1116 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1117 if(MdiInfo[i] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW)1116 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1117 if(MdiInfo[i]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) 1118 1118 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->GetCaption().c_str()); 1119 1119 else 1120 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());1120 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetCaption().c_str()); 1121 1121 break; 1122 1122 } … … 1126 1126 { 1127 1127 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1128 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1128 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1129 1129 1130 1130 i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_CAPTION))+1; 1131 1131 temporary=(char *)HeapAlloc(hHeap,0,i3); 1132 1132 GetDlgItemText(hwnd,IDC_CAPTION,temporary,i3); 1133 if(MdiInfo[i] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){1133 if(MdiInfo[i]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ 1134 1134 if( pWindowInfo->GetCaption() == temporary){ 1135 1135 HeapDefaultFree(temporary); … … 1139 1139 1140 1140 //変更情報を更新 1141 Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->GetCaption());1141 Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->GetCaption()); 1142 1142 1143 1143 pWindowInfo->SetCaption( temporary ); 1144 1144 } 1145 1145 else{ 1146 if( pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetCaption() == temporary )1146 if( pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetCaption() == temporary ) 1147 1147 { 1148 1148 HeapDefaultFree(temporary); … … 1152 1152 1153 1153 //変更情報を更新 1154 Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption());1155 1156 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->SetCaption( temporary );1157 1158 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC){1154 Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetCaption()); 1155 1156 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->SetCaption( temporary ); 1157 1158 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC){ 1159 1159 //スタティック テキスト 1160 1160 //テキストが表示できるようにサイズを拡大する 1161 1161 1162 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->pos;1163 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size;1164 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize);1162 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->pos; 1163 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size; 1164 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1165 1165 1166 1166 HFONT hFont,hOldFont; 1167 1167 hFont=CreateFontIndirect(&pWindowInfo->LogFont); 1168 hOldFont=(HFONT)SelectObject(MdiInfo[i] .MdiRadInfo->hMemDC,hFont);1169 GetTextExtentPoint32(MdiInfo[i] .MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size);1170 SelectObject(MdiInfo[i] .MdiRadInfo->hMemDC,hOldFont);1168 hOldFont=(HFONT)SelectObject(MdiInfo[i]->MdiRadInfo->hMemDC,hFont); 1169 GetTextExtentPoint32(MdiInfo[i]->MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size); 1170 SelectObject(MdiInfo[i]->MdiRadInfo->hMemDC,hOldFont); 1171 1171 DeleteObject(hFont); 1172 1172 … … 1174 1174 PointAndSize.size.cx+=5; 1175 1175 1176 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size.cx<PointAndSize.size.cx)1177 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size.cx=PointAndSize.size.cx;1176 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size.cx<PointAndSize.size.cx) 1177 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size.cx=PointAndSize.size.cx; 1178 1178 } 1179 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX){1179 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->Control==CT_CHECKBOX){ 1180 1180 //チェック ボックス 1181 1181 //テキストが表示できるようにサイズを拡大する 1182 1182 1183 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->pos;1184 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size;1185 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize);1183 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->pos; 1184 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size; 1185 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1186 1186 1187 1187 HFONT hFont,hOldFont; 1188 1188 hFont=CreateFontIndirect(&pWindowInfo->LogFont); 1189 hOldFont=(HFONT)SelectObject(MdiInfo[i] .MdiRadInfo->hMemDC,hFont);1190 GetTextExtentPoint32(MdiInfo[i] .MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size);1191 SelectObject(MdiInfo[i] .MdiRadInfo->hMemDC,hOldFont);1189 hOldFont=(HFONT)SelectObject(MdiInfo[i]->MdiRadInfo->hMemDC,hFont); 1190 GetTextExtentPoint32(MdiInfo[i]->MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size); 1191 SelectObject(MdiInfo[i]->MdiRadInfo->hMemDC,hOldFont); 1192 1192 DeleteObject(hFont); 1193 1193 … … 1195 1195 PointAndSize.size.cx+=21; 1196 1196 1197 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size.cx<PointAndSize.size.cx)1198 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size.cx=PointAndSize.size.cx;1197 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size.cx<PointAndSize.size.cx) 1198 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size.cx=PointAndSize.size.cx; 1199 1199 } 1200 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON){1200 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->Control==CT_RADIOBUTTON){ 1201 1201 //ラジオ ボックス 1202 1202 //テキストが表示できるようにサイズを拡大する 1203 1203 1204 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->pos;1205 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size;1206 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize);1204 PointAndSize.pos=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->pos; 1205 PointAndSize.size=pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size; 1206 Rad_NoticeChanging(i,RAD_UNDO_POSITION,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&PointAndSize); 1207 1207 1208 1208 HFONT hFont,hOldFont; 1209 1209 hFont=CreateFontIndirect(&pWindowInfo->LogFont); 1210 hOldFont=(HFONT)SelectObject(MdiInfo[i] .MdiRadInfo->hMemDC,hFont);1211 GetTextExtentPoint32(MdiInfo[i] .MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size);1212 SelectObject(MdiInfo[i] .MdiRadInfo->hMemDC,hOldFont);1210 hOldFont=(HFONT)SelectObject(MdiInfo[i]->MdiRadInfo->hMemDC,hFont); 1211 GetTextExtentPoint32(MdiInfo[i]->MdiRadInfo->hMemDC,temporary,lstrlen(temporary),&PointAndSize.size); 1212 SelectObject(MdiInfo[i]->MdiRadInfo->hMemDC,hOldFont); 1213 1213 DeleteObject(hFont); 1214 1214 … … 1216 1216 PointAndSize.size.cx+=20; 1217 1217 1218 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size.cx<PointAndSize.size.cx)1219 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->size.cx=PointAndSize.size.cx;1218 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size.cx<PointAndSize.size.cx) 1219 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->size.cx=PointAndSize.size.cx; 1220 1220 } 1221 1221 } … … 1245 1245 SetPosCenter(hwnd); 1246 1246 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1247 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1248 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());1247 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1248 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 1249 1249 } 1250 1250 break; … … 1254 1254 { 1255 1255 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1256 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1256 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1257 1257 1258 1258 i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_IDNAME))+1; … … 1264 1264 temporary=(char *)HeapAlloc(hHeap,0,i3); 1265 1265 GetDlgItemText(hwnd,IDC_IDNAME,temporary,i3); 1266 if( pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName() == temporary )1266 if( pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName() == temporary ) 1267 1267 { 1268 1268 HeapDefaultFree(temporary); … … 1275 1275 1276 1276 //変更情報を更新 1277 Rad_NoticeChanging(i,RAD_UNDO_NAME,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName());1278 1279 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->SetName( temporary );1277 Rad_NoticeChanging(i,RAD_UNDO_NAME,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName()); 1278 1279 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->SetName( temporary ); 1280 1280 1281 1281 EndDialog(hwnd,1); … … 1298 1298 case IDC_RENAMEID: 1299 1299 if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMEID),hwnd,(DLGPROC)DlgRadProperty_Item_RenameID)) return 1; 1300 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());1300 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 1301 1301 return 1; 1302 1302 case IDC_RENAMECAPTION: 1303 1303 if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMECAPTION),hwnd,(DLGPROC)DlgRadProperty_Item_RenameCaption)) return 1; 1304 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());1304 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->GetCaption().c_str()); 1305 1305 return 1; 1306 1306 case IDC_STYLE_DISABLED: 1307 1307 if(HIWORD(wParam)==BN_CLICKED){ 1308 1308 //変更情報 1309 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetStyle());1309 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1310 1310 1311 1311 if(SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_GETCHECK,0,0)) 1312 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->AddStyle( WS_DISABLED );1312 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->AddStyle( WS_DISABLED ); 1313 1313 else 1314 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_DISABLED );1314 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_DISABLED ); 1315 1315 DrawRadWindow(WndNum,pWindowInfo); 1316 1316 return 1; … … 1320 1320 if(HIWORD(wParam)==BN_CLICKED){ 1321 1321 //変更情報 1322 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetStyle());1322 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1323 1323 1324 1324 if(SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_GETCHECK,0,0)) 1325 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VISIBLE );1325 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VISIBLE ); 1326 1326 else 1327 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VISIBLE );1327 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VISIBLE ); 1328 1328 return 1; 1329 1329 } … … 1332 1332 if(HIWORD(wParam)==BN_CLICKED){ 1333 1333 //変更情報 1334 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetStyle());1334 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1335 1335 1336 1336 if(SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_GETCHECK,0,0)) 1337 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->AddStyle( WS_GROUP );1337 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->AddStyle( WS_GROUP ); 1338 1338 else 1339 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_GROUP );1339 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_GROUP ); 1340 1340 return 1; 1341 1341 } … … 1344 1344 if(HIWORD(wParam)==BN_CLICKED){ 1345 1345 //変更情報 1346 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetStyle());1346 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1347 1347 1348 1348 if(SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_GETCHECK,0,0)) 1349 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->AddStyle( WS_TABSTOP );1349 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->AddStyle( WS_TABSTOP ); 1350 1350 else 1351 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_TABSTOP );1351 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_TABSTOP ); 1352 1352 return 1; 1353 1353 } … … 1364 1364 SetPosCenter(hwnd); 1365 1365 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1366 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1367 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0);1368 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_TRANSPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_SETCHECK,BST_CHECKED,0);1369 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_DLGMODALFRAME) SendDlgItemMessage(hwnd,IDC_EXSTYLE_DLGMODALFRAME,BM_SETCHECK,BST_CHECKED,0);1370 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_CLIENTEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_SETCHECK,BST_CHECKED,0);1371 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_STATICEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_SETCHECK,BST_CHECKED,0);1366 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1367 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0); 1368 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_TRANSPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_SETCHECK,BST_CHECKED,0); 1369 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_DLGMODALFRAME) SendDlgItemMessage(hwnd,IDC_EXSTYLE_DLGMODALFRAME,BM_SETCHECK,BST_CHECKED,0); 1370 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_CLIENTEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_SETCHECK,BST_CHECKED,0); 1371 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_STATICEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_SETCHECK,BST_CHECKED,0); 1372 1372 break; 1373 1373 } … … 1377 1377 { 1378 1378 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1379 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1379 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1380 1380 1381 1381 DWORD style; … … 1392 1392 style|=WS_EX_STATICEDGE; 1393 1393 1394 if(style==pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetExStyle()){1394 if(style==pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetExStyle()){ 1395 1395 SendMessage(hwnd,WM_COMMAND,IDCANCEL,0); 1396 1396 return 1; … … 1398 1398 1399 1399 //変更情報 1400 Rad_NoticeChanging(i,RAD_UNDO_EXSTYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetExStyle());1401 1402 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->SetExStyle( style );1400 Rad_NoticeChanging(i,RAD_UNDO_EXSTYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetExStyle()); 1401 1402 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->SetExStyle( style ); 1403 1403 EndDialog(hwnd,1); 1404 1404 return 1; … … 1426 1426 bInitial=1; 1427 1427 i=GetWndNum(GetParent(GetParent(hwnd))); 1428 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1429 1430 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());1431 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());1428 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1429 1430 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 1431 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetCaption().c_str()); 1432 1432 1433 1433 … … 1435 1435 //スタイル 1436 1436 1437 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);1438 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);1439 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);1440 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);1441 1442 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_OWNERDRAW)==BS_OWNERDRAW) SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_CHECKED,0);1443 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_DEFPUSHBUTTON) SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_CHECKED,0);1444 1445 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);1446 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);1447 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);1448 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);1437 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 1438 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 1439 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 1440 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 1441 1442 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_OWNERDRAW)==BS_OWNERDRAW) SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_CHECKED,0); 1443 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_DEFPUSHBUTTON) SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_CHECKED,0); 1444 1445 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); 1446 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); 1447 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0); 1448 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 1449 1449 1450 1450 … … 1463 1463 1464 1464 //ビットを考慮してBS_CENTERを最初に比較する 1465 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);1466 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);1467 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);1465 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0); 1466 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0); 1467 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0); 1468 1468 else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0); 1469 1469 … … 1483 1483 1484 1484 //ビットを考慮してBS_VCENTERを最初に比較する 1485 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);1486 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);1487 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);1485 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0); 1486 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0); 1487 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0); 1488 1488 else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0); 1489 1489 … … 1496 1496 i=GetWndNum(GetParent(GetParent(hwnd))); 1497 1497 if(i==-1) return 1; 1498 i2=GetWndInfoNum(MdiInfo[i] .path);1498 i2=GetWndInfoNum(MdiInfo[i]->path); 1499 1499 ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[i2]; 1500 1500 … … 1508 1508 if(HIWORD(wParam)==BN_CLICKED){ 1509 1509 //変更情報 1510 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1510 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1511 1511 1512 1512 if(SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_GETCHECK,0,0)){ 1513 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_OWNERDRAW );1514 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_DEFPUSHBUTTON );1513 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_OWNERDRAW ); 1514 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_DEFPUSHBUTTON ); 1515 1515 SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_UNCHECKED,0); 1516 1516 } 1517 1517 else 1518 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_DEFPUSHBUTTON );1518 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_DEFPUSHBUTTON ); 1519 1519 DrawRadWindow(i,pWindowInfo); 1520 1520 return 1; … … 1524 1524 if(HIWORD(wParam)==BN_CLICKED){ 1525 1525 //変更情報 1526 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1526 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1527 1527 1528 1528 if(SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_GETCHECK,0,0)){ 1529 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_DEFPUSHBUTTON );1530 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_OWNERDRAW );1529 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_DEFPUSHBUTTON ); 1530 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_OWNERDRAW ); 1531 1531 SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_UNCHECKED,0); 1532 1532 } 1533 1533 else 1534 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_OWNERDRAW );1534 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_OWNERDRAW ); 1535 1535 DrawRadWindow(i,pWindowInfo); 1536 1536 return 1; … … 1540 1540 if(HIWORD(wParam)==BN_CLICKED){ 1541 1541 //変更情報 1542 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1542 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1543 1543 1544 1544 if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){ 1545 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON );1546 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );1545 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON ); 1546 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP ); 1547 1547 SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0); 1548 1548 } 1549 1549 else 1550 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );1550 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON ); 1551 1551 DrawRadWindow(i,pWindowInfo); 1552 1552 return 1; … … 1556 1556 if(HIWORD(wParam)==BN_CLICKED){ 1557 1557 //変更情報 1558 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1558 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1559 1559 1560 1560 if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){ 1561 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP );1562 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );1561 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP ); 1562 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON ); 1563 1563 SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0); 1564 1564 } 1565 1565 else 1566 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );1566 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP ); 1567 1567 DrawRadWindow(i,pWindowInfo); 1568 1568 return 1; … … 1572 1572 if(HIWORD(wParam)==BN_CLICKED){ 1573 1573 //変更情報 1574 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1574 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1575 1575 1576 1576 if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0)) 1577 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_MULTILINE );1578 else 1579 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_MULTILINE );1577 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_MULTILINE ); 1578 else 1579 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_MULTILINE ); 1580 1580 DrawRadWindow(i,pWindowInfo); 1581 1581 return 1; … … 1585 1585 if(HIWORD(wParam)==BN_CLICKED){ 1586 1586 //変更情報 1587 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1587 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1588 1588 1589 1589 if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) 1590 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY );1591 else 1592 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY );1590 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY ); 1591 else 1592 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY ); 1593 1593 return 1; 1594 1594 } … … 1598 1598 if(HIWORD(wParam)==CBN_SELCHANGE){ 1599 1599 //変更情報 1600 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1600 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1601 1601 1602 1602 i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0); 1603 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFT|BS_RIGHT|BS_CENTER );1604 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT );1605 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT );1606 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER );1603 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFT|BS_RIGHT|BS_CENTER ); 1604 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT ); 1605 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT ); 1606 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER ); 1607 1607 DrawRadWindow(i,pWindowInfo); 1608 1608 return 1; … … 1612 1612 if(HIWORD(wParam)==CBN_SELCHANGE){ 1613 1613 //変更情報 1614 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1614 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1615 1615 1616 1616 i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0); 1617 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_TOP|BS_BOTTOM|BS_VCENTER );1618 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_TOP );1619 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BOTTOM );1620 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_VCENTER );1617 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_TOP|BS_BOTTOM|BS_VCENTER ); 1618 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_TOP ); 1619 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BOTTOM ); 1620 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_VCENTER ); 1621 1621 DrawRadWindow(i,pWindowInfo); 1622 1622 return 1; … … 1647 1647 bInitial=1; 1648 1648 i=GetWndNum(GetParent(GetParent(hwnd))); 1649 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1650 1651 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());1652 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());1649 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1650 1651 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 1652 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetCaption().c_str()); 1653 1653 1654 1654 … … 1656 1656 //スタイル 1657 1657 1658 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);1659 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);1660 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);1661 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);1662 1663 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_AUTOCHECKBOX)==BS_AUTOCHECKBOX) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0);1664 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_AUTO3STATE)==BS_AUTO3STATE){1658 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 1659 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 1660 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 1661 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 1662 1663 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_AUTOCHECKBOX)==BS_AUTOCHECKBOX) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0); 1664 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_AUTO3STATE)==BS_AUTO3STATE){ 1665 1665 SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0); 1666 1666 SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0); 1667 1667 } 1668 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_3STATE)==BS_3STATE) SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0);1669 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0);1670 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0);1671 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);1672 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);1673 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);1674 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);1668 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_3STATE)==BS_3STATE) SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0); 1669 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0); 1670 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0); 1671 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); 1672 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); 1673 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0); 1674 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 1675 1675 1676 1676 … … 1689 1689 1690 1690 //ビットを考慮してBS_CENTERを最初に比較する 1691 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);1692 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);1693 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);1691 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0); 1692 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0); 1693 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0); 1694 1694 else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0); 1695 1695 … … 1709 1709 1710 1710 //ビットを考慮してBS_VCENTERを最初に比較する 1711 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);1712 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);1713 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);1711 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0); 1712 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0); 1713 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0); 1714 1714 else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0); 1715 1715 … … 1722 1722 i=GetWndNum(GetParent(GetParent(hwnd))); 1723 1723 if(i==-1) return 1; 1724 i2=GetWndInfoNum(MdiInfo[i] .path);1724 i2=GetWndInfoNum(MdiInfo[i]->path); 1725 1725 ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[i2]; 1726 1726 … … 1734 1734 if(HIWORD(wParam)==BN_CLICKED){ 1735 1735 //変更情報 1736 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1736 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1737 1737 1738 1738 if(SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_GETCHECK,0,0)){ 1739 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x04){1739 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x04){ 1740 1740 //3state 1741 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );1742 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTO3STATE );1741 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 ); 1742 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTO3STATE ); 1743 1743 } 1744 1744 else{ 1745 1745 //2state 1746 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );1747 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTOCHECKBOX );1746 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 ); 1747 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTOCHECKBOX ); 1748 1748 } 1749 1749 } 1750 1750 else{ 1751 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x04){1751 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x04){ 1752 1752 //3state 1753 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );1754 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_3STATE );1753 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 ); 1754 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_3STATE ); 1755 1755 } 1756 1756 else{ 1757 1757 //2state 1758 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );1759 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CHECKBOX );1758 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 ); 1759 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CHECKBOX ); 1760 1760 } 1761 1761 } … … 1766 1766 if(HIWORD(wParam)==BN_CLICKED){ 1767 1767 //変更情報 1768 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1768 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1769 1769 1770 1770 if(SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_GETCHECK,0,0)){ 1771 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_CHECKBOX){1772 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );1773 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_3STATE );1771 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_CHECKBOX){ 1772 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 ); 1773 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_3STATE ); 1774 1774 } 1775 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_AUTOCHECKBOX){1775 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_AUTOCHECKBOX){ 1776 1776 //自動チェック 1777 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );1778 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTO3STATE );1777 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 ); 1778 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTO3STATE ); 1779 1779 } 1780 1780 } 1781 1781 else{ 1782 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_3STATE){1783 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );1784 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CHECKBOX );1782 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_3STATE){ 1783 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 ); 1784 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CHECKBOX ); 1785 1785 } 1786 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_AUTO3STATE){1786 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_AUTO3STATE){ 1787 1787 //自動チェック 1788 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );1789 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTOCHECKBOX );1788 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 ); 1789 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTOCHECKBOX ); 1790 1790 } 1791 1791 } … … 1796 1796 if(HIWORD(wParam)==BN_CLICKED){ 1797 1797 //変更情報 1798 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1798 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1799 1799 1800 1800 if(SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_GETCHECK,0,0)) 1801 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_PUSHLIKE );1802 else 1803 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_PUSHLIKE );1801 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_PUSHLIKE ); 1802 else 1803 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_PUSHLIKE ); 1804 1804 DrawRadWindow(i,pWindowInfo); 1805 1805 return 1; … … 1809 1809 if(HIWORD(wParam)==BN_CLICKED){ 1810 1810 //変更情報 1811 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1811 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1812 1812 1813 1813 if(SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_GETCHECK,0,0)) 1814 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFTTEXT );1815 else 1816 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFTTEXT );1814 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFTTEXT ); 1815 else 1816 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFTTEXT ); 1817 1817 DrawRadWindow(i,pWindowInfo); 1818 1818 return 1; … … 1822 1822 if(HIWORD(wParam)==BN_CLICKED){ 1823 1823 //変更情報 1824 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1824 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1825 1825 1826 1826 if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){ 1827 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON );1828 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );1827 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON ); 1828 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP ); 1829 1829 SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0); 1830 1830 } 1831 1831 else 1832 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );1832 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON ); 1833 1833 DrawRadWindow(i,pWindowInfo); 1834 1834 return 1; … … 1838 1838 if(HIWORD(wParam)==BN_CLICKED){ 1839 1839 //変更情報 1840 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1840 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1841 1841 1842 1842 if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){ 1843 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP );1844 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );1843 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP ); 1844 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON ); 1845 1845 SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0); 1846 1846 } 1847 1847 else 1848 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );1848 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP ); 1849 1849 DrawRadWindow(i,pWindowInfo); 1850 1850 return 1; … … 1854 1854 if(HIWORD(wParam)==BN_CLICKED){ 1855 1855 //変更情報 1856 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1856 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1857 1857 1858 1858 if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0)) 1859 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_MULTILINE );1860 else 1861 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_MULTILINE );1859 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_MULTILINE ); 1860 else 1861 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_MULTILINE ); 1862 1862 DrawRadWindow(i,pWindowInfo); 1863 1863 return 1; … … 1867 1867 if(HIWORD(wParam)==BN_CLICKED){ 1868 1868 //変更情報 1869 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1869 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1870 1870 1871 1871 if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) 1872 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY );1873 else 1874 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY );1872 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY ); 1873 else 1874 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY ); 1875 1875 return 1; 1876 1876 } … … 1880 1880 if(HIWORD(wParam)==CBN_SELCHANGE){ 1881 1881 //変更情報 1882 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1882 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1883 1883 1884 1884 i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0); 1885 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFT|BS_RIGHT|BS_CENTER );1886 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT );1887 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT );1888 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER );1885 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFT|BS_RIGHT|BS_CENTER ); 1886 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT ); 1887 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT ); 1888 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER ); 1889 1889 DrawRadWindow(i,pWindowInfo); 1890 1890 return 1; … … 1894 1894 if(HIWORD(wParam)==CBN_SELCHANGE){ 1895 1895 //変更情報 1896 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());1896 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 1897 1897 1898 1898 i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0); 1899 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_TOP|BS_BOTTOM|BS_VCENTER );1900 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_TOP );1901 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BOTTOM );1902 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_VCENTER );1899 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_TOP|BS_BOTTOM|BS_VCENTER ); 1900 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_TOP ); 1901 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BOTTOM ); 1902 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_VCENTER ); 1903 1903 DrawRadWindow(i,pWindowInfo); 1904 1904 return 1; … … 1937 1937 bInitial=1; 1938 1938 i=GetWndNum(GetParent(GetParent(hwnd))); 1939 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);1940 1941 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());1939 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 1940 1941 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 1942 1942 1943 1943 … … 1946 1946 //////////// 1947 1947 1948 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);1949 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);1950 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);1951 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);1948 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 1949 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 1950 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 1951 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 1952 1952 1953 1953 //////// … … 1963 1963 1964 1964 //ビットを考慮してCBS_DROPDOWNLISTを最初に比較する 1965 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_DROPDOWNLIST)==CBS_DROPDOWNLIST) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,2,0);1966 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_SIMPLE) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,0,0);1967 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_DROPDOWN) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,1,0);1965 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_DROPDOWNLIST)==CBS_DROPDOWNLIST) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,2,0); 1966 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_SIMPLE) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,0,0); 1967 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_DROPDOWN) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,1,0); 1968 1968 1969 1969 … … 1979 1979 SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_OWNERDRAW_VARIABLE); 1980 1980 1981 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,1,0);1982 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,2,0);1981 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,1,0); 1982 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,2,0); 1983 1983 else SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,0,0); 1984 1984 1985 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0);1986 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_SORT) SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_SETCHECK,BST_CHECKED,0);1987 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_NOINTEGRALHEIGHT) SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_SETCHECK,BST_CHECKED,0);1988 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0);1989 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);1990 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0);1991 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0);1992 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_UPPERCASE) SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_SETCHECK,BST_CHECKED,0);1993 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_LOWERCASE) SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_SETCHECK,BST_CHECKED,0);1994 1995 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle();1985 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0); 1986 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_SORT) SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_SETCHECK,BST_CHECKED,0); 1987 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_NOINTEGRALHEIGHT) SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_SETCHECK,BST_CHECKED,0); 1988 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0); 1989 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0); 1990 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0); 1991 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0); 1992 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_UPPERCASE) SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_SETCHECK,BST_CHECKED,0); 1993 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_LOWERCASE) SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_SETCHECK,BST_CHECKED,0); 1994 1995 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle(); 1996 1996 RadProperty_ComboBox_StylingOrder(hwnd,&tempStyle); 1997 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );1997 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle ); 1998 1998 1999 1999 … … 2005 2005 i=GetWndNum(GetParent(GetParent(hwnd))); 2006 2006 if(i==-1) return 1; 2007 i2=GetWndInfoNum(MdiInfo[i] .path);2007 i2=GetWndInfoNum(MdiInfo[i]->path); 2008 2008 ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[i2]; 2009 2009 … … 2017 2017 if(HIWORD(wParam)==CBN_SELCHANGE){ 2018 2018 //変更情報 2019 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2019 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2020 2020 2021 2021 i3=SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_GETCURSEL,0,0); 2022 2022 //CBS_DROPDOWNLIST=CBS_SIMPLE | CBS_DROPDOWN 2023 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_DROPDOWNLIST );2024 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_SIMPLE );2025 else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_DROPDOWN );2026 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_DROPDOWNLIST );2023 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_DROPDOWNLIST ); 2024 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_SIMPLE ); 2025 else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_DROPDOWN ); 2026 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_DROPDOWNLIST ); 2027 2027 2028 2028 DrawRadWindow(i,pWindowInfo); … … 2033 2033 if(HIWORD(wParam)==CBN_SELCHANGE){ 2034 2034 //変更情報 2035 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2035 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2036 2036 2037 2037 i3=SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_GETCURSEL,0,0); 2038 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_OWNERDRAWFIXED|CBS_OWNERDRAWVARIABLE );2039 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_OWNERDRAWFIXED );2040 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_OWNERDRAWVARIABLE );2041 2042 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle();2038 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_OWNERDRAWFIXED|CBS_OWNERDRAWVARIABLE ); 2039 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_OWNERDRAWFIXED ); 2040 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_OWNERDRAWVARIABLE ); 2041 2042 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle(); 2043 2043 RadProperty_ComboBox_StylingOrder(hwnd,&tempStyle); 2044 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );2044 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle ); 2045 2045 return 1; 2046 2046 } … … 2050 2050 if(HIWORD(wParam)==BN_CLICKED){ 2051 2051 //変更情報 2052 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2052 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2053 2053 2054 2054 if(SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_GETCHECK,0,0)) 2055 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_HASSTRINGS );2056 else 2057 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_HASSTRINGS );2055 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_HASSTRINGS ); 2056 else 2057 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_HASSTRINGS ); 2058 2058 return 1; 2059 2059 } … … 2062 2062 if(HIWORD(wParam)==BN_CLICKED){ 2063 2063 //変更情報 2064 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2064 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2065 2065 2066 2066 if(SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_GETCHECK,0,0)) 2067 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_SORT );2068 else 2069 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_SORT );2067 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_SORT ); 2068 else 2069 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_SORT ); 2070 2070 return 1; 2071 2071 } … … 2074 2074 if(HIWORD(wParam)==BN_CLICKED){ 2075 2075 //変更情報 2076 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2076 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2077 2077 2078 2078 if(SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_GETCHECK,0,0)) 2079 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_NOINTEGRALHEIGHT );2080 else 2081 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_NOINTEGRALHEIGHT );2079 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_NOINTEGRALHEIGHT ); 2080 else 2081 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_NOINTEGRALHEIGHT ); 2082 2082 return 1; 2083 2083 } … … 2086 2086 if(HIWORD(wParam)==BN_CLICKED){ 2087 2087 //変更情報 2088 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2088 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2089 2089 2090 2090 if(SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_GETCHECK,0,0)) 2091 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_OEMCONVERT );2092 else 2093 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_OEMCONVERT );2091 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_OEMCONVERT ); 2092 else 2093 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_OEMCONVERT ); 2094 2094 return 1; 2095 2095 } … … 2098 2098 if(HIWORD(wParam)==BN_CLICKED){ 2099 2099 //変更情報 2100 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2100 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2101 2101 2102 2102 if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0)) 2103 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VSCROLL );2104 else 2105 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VSCROLL );2103 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VSCROLL ); 2104 else 2105 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VSCROLL ); 2106 2106 DrawRadWindow(i,pWindowInfo); 2107 2107 return 1; … … 2111 2111 if(HIWORD(wParam)==BN_CLICKED){ 2112 2112 //変更情報 2113 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2113 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2114 2114 2115 2115 if(SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_GETCHECK,0,0)) 2116 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_AUTOHSCROLL );2117 else 2118 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_AUTOHSCROLL );2116 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_AUTOHSCROLL ); 2117 else 2118 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_AUTOHSCROLL ); 2119 2119 return 1; 2120 2120 } … … 2123 2123 if(HIWORD(wParam)==BN_CLICKED){ 2124 2124 //変更情報 2125 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2125 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2126 2126 2127 2127 if(SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_GETCHECK,0,0)) 2128 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_DISABLENOSCROLL );2129 else 2130 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_DISABLENOSCROLL );2128 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_DISABLENOSCROLL ); 2129 else 2130 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_DISABLENOSCROLL ); 2131 2131 DrawRadWindow(i,pWindowInfo); 2132 2132 return 1; … … 2136 2136 if(HIWORD(wParam)==BN_CLICKED){ 2137 2137 //変更情報 2138 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2138 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2139 2139 2140 2140 if(SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_GETCHECK,0,0)) 2141 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_UPPERCASE );2142 else 2143 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_UPPERCASE );2141 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_UPPERCASE ); 2142 else 2143 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_UPPERCASE ); 2144 2144 return 1; 2145 2145 } … … 2148 2148 if(HIWORD(wParam)==BN_CLICKED){ 2149 2149 //変更情報 2150 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2150 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2151 2151 2152 2152 if(SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_GETCHECK,0,0)) 2153 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_LOWERCASE );2154 else 2155 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_LOWERCASE );2153 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_LOWERCASE ); 2154 else 2155 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_LOWERCASE ); 2156 2156 return 1; 2157 2157 } … … 2204 2204 bInitial=1; 2205 2205 i=GetWndNum(GetParent(GetParent(hwnd))); 2206 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);2207 2208 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());2209 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());2206 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 2207 2208 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 2209 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetCaption().c_str()); 2210 2210 2211 2211 … … 2214 2214 //////////// 2215 2215 2216 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);2217 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);2218 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);2219 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);2220 2221 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_MULTILINE) SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_SETCHECK,BST_CHECKED,0);2222 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_NUMBER) SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_SETCHECK,BST_CHECKED,0);2223 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0);2224 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0);2225 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);2226 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_AUTOVSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_SETCHECK,BST_CHECKED,0);2227 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_PASSWORD) SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_SETCHECK,BST_CHECKED,0);2228 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_NOHIDESEL) SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_SETCHECK,BST_CHECKED,0);2229 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0);2230 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_WANTRETURN) SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_SETCHECK,BST_CHECKED,0);2231 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_UPPERCASE) SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_CHECKED,0);2232 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_LOWERCASE) SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_CHECKED,0);2233 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_READONLY) SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_SETCHECK,BST_CHECKED,0);2216 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 2217 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 2218 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 2219 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 2220 2221 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_MULTILINE) SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_SETCHECK,BST_CHECKED,0); 2222 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_NUMBER) SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_SETCHECK,BST_CHECKED,0); 2223 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0); 2224 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0); 2225 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0); 2226 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_AUTOVSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_SETCHECK,BST_CHECKED,0); 2227 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_PASSWORD) SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_SETCHECK,BST_CHECKED,0); 2228 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_NOHIDESEL) SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_SETCHECK,BST_CHECKED,0); 2229 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0); 2230 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_WANTRETURN) SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_SETCHECK,BST_CHECKED,0); 2231 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_UPPERCASE) SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_CHECKED,0); 2232 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_LOWERCASE) SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_CHECKED,0); 2233 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_READONLY) SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_SETCHECK,BST_CHECKED,0); 2234 2234 2235 2235 … … 2246 2246 2247 2247 //ビットを考慮してES_LEFTを最後に検討する 2248 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_CENTER) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,1,0);2249 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_RIGHT) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,2,0);2248 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_CENTER) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,1,0); 2249 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_RIGHT) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,2,0); 2250 2250 else SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,0,0); 2251 2251 2252 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle();2252 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle(); 2253 2253 RadProperty_Edit_StylingOrder(hwnd,&tempStyle); 2254 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );2254 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle ); 2255 2255 2256 2256 … … 2262 2262 i=GetWndNum(GetParent(GetParent(hwnd))); 2263 2263 if(i==-1) return 1; 2264 i2=GetWndInfoNum(MdiInfo[i] .path);2265 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);2264 i2=GetWndInfoNum(MdiInfo[i]->path); 2265 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 2266 2266 2267 2267 //共通スタイル … … 2274 2274 if(HIWORD(wParam)==BN_CLICKED){ 2275 2275 //変更情報 2276 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2276 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2277 2277 2278 2278 if(SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_GETCHECK,0,0)) 2279 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_MULTILINE );2280 else 2281 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_MULTILINE );2282 2283 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle();2279 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_MULTILINE ); 2280 else 2281 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_MULTILINE ); 2282 2283 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle(); 2284 2284 RadProperty_Edit_StylingOrder(hwnd,&tempStyle); 2285 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );2285 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle ); 2286 2286 DrawRadWindow(i,pWindowInfo); 2287 2287 return 1; … … 2291 2291 if(HIWORD(wParam)==BN_CLICKED){ 2292 2292 //変更情報 2293 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2293 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2294 2294 2295 2295 if(SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_GETCHECK,0,0)) 2296 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_NUMBER );2297 else 2298 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_NUMBER );2296 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_NUMBER ); 2297 else 2298 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_NUMBER ); 2299 2299 return 1; 2300 2300 } … … 2303 2303 if(HIWORD(wParam)==BN_CLICKED){ 2304 2304 //変更情報 2305 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2305 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2306 2306 2307 2307 if(SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_GETCHECK,0,0)) 2308 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( WS_HSCROLL );2309 else 2310 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_HSCROLL );2308 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( WS_HSCROLL ); 2309 else 2310 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_HSCROLL ); 2311 2311 DrawRadWindow(i,pWindowInfo); 2312 2312 return 1; … … 2316 2316 if(HIWORD(wParam)==BN_CLICKED){ 2317 2317 //変更情報 2318 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2318 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2319 2319 2320 2320 if(SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_GETCHECK,0,0)) 2321 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_AUTOHSCROLL );2322 else 2323 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_AUTOHSCROLL );2321 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_AUTOHSCROLL ); 2322 else 2323 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_AUTOHSCROLL ); 2324 2324 DrawRadWindow(i,pWindowInfo); 2325 2325 return 1; … … 2329 2329 if(HIWORD(wParam)==BN_CLICKED){ 2330 2330 //変更情報 2331 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2331 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2332 2332 2333 2333 if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0)) 2334 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VSCROLL );2335 else 2336 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VSCROLL );2334 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VSCROLL ); 2335 else 2336 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VSCROLL ); 2337 2337 DrawRadWindow(i,pWindowInfo); 2338 2338 return 1; … … 2342 2342 if(HIWORD(wParam)==BN_CLICKED){ 2343 2343 //変更情報 2344 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2344 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2345 2345 2346 2346 if(SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_GETCHECK,0,0)) 2347 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_AUTOVSCROLL );2348 else 2349 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_AUTOVSCROLL );2347 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_AUTOVSCROLL ); 2348 else 2349 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_AUTOVSCROLL ); 2350 2350 DrawRadWindow(i,pWindowInfo); 2351 2351 return 1; … … 2355 2355 if(HIWORD(wParam)==BN_CLICKED){ 2356 2356 //変更情報 2357 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2357 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2358 2358 2359 2359 if(SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_GETCHECK,0,0)) 2360 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_PASSWORD );2361 else 2362 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_PASSWORD );2360 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_PASSWORD ); 2361 else 2362 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_PASSWORD ); 2363 2363 DrawRadWindow(i,pWindowInfo); 2364 2364 return 1; … … 2368 2368 if(HIWORD(wParam)==BN_CLICKED){ 2369 2369 //変更情報 2370 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2370 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2371 2371 2372 2372 if(SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_GETCHECK,0,0)) 2373 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_NOHIDESEL );2374 else 2375 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_NOHIDESEL );2373 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_NOHIDESEL ); 2374 else 2375 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_NOHIDESEL ); 2376 2376 DrawRadWindow(i,pWindowInfo); 2377 2377 return 1; … … 2381 2381 if(HIWORD(wParam)==BN_CLICKED){ 2382 2382 //変更情報 2383 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2383 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2384 2384 2385 2385 if(SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_GETCHECK,0,0)) 2386 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_OEMCONVERT );2387 else 2388 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_OEMCONVERT );2386 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_OEMCONVERT ); 2387 else 2388 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_OEMCONVERT ); 2389 2389 DrawRadWindow(i,pWindowInfo); 2390 2390 return 1; … … 2394 2394 if(HIWORD(wParam)==BN_CLICKED){ 2395 2395 //変更情報 2396 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2396 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2397 2397 2398 2398 if(SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_GETCHECK,0,0)) 2399 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_WANTRETURN );2400 else 2401 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_WANTRETURN );2399 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_WANTRETURN ); 2400 else 2401 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_WANTRETURN ); 2402 2402 DrawRadWindow(i,pWindowInfo); 2403 2403 return 1; … … 2407 2407 if(HIWORD(wParam)==BN_CLICKED){ 2408 2408 //変更情報 2409 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2409 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2410 2410 2411 2411 if(SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_GETCHECK,0,0)){ 2412 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_LOWERCASE );2413 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_UPPERCASE );2412 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_LOWERCASE ); 2413 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_UPPERCASE ); 2414 2414 SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_UNCHECKED,0); 2415 2415 } 2416 2416 else 2417 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_UPPERCASE );2417 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_UPPERCASE ); 2418 2418 DrawRadWindow(i,pWindowInfo); 2419 2419 return 1; … … 2423 2423 if(HIWORD(wParam)==BN_CLICKED){ 2424 2424 //変更情報 2425 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2425 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2426 2426 2427 2427 if(SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_GETCHECK,0,0)){ 2428 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_UPPERCASE );2429 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_LOWERCASE );2428 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_UPPERCASE ); 2429 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_LOWERCASE ); 2430 2430 SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_UNCHECKED,0); 2431 2431 } 2432 2432 else 2433 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_LOWERCASE );2433 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_LOWERCASE ); 2434 2434 DrawRadWindow(i,pWindowInfo); 2435 2435 return 1; … … 2439 2439 if(HIWORD(wParam)==BN_CLICKED){ 2440 2440 //変更情報 2441 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2441 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2442 2442 2443 2443 if(SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_GETCHECK,0,0)) 2444 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_READONLY );2445 else 2446 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_READONLY );2444 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_READONLY ); 2445 else 2446 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_READONLY ); 2447 2447 DrawRadWindow(i,pWindowInfo); 2448 2448 return 1; … … 2453 2453 if(HIWORD(wParam)==CBN_SELCHANGE){ 2454 2454 //変更情報 2455 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2455 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2456 2456 2457 2457 i3=SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_GETCURSEL,0,0); 2458 2458 //ES_LEFT=0 2459 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_CENTER|ES_RIGHT );2460 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_CENTER );2461 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( ES_RIGHT );2459 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_CENTER|ES_RIGHT ); 2460 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_CENTER ); 2461 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( ES_RIGHT ); 2462 2462 DrawRadWindow(i,pWindowInfo); 2463 2463 return 1; … … 2489 2489 bInitial=1; 2490 2490 i=GetWndNum(GetParent(GetParent(hwnd))); 2491 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);2492 2493 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());2494 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());2491 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 2492 2493 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 2494 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetCaption().c_str()); 2495 2495 2496 2496 … … 2499 2499 //////////// 2500 2500 2501 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);2502 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);2503 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);2504 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);2501 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 2502 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 2503 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 2504 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 2505 2505 2506 2506 … … 2519 2519 2520 2520 //ビットを考慮してBS_CENTERを最初に検討する 2521 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,3,0);2522 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,1,0);2523 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,2,0);2521 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,3,0); 2522 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,1,0); 2523 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,2,0); 2524 2524 else SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,0,0); 2525 2525 2526 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);2527 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);2528 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);2526 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); 2527 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); 2528 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 2529 2529 2530 2530 … … 2536 2536 i=GetWndNum(GetParent(GetParent(hwnd))); 2537 2537 if(i==-1) return 1; 2538 i2=GetWndInfoNum(MdiInfo[i] .path);2539 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);2538 i2=GetWndInfoNum(MdiInfo[i]->path); 2539 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 2540 2540 2541 2541 //共通スタイル … … 2548 2548 if(HIWORD(wParam)==CBN_SELCHANGE){ 2549 2549 //変更情報 2550 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2550 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2551 2551 2552 2552 i3=SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_GETCURSEL,0,0); 2553 2553 //BS_CENTER=BS_LEFT | BS_RIGHT 2554 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_CENTER );2555 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT );2556 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT );2557 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER );2554 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_CENTER ); 2555 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT ); 2556 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT ); 2557 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER ); 2558 2558 DrawRadWindow(i,pWindowInfo); 2559 2559 return 1; … … 2564 2564 if(HIWORD(wParam)==BN_CLICKED){ 2565 2565 //変更情報 2566 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2566 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2567 2567 2568 2568 if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)) 2569 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON );2570 else 2571 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );2569 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON ); 2570 else 2571 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON ); 2572 2572 DrawRadWindow(i,pWindowInfo); 2573 2573 return 1; … … 2577 2577 if(HIWORD(wParam)==BN_CLICKED){ 2578 2578 //変更情報 2579 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2579 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2580 2580 2581 2581 if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)) 2582 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP );2583 else 2584 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );2582 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP ); 2583 else 2584 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP ); 2585 2585 DrawRadWindow(i,pWindowInfo); 2586 2586 return 1; … … 2590 2590 if(HIWORD(wParam)==BN_CLICKED){ 2591 2591 //変更情報 2592 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2592 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2593 2593 2594 2594 if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) 2595 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY );2596 else 2597 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY );2595 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY ); 2596 else 2597 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY ); 2598 2598 return 1; 2599 2599 } … … 2641 2641 bInitial=1; 2642 2642 i=GetWndNum(GetParent(GetParent(hwnd))); 2643 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);2644 2645 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());2643 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 2644 2645 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 2646 2646 2647 2647 … … 2650 2650 //////////// 2651 2651 2652 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);2653 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);2654 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);2655 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);2652 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 2653 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 2654 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 2655 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 2656 2656 2657 2657 ////////// … … 2678 2678 SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_BITMAP); 2679 2679 2680 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BLACKFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,0,0);2681 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_GRAYFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,1,0);2682 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_WHITEFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,2,0);2683 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000001F)==SS_ETCHEDFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,3,0);2684 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BLACKRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,4,0);2685 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_GRAYRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,5,0);2686 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_WHITERECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,6,0);2687 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON||2688 (pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){2689 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,7,0);2690 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,8,0);2680 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BLACKFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,0,0); 2681 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_GRAYFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,1,0); 2682 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_WHITEFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,2,0); 2683 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000001F)==SS_ETCHEDFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,3,0); 2684 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BLACKRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,4,0); 2685 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_GRAYRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,5,0); 2686 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_WHITERECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,6,0); 2687 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON|| 2688 (pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){ 2689 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,7,0); 2690 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,8,0); 2691 2691 2692 2692 //リソース/ファイル スイッチチェックを表示 … … 2697 2697 ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_SHOW); 2698 2698 2699 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.IsFile()){2699 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.IsFile()){ 2700 2700 //ファイル指定を表示 2701 2701 ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); 2702 2702 ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); 2703 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.path.c_str());2703 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.path.c_str()); 2704 2704 2705 2705 //イメージ状態テキスト … … 2709 2709 SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0); 2710 2710 } 2711 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.IsResource()){2711 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.IsResource()){ 2712 2712 //リソース指定を表示 2713 2713 ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW); … … 2721 2721 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); 2722 2722 2723 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON){2723 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON){ 2724 2724 //アイコンリソースをコンボボックスに挿入 2725 2725 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources ) … … 2728 2728 } 2729 2729 } 2730 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){2730 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){ 2731 2731 //ビットマップリソースをコンボボックスに挿入 2732 2732 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.bitmapResources ) … … 2737 2737 2738 2738 //リストから選択 2739 i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_FINDSTRING,0,(long)pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.path.c_str());2739 i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_FINDSTRING,0,(long)pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.path.c_str()); 2740 2740 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); 2741 2741 } 2742 2742 } 2743 2743 2744 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);2745 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_CENTERIMAGE) SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_SETCHECK,BST_CHECKED,0);2746 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_RIGHTJUST) SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_SETCHECK,BST_CHECKED,0);2747 2748 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle();2744 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 2745 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_CENTERIMAGE) SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_SETCHECK,BST_CHECKED,0); 2746 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_RIGHTJUST) SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_SETCHECK,BST_CHECKED,0); 2747 2748 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle(); 2749 2749 RadProperty_ImageBox_StylingOrder(hwnd,&tempStyle); 2750 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );2750 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle ); 2751 2751 2752 2752 bInitial=0; … … 2757 2757 i=GetWndNum(GetParent(GetParent(hwnd))); 2758 2758 if(i==-1) return 1; 2759 i2=GetWndInfoNum(MdiInfo[i] .path);2760 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);2759 i2=GetWndInfoNum(MdiInfo[i]->path); 2760 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 2761 2761 2762 2762 //共通スタイル … … 2769 2769 if(HIWORD(wParam)==CBN_SELCHANGE){ 2770 2770 //変更情報 2771 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2771 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2772 2772 2773 2773 i3=SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_GETCURSEL,0,0); 2774 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( 0x0000001F );2775 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_BLACKFRAME );2776 else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_GRAYFRAME );2777 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_WHITEFRAME );2778 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_ETCHEDFRAME );2779 else if(i3==4) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_BLACKRECT );2780 else if(i3==5) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_GRAYRECT );2781 else if(i3==6) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_WHITERECT );2782 else if(i3==7) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_ICON );2783 else if(i3==8) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_BITMAP );2784 2785 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON||2786 (pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){2774 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( 0x0000001F ); 2775 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_BLACKFRAME ); 2776 else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_GRAYFRAME ); 2777 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_WHITEFRAME ); 2778 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_ETCHEDFRAME ); 2779 else if(i3==4) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_BLACKRECT ); 2780 else if(i3==5) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_GRAYRECT ); 2781 else if(i3==6) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_WHITERECT ); 2782 else if(i3==7) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_ICON ); 2783 else if(i3==8) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_BITMAP ); 2784 2785 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON|| 2786 (pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){ 2787 2787 //リソース/ファイル スイッチチェックを表示 2788 2788 ShowWindow(GetDlgItem(hwnd,IDC_FILE),SW_SHOW); … … 2792 2792 ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_SHOW); 2793 2793 2794 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.IsFile()){2794 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.IsFile()){ 2795 2795 //ファイル指定を表示 2796 2796 ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); 2797 2797 ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); 2798 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.path.c_str());2798 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.path.c_str()); 2799 2799 2800 2800 //イメージ状態テキスト … … 2804 2804 SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0); 2805 2805 } 2806 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.IsResource()){2806 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.IsResource()){ 2807 2807 //リソース指定を表示 2808 2808 ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW); … … 2816 2816 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); 2817 2817 2818 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON){2818 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON){ 2819 2819 //アイコンリソースをコンボボックスに挿入 2820 2820 for(i3=0;i3<static_cast<int>(projectInfo.resourceManager.iconResources.size());i3++){ 2821 2821 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.resourceManager.iconResources[i3].idName.c_str()); 2822 2822 2823 if( projectInfo.resourceManager.iconResources[i3].idName == pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.path )2823 if( projectInfo.resourceManager.iconResources[i3].idName == pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.path ) 2824 2824 { 2825 2825 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); … … 2827 2827 } 2828 2828 } 2829 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){2829 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){ 2830 2830 //ビットマップリソースをコンボボックスに挿入 2831 2831 for(i3=0;i3<static_cast<int>(projectInfo.resourceManager.bitmapResources.size());i3++){ 2832 2832 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.resourceManager.bitmapResources[i3].idName.c_str()); 2833 2833 2834 if( projectInfo.resourceManager.bitmapResources[i3].idName == pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.path )2834 if( projectInfo.resourceManager.bitmapResources[i3].idName == pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.path ) 2835 2835 { 2836 2836 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); … … 2856 2856 } 2857 2857 2858 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle();2858 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle(); 2859 2859 RadProperty_ImageBox_StylingOrder(hwnd,&tempStyle); 2860 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );2860 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle ); 2861 2861 DrawRadWindow(i,pWindowInfo); 2862 2862 return 1; … … 2865 2865 2866 2866 case IDC_FILE: 2867 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.IsFile()){2867 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.IsFile()){ 2868 2868 //変更無し 2869 2869 break; … … 2871 2871 2872 2872 //変更情報 2873 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image);2874 2875 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.type2873 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image); 2874 2875 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.type 2876 2876 = ActiveBasic::PM::ImageReferenceType::File; 2877 2877 … … 2879 2879 ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW); 2880 2880 ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW); 2881 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.path.c_str());2881 SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.path.c_str()); 2882 2882 2883 2883 //リソース指定を非表示 … … 2892 2892 2893 2893 case IDC_RESOURCE: 2894 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.IsResource()){2894 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.IsResource()){ 2895 2895 //変更無し 2896 2896 break; … … 2898 2898 2899 2899 //変更情報 2900 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image);2901 2902 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.type2900 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image); 2901 2902 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.type 2903 2903 = ActiveBasic::PM::ImageReferenceType::Resource; 2904 2904 … … 2918 2918 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0); 2919 2919 2920 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON){2920 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON){ 2921 2921 //アイコンリソースをコンボボックスに挿入 2922 2922 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources ) … … 2925 2925 } 2926 2926 } 2927 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){2927 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){ 2928 2928 //ビットマップリソースをコンボボックスに挿入 2929 2929 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.bitmapResources ) … … 2937 2937 if(HIWORD(wParam)==CBN_SELCHANGE){ 2938 2938 //変更情報 2939 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image);2939 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image); 2940 2940 2941 2941 i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_GETCURSEL,0,0); 2942 2942 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_GETLBTEXT,i3,(long)temporary); 2943 2943 2944 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.path = temporary;2944 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.path = temporary; 2945 2945 2946 2946 DrawRadWindow(i,pWindowInfo); … … 2950 2950 case IDC_CHANGEPATH: 2951 2951 if(HIWORD(wParam)==BN_CLICKED){ 2952 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.IsFile()){2953 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x000F)==SS_ICON){2952 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.IsFile()){ 2953 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x000F)==SS_ICON){ 2954 2954 extern LPSTR IconFileFilter; 2955 2955 //"アイコン ファイルを指定して下さい" 2956 2956 if(!GetFilePathDialog(hwnd,temporary,IconFileFilter,STRING_IMAGEBOXPROP_GETPATH_ICON,1)) return 1; 2957 2957 } 2958 else if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&0x000F)==SS_BITMAP){2958 else if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&0x000F)==SS_BITMAP){ 2959 2959 extern LPSTR BitmapFileFilter; 2960 2960 //"ビットマップ ファイルを指定して下さい" … … 2963 2963 2964 2964 //変更情報 2965 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image);2965 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image); 2966 2966 2967 2967 lstrcpy( temporary, projectInfo.GetWorkDir().GetRelationalPath( temporary ).c_str() ); 2968 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->image.path = temporary;2968 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->image.path = temporary; 2969 2969 2970 2970 SetDlgItemText(hwnd,IDC_PATH,temporary); … … 2978 2978 if(HIWORD(wParam)==BN_CLICKED){ 2979 2979 //変更情報 2980 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2980 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2981 2981 2982 2982 if(SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_GETCHECK,0,0)) 2983 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_NOTIFY );2984 else 2985 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_NOTIFY );2983 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_NOTIFY ); 2984 else 2985 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_NOTIFY ); 2986 2986 return 1; 2987 2987 } … … 2990 2990 if(HIWORD(wParam)==BN_CLICKED){ 2991 2991 //変更情報 2992 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());2992 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 2993 2993 2994 2994 if(SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_GETCHECK,0,0)) 2995 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_CENTERIMAGE );2996 else 2997 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_CENTERIMAGE );2995 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_CENTERIMAGE ); 2996 else 2997 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_CENTERIMAGE ); 2998 2998 return 1; 2999 2999 } … … 3002 3002 if(HIWORD(wParam)==BN_CLICKED){ 3003 3003 //変更情報 3004 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3004 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3005 3005 3006 3006 if(SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_GETCHECK,0,0)) 3007 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_RIGHTJUST );3008 else 3009 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_RIGHTJUST );3007 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_RIGHTJUST ); 3008 else 3009 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_RIGHTJUST ); 3010 3010 return 1; 3011 3011 } … … 3035 3035 bInitial=1; 3036 3036 i=GetWndNum(GetParent(GetParent(hwnd))); 3037 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);3038 3039 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());3037 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 3038 3039 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 3040 3040 3041 3041 … … 3044 3044 //////////// 3045 3045 3046 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3047 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3048 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3049 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);3046 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3047 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3048 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3049 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 3050 3050 3051 3051 //////// … … 3063 3063 3064 3064 //ビットを考慮してLVS_LISTを最初に比較する 3065 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_LIST)==LVS_LIST) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,2,0);3066 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SMALLICON) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,1,0);3067 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_REPORT) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,3,0);3065 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_LIST)==LVS_LIST) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,2,0); 3066 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SMALLICON) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,1,0); 3067 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_REPORT) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,3,0); 3068 3068 else SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,0,0); 3069 3069 … … 3078 3078 SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_ADDSTRING,0,(long)STRING_LEFT); 3079 3079 3080 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,1,0);3080 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,1,0); 3081 3081 else SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,0,0); 3082 3082 … … 3093 3093 SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_ADDSTRING,0,(long)STRING_SORT_DESCENDING); 3094 3094 3095 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SORTASCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,1,0);3096 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SORTDESCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,2,0);3095 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SORTASCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,1,0); 3096 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SORTDESCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,2,0); 3097 3097 else SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,0,0); 3098 3098 3099 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SINGLESEL) SendDlgItemMessage(hwnd,IDC_LVS_SINGLESEL,BM_SETCHECK,BST_CHECKED,0);3100 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_AUTOARRANGE) SendDlgItemMessage(hwnd,IDC_LVS_AUTOARRANGE,BM_SETCHECK,BST_CHECKED,0);3101 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOLABELWRAP) SendDlgItemMessage(hwnd,IDC_LVS_NOLABELWRAP,BM_SETCHECK,BST_CHECKED,0);3102 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_LVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0);3103 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_LVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0);3104 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOCOLUMNHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOCOLUMNHEADER,BM_SETCHECK,BST_CHECKED,0);3105 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOSORTHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOSORTHEADER,BM_SETCHECK,BST_CHECKED,0);3106 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_LVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0);3107 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LVS_OWNERDRAWFIXED,BM_SETCHECK,BST_CHECKED,0);3108 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SHAREIMAGELISTS) SendDlgItemMessage(hwnd,IDC_LVS_SHAREIMAGELISTS,BM_SETCHECK,BST_CHECKED,0);3099 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SINGLESEL) SendDlgItemMessage(hwnd,IDC_LVS_SINGLESEL,BM_SETCHECK,BST_CHECKED,0); 3100 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_AUTOARRANGE) SendDlgItemMessage(hwnd,IDC_LVS_AUTOARRANGE,BM_SETCHECK,BST_CHECKED,0); 3101 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOLABELWRAP) SendDlgItemMessage(hwnd,IDC_LVS_NOLABELWRAP,BM_SETCHECK,BST_CHECKED,0); 3102 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_LVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0); 3103 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_LVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0); 3104 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOCOLUMNHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOCOLUMNHEADER,BM_SETCHECK,BST_CHECKED,0); 3105 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOSORTHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOSORTHEADER,BM_SETCHECK,BST_CHECKED,0); 3106 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_LVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0); 3107 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LVS_OWNERDRAWFIXED,BM_SETCHECK,BST_CHECKED,0); 3108 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SHAREIMAGELISTS) SendDlgItemMessage(hwnd,IDC_LVS_SHAREIMAGELISTS,BM_SETCHECK,BST_CHECKED,0); 3109 3109 3110 3110 … … 3116 3116 i=GetWndNum(GetParent(GetParent(hwnd))); 3117 3117 if(i==-1) return 1; 3118 i2=GetWndInfoNum(MdiInfo[i] .path);3119 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);3118 i2=GetWndInfoNum(MdiInfo[i]->path); 3119 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 3120 3120 3121 3121 //共通スタイル … … 3128 3128 if(HIWORD(wParam)==CBN_SELCHANGE){ 3129 3129 //変更情報 3130 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3130 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3131 3131 3132 3132 i3=SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_GETCURSEL,0,0); 3133 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SMALLICON|LVS_LIST|LVS_REPORT );3134 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SMALLICON );3135 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_LIST );3136 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_REPORT );3133 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SMALLICON|LVS_LIST|LVS_REPORT ); 3134 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SMALLICON ); 3135 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_LIST ); 3136 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_REPORT ); 3137 3137 DrawRadWindow(i,pWindowInfo); 3138 3138 return 1; … … 3142 3142 if(HIWORD(wParam)==CBN_SELCHANGE){ 3143 3143 //変更情報 3144 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3144 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3145 3145 3146 3146 i3=SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_GETCURSEL,0,0); 3147 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_ALIGNLEFT );3148 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_ALIGNLEFT );3147 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_ALIGNLEFT ); 3148 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_ALIGNLEFT ); 3149 3149 return 1; 3150 3150 } … … 3153 3153 if(HIWORD(wParam)==CBN_SELCHANGE){ 3154 3154 //変更情報 3155 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3155 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3156 3156 3157 3157 i3=SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_GETCURSEL,0,0); 3158 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SORTASCENDING|LVS_SORTDESCENDING );3159 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SORTASCENDING );3160 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SORTDESCENDING );3158 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SORTASCENDING|LVS_SORTDESCENDING ); 3159 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SORTASCENDING ); 3160 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SORTDESCENDING ); 3161 3161 return 1; 3162 3162 } … … 3166 3166 if(HIWORD(wParam)==BN_CLICKED){ 3167 3167 //変更情報 3168 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3168 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3169 3169 3170 3170 if(SendDlgItemMessage(hwnd,IDC_LVS_SINGLESEL,BM_GETCHECK,0,0)) 3171 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SINGLESEL );3172 else 3173 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SINGLESEL );3171 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SINGLESEL ); 3172 else 3173 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SINGLESEL ); 3174 3174 return 1; 3175 3175 } … … 3178 3178 if(HIWORD(wParam)==BN_CLICKED){ 3179 3179 //変更情報 3180 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3180 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3181 3181 3182 3182 if(SendDlgItemMessage(hwnd,IDC_LVS_AUTOARRANGE,BM_GETCHECK,0,0)) 3183 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_AUTOARRANGE );3184 else 3185 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_AUTOARRANGE );3183 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_AUTOARRANGE ); 3184 else 3185 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_AUTOARRANGE ); 3186 3186 return 1; 3187 3187 } … … 3190 3190 if(HIWORD(wParam)==BN_CLICKED){ 3191 3191 //変更情報 3192 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3192 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3193 3193 3194 3194 if(SendDlgItemMessage(hwnd,IDC_LVS_NOLABELWRAP,BM_GETCHECK,0,0)) 3195 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOLABELWRAP );3196 else 3197 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOLABELWRAP );3195 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOLABELWRAP ); 3196 else 3197 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOLABELWRAP ); 3198 3198 return 1; 3199 3199 } … … 3202 3202 if(HIWORD(wParam)==BN_CLICKED){ 3203 3203 //変更情報 3204 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3204 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3205 3205 3206 3206 if(SendDlgItemMessage(hwnd,IDC_LVS_EDITLABELS,BM_GETCHECK,0,0)) 3207 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_EDITLABELS );3208 else 3209 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_EDITLABELS );3207 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_EDITLABELS ); 3208 else 3209 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_EDITLABELS ); 3210 3210 return 1; 3211 3211 } … … 3214 3214 if(HIWORD(wParam)==BN_CLICKED){ 3215 3215 //変更情報 3216 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3216 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3217 3217 3218 3218 if(SendDlgItemMessage(hwnd,IDC_LVS_NOSCROLL,BM_GETCHECK,0,0)) 3219 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOSCROLL );3220 else 3221 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOSCROLL );3219 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOSCROLL ); 3220 else 3221 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOSCROLL ); 3222 3222 DrawRadWindow(i,pWindowInfo); 3223 3223 return 1; … … 3227 3227 if(HIWORD(wParam)==BN_CLICKED){ 3228 3228 //変更情報 3229 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3229 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3230 3230 3231 3231 if(SendDlgItemMessage(hwnd,IDC_LVS_NOCOLUMNHEADER,BM_GETCHECK,0,0)) 3232 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOCOLUMNHEADER );3233 else 3234 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOCOLUMNHEADER );3232 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOCOLUMNHEADER ); 3233 else 3234 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOCOLUMNHEADER ); 3235 3235 return 1; 3236 3236 } … … 3239 3239 if(HIWORD(wParam)==BN_CLICKED){ 3240 3240 //変更情報 3241 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3241 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3242 3242 3243 3243 if(SendDlgItemMessage(hwnd,IDC_LVS_NOSORTHEADER,BM_GETCHECK,0,0)) 3244 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOSORTHEADER );3245 else 3246 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOSORTHEADER );3244 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOSORTHEADER ); 3245 else 3246 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOSORTHEADER ); 3247 3247 return 1; 3248 3248 } … … 3251 3251 if(HIWORD(wParam)==BN_CLICKED){ 3252 3252 //変更情報 3253 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3253 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3254 3254 3255 3255 if(SendDlgItemMessage(hwnd,IDC_LVS_SHOWSELALWAYS,BM_GETCHECK,0,0)) 3256 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SHOWSELALWAYS );3257 else 3258 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SHOWSELALWAYS );3256 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SHOWSELALWAYS ); 3257 else 3258 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SHOWSELALWAYS ); 3259 3259 return 1; 3260 3260 } … … 3263 3263 if(HIWORD(wParam)==BN_CLICKED){ 3264 3264 //変更情報 3265 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3265 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3266 3266 3267 3267 if(SendDlgItemMessage(hwnd,IDC_LVS_OWNERDRAWFIXED,BM_GETCHECK,0,0)) 3268 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_OWNERDRAWFIXED );3269 else 3270 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_OWNERDRAWFIXED );3268 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_OWNERDRAWFIXED ); 3269 else 3270 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_OWNERDRAWFIXED ); 3271 3271 return 1; 3272 3272 } … … 3275 3275 if(HIWORD(wParam)==BN_CLICKED){ 3276 3276 //変更情報 3277 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3277 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3278 3278 3279 3279 if(SendDlgItemMessage(hwnd,IDC_LVS_SHAREIMAGELISTS,BM_GETCHECK,0,0)) 3280 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SHAREIMAGELISTS );3281 else 3282 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SHAREIMAGELISTS );3280 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SHAREIMAGELISTS ); 3281 else 3282 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SHAREIMAGELISTS ); 3283 3283 return 1; 3284 3284 } … … 3326 3326 bInitial=1; 3327 3327 i=GetWndNum(GetParent(GetParent(hwnd))); 3328 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);3329 3330 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());3328 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 3329 3330 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 3331 3331 3332 3332 … … 3335 3335 //////////// 3336 3336 3337 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3338 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3339 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3340 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);3337 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3338 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3339 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3340 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 3341 3341 3342 3342 //////// … … 3353 3353 SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_ADDSTRING,0,(long)STRING_NONE_); 3354 3354 3355 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_MULTIPLESEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,1,0);3356 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_EXTENDEDSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,2,0);3357 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_NOSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,3,0);3355 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_MULTIPLESEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,1,0); 3356 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_EXTENDEDSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,2,0); 3357 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_NOSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,3,0); 3358 3358 else SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,0,0); 3359 3359 … … 3370 3370 SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_OWNERDRAW_VARIABLE); 3371 3371 3372 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,1,0);3373 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,2,0);3372 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,1,0); 3373 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,2,0); 3374 3374 else SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,0,0); 3375 3375 3376 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_LBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0);3377 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_SORT) SendDlgItemMessage(hwnd,IDC_LBS_SORT,BM_SETCHECK,BST_CHECKED,0);3378 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_NOTIFY) SendDlgItemMessage(hwnd,IDC_LBS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);3379 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_MULTICOLUMN) SendDlgItemMessage(hwnd,IDC_LBS_MULTICOLUMN,BM_SETCHECK,BST_CHECKED,0);3380 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0);3381 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);3382 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_LBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0);3383 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_NOREDRAW) SendDlgItemMessage(hwnd,IDC_LBS_NOREDRAW,BM_SETCHECK,BST_CHECKED,0);3384 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_USETABSTOPS) SendDlgItemMessage(hwnd,IDC_LBS_USETABSTOPS,BM_SETCHECK,BST_CHECKED,0);3385 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_WANTKEYBOARDINPUT) SendDlgItemMessage(hwnd,IDC_LBS_WANTKEYBOARDINPUT,BM_SETCHECK,BST_CHECKED,0);3386 3387 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle();3376 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_LBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0); 3377 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_SORT) SendDlgItemMessage(hwnd,IDC_LBS_SORT,BM_SETCHECK,BST_CHECKED,0); 3378 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_NOTIFY) SendDlgItemMessage(hwnd,IDC_LBS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 3379 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_MULTICOLUMN) SendDlgItemMessage(hwnd,IDC_LBS_MULTICOLUMN,BM_SETCHECK,BST_CHECKED,0); 3380 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0); 3381 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0); 3382 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_LBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0); 3383 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_NOREDRAW) SendDlgItemMessage(hwnd,IDC_LBS_NOREDRAW,BM_SETCHECK,BST_CHECKED,0); 3384 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_USETABSTOPS) SendDlgItemMessage(hwnd,IDC_LBS_USETABSTOPS,BM_SETCHECK,BST_CHECKED,0); 3385 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_WANTKEYBOARDINPUT) SendDlgItemMessage(hwnd,IDC_LBS_WANTKEYBOARDINPUT,BM_SETCHECK,BST_CHECKED,0); 3386 3387 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle(); 3388 3388 RadProperty_ListBox_StylingOrder(hwnd,&tempStyle); 3389 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );3389 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle ); 3390 3390 3391 3391 … … 3397 3397 i=GetWndNum(GetParent(GetParent(hwnd))); 3398 3398 if(i==-1) return 1; 3399 i2=GetWndInfoNum(MdiInfo[i] .path);3400 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);3399 i2=GetWndInfoNum(MdiInfo[i]->path); 3400 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 3401 3401 3402 3402 //共通スタイル … … 3409 3409 if(HIWORD(wParam)==CBN_SELCHANGE){ 3410 3410 //変更情報 3411 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3411 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3412 3412 3413 3413 i3=SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_GETCURSEL,0,0); 3414 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_MULTIPLESEL|LBS_EXTENDEDSEL|LBS_NOSEL );3415 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_MULTIPLESEL );3416 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_EXTENDEDSEL );3417 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_NOSEL );3414 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_MULTIPLESEL|LBS_EXTENDEDSEL|LBS_NOSEL ); 3415 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_MULTIPLESEL ); 3416 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_EXTENDEDSEL ); 3417 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_NOSEL ); 3418 3418 return 1; 3419 3419 } … … 3422 3422 if(HIWORD(wParam)==CBN_SELCHANGE){ 3423 3423 //変更情報 3424 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3424 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3425 3425 3426 3426 i3=SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_GETCURSEL,0,0); 3427 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_OWNERDRAWFIXED|LBS_OWNERDRAWVARIABLE );3428 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_OWNERDRAWFIXED );3429 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_OWNERDRAWVARIABLE );3430 3431 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle();3427 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_OWNERDRAWFIXED|LBS_OWNERDRAWVARIABLE ); 3428 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_OWNERDRAWFIXED ); 3429 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_OWNERDRAWVARIABLE ); 3430 3431 DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle(); 3432 3432 RadProperty_ListBox_StylingOrder(hwnd,&tempStyle); 3433 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );3433 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle ); 3434 3434 return 1; 3435 3435 } … … 3439 3439 if(HIWORD(wParam)==BN_CLICKED){ 3440 3440 //変更情報 3441 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3441 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3442 3442 3443 3443 if(SendDlgItemMessage(hwnd,IDC_LBS_HASSTRINGS,BM_GETCHECK,0,0)) 3444 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_HASSTRINGS );3445 else 3446 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_HASSTRINGS );3444 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_HASSTRINGS ); 3445 else 3446 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_HASSTRINGS ); 3447 3447 return 1; 3448 3448 } … … 3451 3451 if(HIWORD(wParam)==BN_CLICKED){ 3452 3452 //変更情報 3453 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3453 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3454 3454 3455 3455 if(SendDlgItemMessage(hwnd,IDC_LBS_SORT,BM_GETCHECK,0,0)) 3456 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_SORT );3457 else 3458 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_SORT );3456 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_SORT ); 3457 else 3458 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_SORT ); 3459 3459 return 1; 3460 3460 } … … 3463 3463 if(HIWORD(wParam)==BN_CLICKED){ 3464 3464 //変更情報 3465 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3465 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3466 3466 3467 3467 if(SendDlgItemMessage(hwnd,IDC_LBS_NOTIFY,BM_GETCHECK,0,0)) 3468 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_NOTIFY );3469 else 3470 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_NOTIFY );3468 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_NOTIFY ); 3469 else 3470 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_NOTIFY ); 3471 3471 return 1; 3472 3472 } … … 3475 3475 if(HIWORD(wParam)==BN_CLICKED){ 3476 3476 //変更情報 3477 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3477 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3478 3478 3479 3479 if(SendDlgItemMessage(hwnd,IDC_LBS_MULTICOLUMN,BM_GETCHECK,0,0)) 3480 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_MULTICOLUMN );3481 else 3482 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_MULTICOLUMN );3480 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_MULTICOLUMN ); 3481 else 3482 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_MULTICOLUMN ); 3483 3483 return 1; 3484 3484 } … … 3487 3487 if(HIWORD(wParam)==BN_CLICKED){ 3488 3488 //変更情報 3489 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3489 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3490 3490 3491 3491 if(SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_GETCHECK,0,0)) 3492 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( WS_HSCROLL );3493 else 3494 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_HSCROLL );3492 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( WS_HSCROLL ); 3493 else 3494 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_HSCROLL ); 3495 3495 DrawRadWindow(i,pWindowInfo); 3496 3496 return 1; … … 3500 3500 if(HIWORD(wParam)==BN_CLICKED){ 3501 3501 //変更情報 3502 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3502 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3503 3503 3504 3504 if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0)) 3505 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VSCROLL );3506 else 3507 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VSCROLL );3505 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VSCROLL ); 3506 else 3507 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VSCROLL ); 3508 3508 DrawRadWindow(i,pWindowInfo); 3509 3509 return 1; … … 3513 3513 if(HIWORD(wParam)==BN_CLICKED){ 3514 3514 //変更情報 3515 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3515 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3516 3516 3517 3517 if(SendDlgItemMessage(hwnd,IDC_LBS_DISABLENOSCROLL,BM_GETCHECK,0,0)) 3518 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_DISABLENOSCROLL );3519 else 3520 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_DISABLENOSCROLL );3518 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_DISABLENOSCROLL ); 3519 else 3520 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_DISABLENOSCROLL ); 3521 3521 DrawRadWindow(i,pWindowInfo); 3522 3522 return 1; … … 3526 3526 if(HIWORD(wParam)==BN_CLICKED){ 3527 3527 //変更情報 3528 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3528 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3529 3529 3530 3530 if(SendDlgItemMessage(hwnd,IDC_LBS_NOREDRAW,BM_GETCHECK,0,0)) 3531 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_NOREDRAW );3532 else 3533 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_NOREDRAW );3531 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_NOREDRAW ); 3532 else 3533 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_NOREDRAW ); 3534 3534 return 1; 3535 3535 } … … 3538 3538 if(HIWORD(wParam)==BN_CLICKED){ 3539 3539 //変更情報 3540 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3540 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3541 3541 3542 3542 if(SendDlgItemMessage(hwnd,IDC_LBS_USETABSTOPS,BM_GETCHECK,0,0)) 3543 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_USETABSTOPS );3544 else 3545 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_USETABSTOPS );3543 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_USETABSTOPS ); 3544 else 3545 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_USETABSTOPS ); 3546 3546 return 1; 3547 3547 } … … 3550 3550 if(HIWORD(wParam)==BN_CLICKED){ 3551 3551 //変更情報 3552 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3552 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3553 3553 3554 3554 if(SendDlgItemMessage(hwnd,IDC_LBS_WANTKEYBOARDINPUT,BM_GETCHECK,0,0)) 3555 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_WANTKEYBOARDINPUT );3556 else 3557 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_WANTKEYBOARDINPUT );3555 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_WANTKEYBOARDINPUT ); 3556 else 3557 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_WANTKEYBOARDINPUT ); 3558 3558 return 1; 3559 3559 } … … 3583 3583 bInitial=1; 3584 3584 i=GetWndNum(GetParent(GetParent(hwnd))); 3585 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);3586 3587 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());3588 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());3585 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 3586 3587 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 3588 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetCaption().c_str()); 3589 3589 3590 3590 … … 3592 3592 //スタイル 3593 3593 3594 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3595 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3596 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3597 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);3598 3599 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&PBS_VERTICAL) SendDlgItemMessage(hwnd,IDC_PBS_VERTICAL,BM_SETCHECK,BST_CHECKED,0);3600 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&PBS_SMOOTH) SendDlgItemMessage(hwnd,IDC_PBS_SMOOTH,BM_SETCHECK,BST_CHECKED,0);3594 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3595 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3596 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3597 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 3598 3599 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&PBS_VERTICAL) SendDlgItemMessage(hwnd,IDC_PBS_VERTICAL,BM_SETCHECK,BST_CHECKED,0); 3600 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&PBS_SMOOTH) SendDlgItemMessage(hwnd,IDC_PBS_SMOOTH,BM_SETCHECK,BST_CHECKED,0); 3601 3601 3602 3602 … … 3608 3608 i=GetWndNum(GetParent(GetParent(hwnd))); 3609 3609 if(i==-1) return 1; 3610 i2=GetWndInfoNum(MdiInfo[i] .path);3611 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);3610 i2=GetWndInfoNum(MdiInfo[i]->path); 3611 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 3612 3612 3613 3613 //共通スタイル … … 3620 3620 if(HIWORD(wParam)==BN_CLICKED){ 3621 3621 //変更情報 3622 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3622 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3623 3623 3624 3624 if(SendDlgItemMessage(hwnd,IDC_PBS_VERTICAL,BM_GETCHECK,0,0)) 3625 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( PBS_VERTICAL );3626 else 3627 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( PBS_VERTICAL );3625 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( PBS_VERTICAL ); 3626 else 3627 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( PBS_VERTICAL ); 3628 3628 DrawRadWindow(i,pWindowInfo); 3629 3629 return 1; … … 3633 3633 if(HIWORD(wParam)==BN_CLICKED){ 3634 3634 //変更情報 3635 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3635 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3636 3636 3637 3637 if(SendDlgItemMessage(hwnd,IDC_PBS_SMOOTH,BM_GETCHECK,0,0)) 3638 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( PBS_SMOOTH );3639 else 3640 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( PBS_SMOOTH );3638 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( PBS_SMOOTH ); 3639 else 3640 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( PBS_SMOOTH ); 3641 3641 DrawRadWindow(i,pWindowInfo); 3642 3642 return 1; … … 3667 3667 bInitial=1; 3668 3668 i=GetWndNum(GetParent(GetParent(hwnd))); 3669 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);3670 3671 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());3672 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());3669 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 3670 3671 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 3672 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetCaption().c_str()); 3673 3673 3674 3674 … … 3677 3677 //////////// 3678 3678 3679 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3680 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3681 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3682 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);3683 3684 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_AUTORADIOBUTTON)==BS_AUTORADIOBUTTON) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0);3685 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0);3686 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0);3687 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);3688 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);3689 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);3690 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);3679 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3680 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3681 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3682 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 3683 3684 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_AUTORADIOBUTTON)==BS_AUTORADIOBUTTON) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0); 3685 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0); 3686 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0); 3687 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0); 3688 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0); 3689 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0); 3690 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 3691 3691 3692 3692 … … 3705 3705 3706 3706 //ビットを考慮してBS_CENTERを最初に比較する 3707 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);3708 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);3709 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);3707 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0); 3708 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0); 3709 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0); 3710 3710 else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0); 3711 3711 … … 3725 3725 3726 3726 //ビットを考慮してBS_VCENTERを最初に比較する 3727 if((pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);3728 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);3729 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);3727 if((pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0); 3728 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0); 3729 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0); 3730 3730 else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0); 3731 3731 … … 3738 3738 i=GetWndNum(GetParent(GetParent(hwnd))); 3739 3739 if(i==-1) return 1; 3740 i2=GetWndInfoNum(MdiInfo[i] .path);3741 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);3740 i2=GetWndInfoNum(MdiInfo[i]->path); 3741 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 3742 3742 3743 3743 //共通スタイル … … 3750 3750 if(HIWORD(wParam)==BN_CLICKED){ 3751 3751 //変更情報 3752 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3752 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3753 3753 3754 3754 if(SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_GETCHECK,0,0)){ 3755 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );3756 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTORADIOBUTTON );3755 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 ); 3756 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTORADIOBUTTON ); 3757 3757 } 3758 3758 else{ 3759 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );3760 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RADIOBUTTON );3759 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 ); 3760 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RADIOBUTTON ); 3761 3761 } 3762 3762 return 1; … … 3766 3766 if(HIWORD(wParam)==BN_CLICKED){ 3767 3767 //変更情報 3768 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3768 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3769 3769 3770 3770 if(SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_GETCHECK,0,0)) 3771 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_PUSHLIKE );3772 else 3773 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_PUSHLIKE );3771 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_PUSHLIKE ); 3772 else 3773 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_PUSHLIKE ); 3774 3774 DrawRadWindow(i,pWindowInfo); 3775 3775 return 1; … … 3779 3779 if(HIWORD(wParam)==BN_CLICKED){ 3780 3780 //変更情報 3781 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3781 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3782 3782 3783 3783 if(SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_GETCHECK,0,0)) 3784 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFTTEXT );3785 else 3786 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFTTEXT );3784 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFTTEXT ); 3785 else 3786 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFTTEXT ); 3787 3787 DrawRadWindow(i,pWindowInfo); 3788 3788 return 1; … … 3792 3792 if(HIWORD(wParam)==BN_CLICKED){ 3793 3793 //変更情報 3794 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3794 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3795 3795 3796 3796 if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){ 3797 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON );3798 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );3797 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON ); 3798 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP ); 3799 3799 SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0); 3800 3800 } 3801 3801 else 3802 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );3802 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON ); 3803 3803 DrawRadWindow(i,pWindowInfo); 3804 3804 return 1; … … 3808 3808 if(HIWORD(wParam)==BN_CLICKED){ 3809 3809 //変更情報 3810 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3810 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3811 3811 3812 3812 if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){ 3813 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP );3814 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );3813 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP ); 3814 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON ); 3815 3815 SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0); 3816 3816 } 3817 3817 else 3818 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );3818 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP ); 3819 3819 DrawRadWindow(i,pWindowInfo); 3820 3820 return 1; … … 3824 3824 if(HIWORD(wParam)==BN_CLICKED){ 3825 3825 //変更情報 3826 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3826 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3827 3827 3828 3828 if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0)) 3829 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_MULTILINE );3830 else 3831 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_MULTILINE );3829 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_MULTILINE ); 3830 else 3831 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_MULTILINE ); 3832 3832 DrawRadWindow(i,pWindowInfo); 3833 3833 return 1; … … 3837 3837 if(HIWORD(wParam)==BN_CLICKED){ 3838 3838 //変更情報 3839 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3839 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3840 3840 3841 3841 if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0)) 3842 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY );3843 else 3844 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY );3842 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY ); 3843 else 3844 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY ); 3845 3845 return 1; 3846 3846 } … … 3850 3850 if(HIWORD(wParam)==CBN_SELCHANGE){ 3851 3851 //変更情報 3852 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3852 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3853 3853 3854 3854 i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0); 3855 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFT|BS_RIGHT|BS_CENTER );3856 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT );3857 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT );3858 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER );3855 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFT|BS_RIGHT|BS_CENTER ); 3856 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT ); 3857 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT ); 3858 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER ); 3859 3859 DrawRadWindow(i,pWindowInfo); 3860 3860 return 1; … … 3864 3864 if(HIWORD(wParam)==CBN_SELCHANGE){ 3865 3865 //変更情報 3866 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3866 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3867 3867 3868 3868 i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0); 3869 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_TOP|BS_BOTTOM|BS_VCENTER );3870 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_TOP );3871 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BOTTOM );3872 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( BS_VCENTER );3869 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_TOP|BS_BOTTOM|BS_VCENTER ); 3870 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_TOP ); 3871 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BOTTOM ); 3872 else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( BS_VCENTER ); 3873 3873 DrawRadWindow(i,pWindowInfo); 3874 3874 return 1; … … 3900 3900 bInitial=1; 3901 3901 i=GetWndNum(GetParent(GetParent(hwnd))); 3902 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);3903 3904 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());3902 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 3903 3904 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 3905 3905 3906 3906 … … 3909 3909 //////////// 3910 3910 3911 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3912 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3913 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3914 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);3911 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3912 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3913 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3914 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 3915 3915 3916 3916 … … 3926 3926 SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_ADDSTRING,0,(long)STRING_SCROLLBARPROP_STYLE_BOTTOMORRIGHT); 3927 3927 3928 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&SBS_TOPALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,1,0);3929 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&SBS_BOTTOMALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,2,0);3928 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&SBS_TOPALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,1,0); 3929 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&SBS_BOTTOMALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,2,0); 3930 3930 else SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,0,0); 3931 3931 … … 3938 3938 i=GetWndNum(GetParent(GetParent(hwnd))); 3939 3939 if(i==-1) return 1; 3940 i2=GetWndInfoNum(MdiInfo[i] .path);3941 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);3940 i2=GetWndInfoNum(MdiInfo[i]->path); 3941 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 3942 3942 3943 3943 //共通スタイル … … 3950 3950 if(HIWORD(wParam)==CBN_SELCHANGE){ 3951 3951 //変更情報 3952 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());3952 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 3953 3953 3954 3954 i3=SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_GETCURSEL,0,0); 3955 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( SBS_TOPALIGN|SBS_BOTTOMALIGN );3956 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SBS_TOPALIGN );3957 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SBS_BOTTOMALIGN );3955 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( SBS_TOPALIGN|SBS_BOTTOMALIGN ); 3956 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SBS_TOPALIGN ); 3957 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SBS_BOTTOMALIGN ); 3958 3958 return 1; 3959 3959 } … … 3984 3984 bInitial=1; 3985 3985 i=GetWndNum(GetParent(GetParent(hwnd))); 3986 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);3987 3988 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());3989 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());3986 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 3987 3988 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 3989 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetCaption().c_str()); 3990 3990 3991 3991 … … 3994 3994 //////////// 3995 3995 3996 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);3997 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);3998 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);3999 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);4000 4001 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_NOPREFIX) SendDlgItemMessage(hwnd,IDC_SS_NOPREFIX,BM_SETCHECK,BST_CHECKED,0);4002 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_LEFTNOWORDWRAP) SendDlgItemMessage(hwnd,IDC_SS_LEFTNOWORDWRAP,BM_SETCHECK,BST_CHECKED,0);4003 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);3996 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 3997 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 3998 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 3999 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 4000 4001 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_NOPREFIX) SendDlgItemMessage(hwnd,IDC_SS_NOPREFIX,BM_SETCHECK,BST_CHECKED,0); 4002 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_LEFTNOWORDWRAP) SendDlgItemMessage(hwnd,IDC_SS_LEFTNOWORDWRAP,BM_SETCHECK,BST_CHECKED,0); 4003 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0); 4004 4004 4005 4005 … … 4016 4016 4017 4017 //ビットを考慮してSS_LEFTを最後に検討する 4018 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_CENTER) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,1,0);4019 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_RIGHT) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,2,0);4018 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_CENTER) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,1,0); 4019 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_RIGHT) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,2,0); 4020 4020 else SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,0,0); 4021 4021 … … 4028 4028 i=GetWndNum(GetParent(GetParent(hwnd))); 4029 4029 if(i==-1) return 1; 4030 i2=GetWndInfoNum(MdiInfo[i] .path);4031 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);4030 i2=GetWndInfoNum(MdiInfo[i]->path); 4031 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 4032 4032 4033 4033 //共通スタイル … … 4040 4040 if(HIWORD(wParam)==BN_CLICKED){ 4041 4041 //変更情報 4042 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4042 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4043 4043 4044 4044 if(SendDlgItemMessage(hwnd,IDC_SS_NOPREFIX,BM_GETCHECK,0,0)) 4045 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_NOPREFIX );4046 else 4047 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_NOPREFIX );4045 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_NOPREFIX ); 4046 else 4047 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_NOPREFIX ); 4048 4048 return 1; 4049 4049 } … … 4052 4052 if(HIWORD(wParam)==BN_CLICKED){ 4053 4053 //変更情報 4054 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4054 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4055 4055 4056 4056 if(SendDlgItemMessage(hwnd,IDC_SS_LEFTNOWORDWRAP,BM_GETCHECK,0,0)) 4057 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_LEFTNOWORDWRAP );4058 else 4059 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_LEFTNOWORDWRAP );4057 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_LEFTNOWORDWRAP ); 4058 else 4059 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_LEFTNOWORDWRAP ); 4060 4060 4061 4061 DrawRadWindow(i,pWindowInfo); … … 4066 4066 if(HIWORD(wParam)==BN_CLICKED){ 4067 4067 //変更情報 4068 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4068 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4069 4069 4070 4070 if(SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_GETCHECK,0,0)) 4071 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_NOTIFY );4072 else 4073 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_NOTIFY );4071 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_NOTIFY ); 4072 else 4073 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_NOTIFY ); 4074 4074 return 1; 4075 4075 } … … 4079 4079 if(HIWORD(wParam)==CBN_SELCHANGE){ 4080 4080 //変更情報 4081 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4081 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4082 4082 4083 4083 i3=SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_GETCURSEL,0,0); 4084 4084 //SS_LEFT=0 4085 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_CENTER|SS_RIGHT );4086 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_CENTER );4087 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( SS_RIGHT );4085 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_CENTER|SS_RIGHT ); 4086 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_CENTER ); 4087 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( SS_RIGHT ); 4088 4088 DrawRadWindow(i,pWindowInfo); 4089 4089 return 1; … … 4114 4114 bInitial=1; 4115 4115 i=GetWndNum(GetParent(GetParent(hwnd))); 4116 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);4117 4118 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());4116 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 4117 4118 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 4119 4119 4120 4120 … … 4123 4123 //////////// 4124 4124 4125 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);4126 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);4127 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);4128 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);4125 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 4126 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 4127 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 4128 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 4129 4129 4130 4130 … … 4138 4138 SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_ADDSTRING,0,(long)STRING_DIRECTION_VERTICAL); 4139 4139 4140 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_VERT) SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_SETCURSEL,1,0);4140 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_VERT) SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_SETCURSEL,1,0); 4141 4141 else SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_SETCURSEL,0,0); 4142 4142 … … 4153 4153 SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_ADDSTRING,0,(long)STRING_TRACKBARPROP_STYLE_POSITION_BOTTOMORRIGHT); 4154 4154 4155 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_BOTH) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,0,0);4156 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_TOP) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,1,0);4155 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_BOTH) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,0,0); 4156 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_TOP) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,1,0); 4157 4157 else SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,2,0); 4158 4158 4159 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_NOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_NOTICKS,BM_SETCHECK,BST_CHECKED,0);4160 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_AUTOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_AUTOTICKS,BM_SETCHECK,BST_CHECKED,0);4161 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_ENABLESELRANGE) SendDlgItemMessage(hwnd,IDC_TBS_ENABLESELRANGE,BM_SETCHECK,BST_CHECKED,0);4159 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_NOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_NOTICKS,BM_SETCHECK,BST_CHECKED,0); 4160 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_AUTOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_AUTOTICKS,BM_SETCHECK,BST_CHECKED,0); 4161 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_ENABLESELRANGE) SendDlgItemMessage(hwnd,IDC_TBS_ENABLESELRANGE,BM_SETCHECK,BST_CHECKED,0); 4162 4162 4163 4163 … … 4169 4169 i=GetWndNum(GetParent(GetParent(hwnd))); 4170 4170 if(i==-1) return 1; 4171 i2=GetWndInfoNum(MdiInfo[i] .path);4172 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);4171 i2=GetWndInfoNum(MdiInfo[i]->path); 4172 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 4173 4173 4174 4174 //共通スタイル … … 4181 4181 if(HIWORD(wParam)==CBN_SELCHANGE){ 4182 4182 //変更情報 4183 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4183 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4184 4184 4185 4185 i3=SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_GETCURSEL,0,0); 4186 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_VERT );4187 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_VERT );4186 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_VERT ); 4187 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_VERT ); 4188 4188 DrawRadWindow(i,pWindowInfo); 4189 4189 return 1; … … 4193 4193 if(HIWORD(wParam)==CBN_SELCHANGE){ 4194 4194 //変更情報 4195 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4195 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4196 4196 4197 4197 i3=SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_GETCURSEL,0,0); 4198 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_BOTH|TBS_TOP );4199 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_BOTH );4200 else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_TOP );4198 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_BOTH|TBS_TOP ); 4199 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_BOTH ); 4200 else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_TOP ); 4201 4201 DrawRadWindow(i,pWindowInfo); 4202 4202 return 1; … … 4207 4207 if(HIWORD(wParam)==BN_CLICKED){ 4208 4208 //変更情報 4209 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4209 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4210 4210 4211 4211 if(SendDlgItemMessage(hwnd,IDC_TBS_NOTICKS,BM_GETCHECK,0,0)) 4212 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_NOTICKS );4213 else 4214 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_NOTICKS );4212 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_NOTICKS ); 4213 else 4214 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_NOTICKS ); 4215 4215 DrawRadWindow(i,pWindowInfo); 4216 4216 return 1; … … 4220 4220 if(HIWORD(wParam)==BN_CLICKED){ 4221 4221 //変更情報 4222 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4222 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4223 4223 4224 4224 if(SendDlgItemMessage(hwnd,IDC_TBS_AUTOTICKS,BM_GETCHECK,0,0)) 4225 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_AUTOTICKS );4226 else 4227 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_AUTOTICKS );4225 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_AUTOTICKS ); 4226 else 4227 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_AUTOTICKS ); 4228 4228 return 1; 4229 4229 } … … 4232 4232 if(HIWORD(wParam)==BN_CLICKED){ 4233 4233 //変更情報 4234 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4234 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4235 4235 4236 4236 if(SendDlgItemMessage(hwnd,IDC_TBS_ENABLESELRANGE,BM_GETCHECK,0,0)) 4237 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_ENABLESELRANGE );4238 else 4239 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_ENABLESELRANGE );4237 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_ENABLESELRANGE ); 4238 else 4239 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_ENABLESELRANGE ); 4240 4240 DrawRadWindow(i,pWindowInfo); 4241 4241 return 1; … … 4266 4266 bInitial=1; 4267 4267 i=GetWndNum(GetParent(GetParent(hwnd))); 4268 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);4269 4270 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());4268 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 4269 4270 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 4271 4271 4272 4272 … … 4274 4274 //スタイル 4275 4275 4276 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);4277 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);4278 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);4279 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);4280 4281 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_HASBUTTONS) SendDlgItemMessage(hwnd,IDC_TVS_HASBUTTONS,BM_SETCHECK,BST_CHECKED,0);4282 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_HASLINES) SendDlgItemMessage(hwnd,IDC_TVS_HASLINES,BM_SETCHECK,BST_CHECKED,0);4283 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_LINESATROOT) SendDlgItemMessage(hwnd,IDC_TVS_LINESATROOT,BM_SETCHECK,BST_CHECKED,0);4284 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_TVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0);4285 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_DISABLEDRAGDROP) SendDlgItemMessage(hwnd,IDC_TVS_DISABLEDRAGDROP,BM_SETCHECK,BST_CHECKED,0);4286 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_TVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0);4287 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_TVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0);4288 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_NOTOOLTIPS) SendDlgItemMessage(hwnd,IDC_TVS_NOTOOLTIPS,BM_SETCHECK,BST_CHECKED,0);4289 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_CHECKBOXES) SendDlgItemMessage(hwnd,IDC_TVS_CHECKBOXES,BM_SETCHECK,BST_CHECKED,0);4290 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_FULLROWSELECT) SendDlgItemMessage(hwnd,IDC_TVS_FULLROWSELECT,BM_SETCHECK,BST_CHECKED,0);4291 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_TRACKSELECT) SendDlgItemMessage(hwnd,IDC_TVS_TRACKSELECT,BM_SETCHECK,BST_CHECKED,0);4292 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_SINGLEEXPAND) SendDlgItemMessage(hwnd,IDC_TVS_SINGLEEXPAND,BM_SETCHECK,BST_CHECKED,0);4276 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 4277 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 4278 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 4279 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 4280 4281 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_HASBUTTONS) SendDlgItemMessage(hwnd,IDC_TVS_HASBUTTONS,BM_SETCHECK,BST_CHECKED,0); 4282 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_HASLINES) SendDlgItemMessage(hwnd,IDC_TVS_HASLINES,BM_SETCHECK,BST_CHECKED,0); 4283 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_LINESATROOT) SendDlgItemMessage(hwnd,IDC_TVS_LINESATROOT,BM_SETCHECK,BST_CHECKED,0); 4284 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_TVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0); 4285 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_DISABLEDRAGDROP) SendDlgItemMessage(hwnd,IDC_TVS_DISABLEDRAGDROP,BM_SETCHECK,BST_CHECKED,0); 4286 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_TVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0); 4287 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_TVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0); 4288 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_NOTOOLTIPS) SendDlgItemMessage(hwnd,IDC_TVS_NOTOOLTIPS,BM_SETCHECK,BST_CHECKED,0); 4289 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_CHECKBOXES) SendDlgItemMessage(hwnd,IDC_TVS_CHECKBOXES,BM_SETCHECK,BST_CHECKED,0); 4290 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_FULLROWSELECT) SendDlgItemMessage(hwnd,IDC_TVS_FULLROWSELECT,BM_SETCHECK,BST_CHECKED,0); 4291 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_TRACKSELECT) SendDlgItemMessage(hwnd,IDC_TVS_TRACKSELECT,BM_SETCHECK,BST_CHECKED,0); 4292 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_SINGLEEXPAND) SendDlgItemMessage(hwnd,IDC_TVS_SINGLEEXPAND,BM_SETCHECK,BST_CHECKED,0); 4293 4293 4294 4294 … … 4300 4300 i=GetWndNum(GetParent(GetParent(hwnd))); 4301 4301 if(i==-1) return 1; 4302 i2=GetWndInfoNum(MdiInfo[i] .path);4303 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);4302 i2=GetWndInfoNum(MdiInfo[i]->path); 4303 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 4304 4304 4305 4305 //共通スタイル … … 4312 4312 if(HIWORD(wParam)==BN_CLICKED){ 4313 4313 //変更情報 4314 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4314 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4315 4315 4316 4316 if(SendDlgItemMessage(hwnd,IDC_TVS_HASBUTTONS,BM_GETCHECK,0,0)) 4317 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_HASBUTTONS );4318 else 4319 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_HASBUTTONS );4317 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_HASBUTTONS ); 4318 else 4319 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_HASBUTTONS ); 4320 4320 return 1; 4321 4321 } … … 4324 4324 if(HIWORD(wParam)==BN_CLICKED){ 4325 4325 //変更情報 4326 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4326 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4327 4327 4328 4328 if(SendDlgItemMessage(hwnd,IDC_TVS_HASLINES,BM_GETCHECK,0,0)) 4329 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_HASLINES );4330 else 4331 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_HASLINES );4329 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_HASLINES ); 4330 else 4331 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_HASLINES ); 4332 4332 return 1; 4333 4333 } … … 4336 4336 if(HIWORD(wParam)==BN_CLICKED){ 4337 4337 //変更情報 4338 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4338 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4339 4339 4340 4340 if(SendDlgItemMessage(hwnd,IDC_TVS_LINESATROOT,BM_GETCHECK,0,0)) 4341 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_LINESATROOT );4342 else 4343 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_LINESATROOT );4341 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_LINESATROOT ); 4342 else 4343 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_LINESATROOT ); 4344 4344 return 1; 4345 4345 } … … 4348 4348 if(HIWORD(wParam)==BN_CLICKED){ 4349 4349 //変更情報 4350 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4350 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4351 4351 4352 4352 if(SendDlgItemMessage(hwnd,IDC_TVS_EDITLABELS,BM_GETCHECK,0,0)) 4353 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_EDITLABELS );4354 else 4355 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_EDITLABELS );4353 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_EDITLABELS ); 4354 else 4355 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_EDITLABELS ); 4356 4356 return 1; 4357 4357 } … … 4360 4360 if(HIWORD(wParam)==BN_CLICKED){ 4361 4361 //変更情報 4362 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4362 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4363 4363 4364 4364 if(SendDlgItemMessage(hwnd,IDC_TVS_DISABLEDRAGDROP,BM_GETCHECK,0,0)) 4365 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_DISABLEDRAGDROP );4366 else 4367 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_DISABLEDRAGDROP );4365 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_DISABLEDRAGDROP ); 4366 else 4367 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_DISABLEDRAGDROP ); 4368 4368 return 1; 4369 4369 } … … 4372 4372 if(HIWORD(wParam)==BN_CLICKED){ 4373 4373 //変更情報 4374 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4374 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4375 4375 4376 4376 if(SendDlgItemMessage(hwnd,IDC_TVS_SHOWSELALWAYS,BM_GETCHECK,0,0)) 4377 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_SHOWSELALWAYS );4378 else 4379 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_SHOWSELALWAYS );4377 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_SHOWSELALWAYS ); 4378 else 4379 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_SHOWSELALWAYS ); 4380 4380 return 1; 4381 4381 } … … 4384 4384 if(HIWORD(wParam)==BN_CLICKED){ 4385 4385 //変更情報 4386 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4386 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4387 4387 4388 4388 if(SendDlgItemMessage(hwnd,IDC_TVS_NOSCROLL,BM_GETCHECK,0,0)) 4389 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_NOSCROLL );4390 else 4391 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_NOSCROLL );4389 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_NOSCROLL ); 4390 else 4391 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_NOSCROLL ); 4392 4392 return 1; 4393 4393 } … … 4396 4396 if(HIWORD(wParam)==BN_CLICKED){ 4397 4397 //変更情報 4398 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4398 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4399 4399 4400 4400 if(SendDlgItemMessage(hwnd,IDC_TVS_NOTOOLTIPS,BM_GETCHECK,0,0)) 4401 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_NOTOOLTIPS );4402 else 4403 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_NOTOOLTIPS );4401 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_NOTOOLTIPS ); 4402 else 4403 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_NOTOOLTIPS ); 4404 4404 return 1; 4405 4405 } … … 4408 4408 if(HIWORD(wParam)==BN_CLICKED){ 4409 4409 //変更情報 4410 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4410 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4411 4411 4412 4412 if(SendDlgItemMessage(hwnd,IDC_TVS_CHECKBOXES,BM_GETCHECK,0,0)) 4413 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_CHECKBOXES );4414 else 4415 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_CHECKBOXES );4413 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_CHECKBOXES ); 4414 else 4415 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_CHECKBOXES ); 4416 4416 return 1; 4417 4417 } … … 4420 4420 if(HIWORD(wParam)==BN_CLICKED){ 4421 4421 //変更情報 4422 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4422 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4423 4423 4424 4424 if(SendDlgItemMessage(hwnd,IDC_TVS_FULLROWSELECT,BM_GETCHECK,0,0)) 4425 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_FULLROWSELECT );4426 else 4427 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_FULLROWSELECT );4425 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_FULLROWSELECT ); 4426 else 4427 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_FULLROWSELECT ); 4428 4428 return 1; 4429 4429 } … … 4432 4432 if(HIWORD(wParam)==BN_CLICKED){ 4433 4433 //変更情報 4434 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4434 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4435 4435 4436 4436 if(SendDlgItemMessage(hwnd,IDC_TVS_TRACKSELECT,BM_GETCHECK,0,0)) 4437 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_TRACKSELECT );4438 else 4439 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_TRACKSELECT );4437 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_TRACKSELECT ); 4438 else 4439 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_TRACKSELECT ); 4440 4440 return 1; 4441 4441 } … … 4444 4444 if(HIWORD(wParam)==BN_CLICKED){ 4445 4445 //変更情報 4446 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4446 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4447 4447 4448 4448 if(SendDlgItemMessage(hwnd,IDC_TVS_SINGLEEXPAND,BM_GETCHECK,0,0)) 4449 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_SINGLEEXPAND );4450 else 4451 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_SINGLEEXPAND );4449 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_SINGLEEXPAND ); 4450 else 4451 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_SINGLEEXPAND ); 4452 4452 return 1; 4453 4453 } … … 4477 4477 bInitial=1; 4478 4478 i=GetWndNum(GetParent(GetParent(hwnd))); 4479 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);4480 4481 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetName().c_str());4482 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());4479 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 4480 4481 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetName().c_str()); 4482 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetCaption().c_str()); 4483 4483 4484 4484 … … 4487 4487 //////////// 4488 4488 4489 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);4490 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);4491 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);4492 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);4489 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0); 4490 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0); 4491 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0); 4492 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0); 4493 4493 4494 4494 … … 4502 4502 SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_ADDSTRING,0,(long)STRING_DIRECTION_VERTICAL); 4503 4503 4504 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_HORZ) SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_SETCURSEL,0,0);4504 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_HORZ) SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_SETCURSEL,0,0); 4505 4505 else SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_SETCURSEL,1,0); 4506 4506 … … 4516 4516 SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_ADDSTRING,0,(long)STRING_RIGHT); 4517 4517 4518 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,1,0);4519 else if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_ALIGNRIGHT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,2,0);4518 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,1,0); 4519 else if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_ALIGNRIGHT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,2,0); 4520 4520 else SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,0,0); 4521 4521 4522 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_AUTOBUDDY) SendDlgItemMessage(hwnd,IDC_UDS_AUTOBUDDY,BM_SETCHECK,BST_CHECKED,0);4523 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_SETBUDDYINT) SendDlgItemMessage(hwnd,IDC_UDS_SETBUDDYINT,BM_SETCHECK,BST_CHECKED,0);4524 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_NOTHOUSANDS) SendDlgItemMessage(hwnd,IDC_UDS_NOTHOUSANDS,BM_SETCHECK,BST_CHECKED,0);4525 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_WRAP) SendDlgItemMessage(hwnd,IDC_UDS_WRAP,BM_SETCHECK,BST_CHECKED,0);4526 if(pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_ARROWKEYS) SendDlgItemMessage(hwnd,IDC_UDS_ARROWKEYS,BM_SETCHECK,BST_CHECKED,0);4522 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_AUTOBUDDY) SendDlgItemMessage(hwnd,IDC_UDS_AUTOBUDDY,BM_SETCHECK,BST_CHECKED,0); 4523 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_SETBUDDYINT) SendDlgItemMessage(hwnd,IDC_UDS_SETBUDDYINT,BM_SETCHECK,BST_CHECKED,0); 4524 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_NOTHOUSANDS) SendDlgItemMessage(hwnd,IDC_UDS_NOTHOUSANDS,BM_SETCHECK,BST_CHECKED,0); 4525 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_WRAP) SendDlgItemMessage(hwnd,IDC_UDS_WRAP,BM_SETCHECK,BST_CHECKED,0); 4526 if(pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_ARROWKEYS) SendDlgItemMessage(hwnd,IDC_UDS_ARROWKEYS,BM_SETCHECK,BST_CHECKED,0); 4527 4527 4528 4528 … … 4534 4534 i=GetWndNum(GetParent(GetParent(hwnd))); 4535 4535 if(i==-1) return 1; 4536 i2=GetWndInfoNum(MdiInfo[i] .path);4537 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i] .path);4536 i2=GetWndInfoNum(MdiInfo[i]->path); 4537 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path); 4538 4538 4539 4539 //共通スタイル … … 4546 4546 if(HIWORD(wParam)==CBN_SELCHANGE){ 4547 4547 //変更情報 4548 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4548 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4549 4549 4550 4550 i3=SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_GETCURSEL,0,0); 4551 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_HORZ );4552 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_HORZ );4551 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_HORZ ); 4552 if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_HORZ ); 4553 4553 DrawRadWindow(i,pWindowInfo); 4554 4554 return 1; … … 4558 4558 if(HIWORD(wParam)==CBN_SELCHANGE){ 4559 4559 //変更情報 4560 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4560 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4561 4561 4562 4562 i3=SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_GETCURSEL,0,0); 4563 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_ALIGNLEFT|UDS_ALIGNRIGHT );4564 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_ALIGNLEFT );4565 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_ALIGNRIGHT );4563 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_ALIGNLEFT|UDS_ALIGNRIGHT ); 4564 if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_ALIGNLEFT ); 4565 else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_ALIGNRIGHT ); 4566 4566 return 1; 4567 4567 } … … 4571 4571 if(HIWORD(wParam)==BN_CLICKED){ 4572 4572 //変更情報 4573 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4573 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4574 4574 4575 4575 if(SendDlgItemMessage(hwnd,IDC_UDS_AUTOBUDDY,BM_GETCHECK,0,0)) 4576 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_AUTOBUDDY );4577 else 4578 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_AUTOBUDDY );4576 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_AUTOBUDDY ); 4577 else 4578 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_AUTOBUDDY ); 4579 4579 return 1; 4580 4580 } … … 4583 4583 if(HIWORD(wParam)==BN_CLICKED){ 4584 4584 //変更情報 4585 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4585 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4586 4586 4587 4587 if(SendDlgItemMessage(hwnd,IDC_UDS_SETBUDDYINT,BM_GETCHECK,0,0)) 4588 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_SETBUDDYINT );4589 else 4590 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_SETBUDDYINT );4588 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_SETBUDDYINT ); 4589 else 4590 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_SETBUDDYINT ); 4591 4591 return 1; 4592 4592 } … … 4595 4595 if(HIWORD(wParam)==BN_CLICKED){ 4596 4596 //変更情報 4597 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4597 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4598 4598 4599 4599 if(SendDlgItemMessage(hwnd,IDC_UDS_NOTHOUSANDS,BM_GETCHECK,0,0)) 4600 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_NOTHOUSANDS );4601 else 4602 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_NOTHOUSANDS );4600 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_NOTHOUSANDS ); 4601 else 4602 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_NOTHOUSANDS ); 4603 4603 return 1; 4604 4604 } … … 4607 4607 if(HIWORD(wParam)==BN_CLICKED){ 4608 4608 //変更情報 4609 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4609 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4610 4610 4611 4611 if(SendDlgItemMessage(hwnd,IDC_UDS_WRAP,BM_GETCHECK,0,0)) 4612 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_WRAP );4613 else 4614 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_WRAP );4612 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_WRAP ); 4613 else 4614 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_WRAP ); 4615 4615 return 1; 4616 4616 } … … 4619 4619 if(HIWORD(wParam)==BN_CLICKED){ 4620 4620 //変更情報 4621 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i] .MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());4621 Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i]->MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->GetStyle()); 4622 4622 4623 4623 if(SendDlgItemMessage(hwnd,IDC_UDS_ARROWKEYS,BM_GETCHECK,0,0)) 4624 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_ARROWKEYS );4625 else 4626 pWindowInfo->childWindowInfos[MdiInfo[i] .MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_ARROWKEYS );4624 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_ARROWKEYS ); 4625 else 4626 pWindowInfo->childWindowInfos[MdiInfo[i]->MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_ARROWKEYS ); 4627 4627 return 1; 4628 4628 } … … 4674 4674 ScrollInfo.fMask=SIF_PAGE|SIF_RANGE|SIF_POS; 4675 4675 GetScrollInfo(hwnd,SB_VERT,&ScrollInfo); 4676 GetClientRect(MdiInfo[i] .MdiRadInfo->hProp_Dlg,&rect);4676 GetClientRect(MdiInfo[i]->MdiRadInfo->hProp_Dlg,&rect); 4677 4677 ScrollInfo.nMin=0; 4678 4678 ScrollInfo.nMax=rect.bottom; -
trunk/ab5.0/abdev/abdev/Rad_UndoRedo.cpp
r625 r629 9 9 RAD_UNDOSTATE *pUndoState; 10 10 11 pUndoState=&MdiInfo[WndNum] .MdiRadInfo->undo;11 pUndoState=&MdiInfo[WndNum]->MdiRadInfo->undo; 12 12 i=pUndoState->NowPos-1; 13 13 if(i==-1) i=MAX_UNDONUM-1; … … 18 18 pUndoState->NowPos=i; 19 19 20 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum] .path);21 int WndInfoNum = GetWndInfoNum(MdiInfo[WndNum] .path);20 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum]->path); 21 int WndInfoNum = GetWndInfoNum(MdiInfo[WndNum]->path); 22 22 switch(pUndoState->Command[pUndoState->NowPos]){ 23 23 case RAD_UNDO_INSERTITEM: 24 24 DeleteDlgItem(WndNum,WndInfoNum,pUndoState->SelectItemNum[pUndoState->NowPos],0); 25 MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]=-1;25 MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]=-1; 26 26 break; 27 27 case RAD_UNDO_DELETEITEM: … … 45 45 names->name = tempStr; 46 46 47 MdiInfo[WndNum] .path = pWindowInfo->GetName();47 MdiInfo[WndNum]->path = pWindowInfo->GetName(); 48 48 } 49 49 else{ … … 53 53 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) ); 54 54 } 55 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])55 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 56 56 ChangePropertyWindow(WndNum,WndInfoNum); 57 57 break; … … 69 69 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) ); 70 70 } 71 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])71 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 72 72 ChangePropertyWindow(WndNum,WndInfoNum); 73 73 DrawRadWindow(WndNum,pWindowInfo); … … 79 79 pWindowInfo->LogFont=*pLogFont; 80 80 *pLogFont=lf; 81 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])81 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 82 82 ChangePropertyWindow(WndNum,WndInfoNum); 83 83 DrawRadWindow(WndNum,pWindowInfo); … … 89 89 pUndoState->lpdwData[pUndoState->NowPos] = static_cast<DWORD>(tempBgColor); 90 90 91 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])91 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 92 92 ChangePropertyWindow(WndNum,WndInfoNum); 93 93 DrawRadWindow(WndNum,pWindowInfo); … … 100 100 delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos]; 101 101 pUndoState->lpdwData[pUndoState->NowPos] = (DWORD)( new std::string( tempMenuIdName ) ); 102 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])102 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 103 103 { 104 104 ChangePropertyWindow(WndNum,WndInfoNum); … … 114 114 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) ); 115 115 } 116 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])116 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 117 117 ChangePropertyWindow(WndNum,WndInfoNum); 118 118 break; … … 128 128 pUndoState->lpdwData[pUndoState->NowPos]=dw; 129 129 } 130 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])130 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 131 131 ChangePropertyWindow(WndNum,WndInfoNum); 132 132 DrawRadWindow(WndNum,pWindowInfo); … … 177 177 pImageCtrlInfo->path = tempPath; 178 178 179 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])179 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 180 180 ChangePropertyWindow(WndNum,WndInfoNum); 181 181 DrawRadWindow(WndNum,pWindowInfo); … … 187 187 pUndoState->lpdwData[pUndoState->NowPos]=dw; 188 188 189 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])189 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 190 190 ChangePropertyWindow(WndNum,WndInfoNum); 191 191 break; … … 203 203 RECT rect; 204 204 205 pUndoState=&MdiInfo[WndNum] .MdiRadInfo->undo;205 pUndoState=&MdiInfo[WndNum]->MdiRadInfo->undo; 206 206 if(!pUndoState->Command[pUndoState->NowPos]){ 207 207 MessageBeep(0); … … 209 209 } 210 210 211 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum] .path);212 int WndInfoNum = GetWndInfoNum(MdiInfo[WndNum] .path);211 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum]->path); 212 int WndInfoNum = GetWndInfoNum(MdiInfo[WndNum]->path); 213 213 switch(pUndoState->Command[pUndoState->NowPos]){ 214 214 case RAD_UNDO_INSERTITEM: … … 224 224 case RAD_UNDO_DELETEITEM: 225 225 DeleteDlgItem(WndNum,WndInfoNum,pUndoState->SelectItemNum[pUndoState->NowPos],0); 226 MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]=-1;226 MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]=-1; 227 227 break; 228 228 case RAD_UNDO_NAME: … … 234 234 names->name = tempStr; 235 235 236 MdiInfo[WndNum] .path = pWindowInfo->GetName();236 MdiInfo[WndNum]->path = pWindowInfo->GetName(); 237 237 } 238 238 else{ … … 242 242 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) ); 243 243 } 244 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])244 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 245 245 ChangePropertyWindow(WndNum,WndInfoNum); 246 246 break; … … 258 258 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) ); 259 259 } 260 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])260 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 261 261 ChangePropertyWindow(WndNum,WndInfoNum); 262 262 DrawRadWindow(WndNum,pWindowInfo); … … 268 268 pWindowInfo->LogFont=*pLogFont; 269 269 *pLogFont=lf; 270 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])270 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 271 271 ChangePropertyWindow(WndNum,WndInfoNum); 272 272 DrawRadWindow(WndNum,pWindowInfo); … … 278 278 pUndoState->lpdwData[pUndoState->NowPos] = static_cast<DWORD>(tempBgColor); 279 279 } 280 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])280 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 281 281 ChangePropertyWindow(WndNum,WndInfoNum); 282 282 DrawRadWindow(WndNum,pWindowInfo); … … 288 288 delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos]; 289 289 pUndoState->lpdwData[pUndoState->NowPos] = (DWORD)( new std::string( tempMenuIdName ) ); 290 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])290 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 291 291 { 292 292 ChangePropertyWindow(WndNum,WndInfoNum); … … 302 302 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) ); 303 303 } 304 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])304 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 305 305 ChangePropertyWindow(WndNum,WndInfoNum); 306 306 break; … … 316 316 pUndoState->lpdwData[pUndoState->NowPos]=dw; 317 317 } 318 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])318 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 319 319 ChangePropertyWindow(WndNum,WndInfoNum); 320 320 DrawRadWindow(WndNum,pWindowInfo); … … 365 365 pImageCtrlInfo->path = tempPath; 366 366 367 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])367 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 368 368 ChangePropertyWindow(WndNum,WndInfoNum); 369 369 DrawRadWindow(WndNum,pWindowInfo); … … 375 375 pUndoState->lpdwData[pUndoState->NowPos]=dw; 376 376 377 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0])377 if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]) 378 378 ChangePropertyWindow(WndNum,WndInfoNum); 379 379 break; … … 391 391 RAD_UNDOSTATE *pUndoState; 392 392 393 pUndoState=&MdiInfo[WndNum] .MdiRadInfo->undo;393 pUndoState=&MdiInfo[WndNum]->MdiRadInfo->undo; 394 394 switch(pUndoState->Command[pos]){ 395 395 case RAD_UNDO_INSERTITEM: … … 450 450 RAD_UNDOSTATE *pUndoState; 451 451 452 pUndoState=&MdiInfo[WndNum] .MdiRadInfo->undo;452 pUndoState=&MdiInfo[WndNum]->MdiRadInfo->undo; 453 453 454 454 //Redoされた場合の不要なデータを削除する -
trunk/ab5.0/abdev/abdev/Replace.cpp
r625 r629 9 9 CHARRANGE Range,cr2; 10 10 11 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;11 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 12 12 13 13 //行の先頭位置を取得 … … 31 31 //初期化(すべて黒色に戻す) 32 32 for(i=Range.cpMin;i<Range.cpMax;i++){ 33 MdiInfo[WndNum] .pMdiTextEdit->pColorRef[i]=tci.rgbDefault;33 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i]=tci.rgbDefault; 34 34 } 35 35 … … 60 60 if(bResult){ 61 61 for(i2=cr2.cpMin;i2<cr2.cpMax;i2++){ 62 MdiInfo[WndNum] .pMdiTextEdit->pColorRef[i2]=tci.rgbStatement;62 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i2]=tci.rgbStatement; 63 63 } 64 64 } … … 66 66 if(IsStr||pBuf[i]=='\"'&&IsStr==0){ 67 67 //文字列カラー(""で囲まれる範囲) 68 MdiInfo[WndNum] .pMdiTextEdit->pColorRef[i]=tci.rgbString;68 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i]=tci.rgbString; 69 69 } 70 70 if(pBuf[i]=='\0') break; … … 90 90 //バッファ長を取得 91 91 int length; 92 length=lstrlen(MdiInfo[WndNum] .pMdiTextEdit->buffer);92 length=lstrlen(MdiInfo[WndNum]->pMdiTextEdit->buffer); 93 93 94 94 int delta; … … 99 99 //////////////////// 100 100 101 MdiInfo[WndNum] .pMdiTextEdit->buffer=(char *)HeapReAlloc(hHeap,101 MdiInfo[WndNum]->pMdiTextEdit->buffer=(char *)HeapReAlloc(hHeap, 102 102 0, 103 MdiInfo[WndNum] .pMdiTextEdit->buffer,103 MdiInfo[WndNum]->pMdiTextEdit->buffer, 104 104 length+1+delta); 105 105 106 MdiInfo[WndNum] .pMdiTextEdit->pColorRef=(COLORREF *)HeapReAlloc(hHeap,106 MdiInfo[WndNum]->pMdiTextEdit->pColorRef=(COLORREF *)HeapReAlloc(hHeap, 107 107 0, 108 MdiInfo[WndNum] .pMdiTextEdit->pColorRef,108 MdiInfo[WndNum]->pMdiTextEdit->pColorRef, 109 109 (length+1+delta)*sizeof(COLORREF)); 110 110 } … … 114 114 if( projectInfo.IsOpened() ){ 115 115 projectInfo.pobj_DBBreakPoint->replace( 116 MdiInfo[WndNum] .path.c_str(),117 MdiInfo[WndNum] .pMdiTextEdit->buffer,116 MdiInfo[WndNum]->path.c_str(), 117 MdiInfo[WndNum]->pMdiTextEdit->buffer, 118 118 &DelRange, 119 119 &Range, … … 123 123 extern CDBBreakPoint *pobj_DBBreakPoint; 124 124 pobj_DBBreakPoint->replace( 125 MdiInfo[WndNum] .path.c_str(),126 MdiInfo[WndNum] .pMdiTextEdit->buffer,125 MdiInfo[WndNum]->path.c_str(), 126 MdiInfo[WndNum]->pMdiTextEdit->buffer, 127 127 &DelRange, 128 128 &Range, … … 132 132 133 133 //文字列バッファをスライドして、挿入 134 SlideString(MdiInfo[WndNum] .pMdiTextEdit->buffer+DelRange.cpMax,134 SlideString(MdiInfo[WndNum]->pMdiTextEdit->buffer+DelRange.cpMax, 135 135 delta); 136 memcpy(MdiInfo[WndNum] .pMdiTextEdit->buffer+Range.cpMin,str,lstrlen(str));136 memcpy(MdiInfo[WndNum]->pMdiTextEdit->buffer+Range.cpMin,str,lstrlen(str)); 137 137 138 138 //文字カラーバッファをスライド 139 SlideBuffer(((char *)MdiInfo[WndNum] .pMdiTextEdit->pColorRef)+DelRange.cpMax*sizeof(COLORREF),139 SlideBuffer(((char *)MdiInfo[WndNum]->pMdiTextEdit->pColorRef)+DelRange.cpMax*sizeof(COLORREF), 140 140 (length-DelRange.cpMax) * sizeof(COLORREF), 141 141 delta*sizeof(COLORREF)); 142 142 //色づけ 143 TextEdit_ResetWordColor(WndNum,&Range,MdiInfo[WndNum] .DocType);143 TextEdit_ResetWordColor(WndNum,&Range,MdiInfo[WndNum]->DocType); 144 144 145 145 //新しいキャレット位置に変更 146 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,146 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer, 147 147 Range.cpMax, 148 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);149 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;148 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 149 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 150 150 151 151 //コントロールタブスペースの幅と行番号の文字数を更新 152 MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace=153 GetControlTabSpace(WndNum,&MdiInfo[WndNum] .pMdiTextEdit->iLineNumberTextCount);152 MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace= 153 GetControlTabSpace(WndNum,&MdiInfo[WndNum]->pMdiTextEdit->iLineNumberTextCount); 154 154 155 155 if(bRedraw){ … … 159 159 160 160 if(!TextEdit_ScrollCaret(WndNum,0)){ 161 UpdateWindow(MdiInfo[WndNum] .pMdiTextEdit->hEdit); //ちらつき防止162 InvalidateRect(MdiInfo[WndNum] .pMdiTextEdit->hEdit,NULL,0);161 UpdateWindow(MdiInfo[WndNum]->pMdiTextEdit->hEdit); //ちらつき防止 162 InvalidateRect(MdiInfo[WndNum]->pMdiTextEdit->hEdit,NULL,0); 163 163 } 164 164 … … 167 167 168 168 //上下キャレット移動時の左右位置保持機能を解除 169 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos=-1;169 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos=-1; 170 170 171 171 //編集メニューをリセット 172 172 ResetState_EditMenu(); 173 173 174 if( ! MdiInfo[WndNum] .pMdiTextEdit->IsModified() ){174 if( ! MdiInfo[WndNum]->pMdiTextEdit->IsModified() ){ 175 175 //変更フラグをセット 176 MdiInfo[WndNum] .pMdiTextEdit->Modify();176 MdiInfo[WndNum]->pMdiTextEdit->Modify(); 177 177 } 178 178 … … 180 180 //if( projectInfo.IsOpened() ){ 181 181 //プロジェクトが開かれているとき 182 if(MdiInfo[WndNum] .DocType==WNDTYPE_BASIC){182 if(MdiInfo[WndNum]->DocType==WNDTYPE_BASIC){ 183 183 //クラスツリーを再表示 184 184 ResetClassTree(GetFileNum(WndNum)); … … 193 193 CHARRANGE Range,DelRange; 194 194 195 if(MdiInfo[WndNum] .IndentStr){195 if(MdiInfo[WndNum]->IndentStr){ 196 196 //自動インデントを有効にする 197 lstrcpy(temporary,MdiInfo[WndNum] .IndentStr);197 lstrcpy(temporary,MdiInfo[WndNum]->IndentStr); 198 198 199 199 CancelBeforeAutoIndent(WndNum); … … 246 246 #endif 247 247 char *pBuf; 248 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;248 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 249 249 250 250 //行全体を選択(min) … … 271 271 buffer=(char *)HeapAlloc(hHeap,0,length*3+1024); 272 272 temporary=(char *)HeapAlloc(hHeap,0,length*3+1024); 273 memcpy(buffer,MdiInfo[WndNum] .pMdiTextEdit->buffer+CharRange.cpMin,length);273 memcpy(buffer,MdiInfo[WndNum]->pMdiTextEdit->buffer+CharRange.cpMin,length); 274 274 buffer[length]=0; 275 275 -
trunk/ab5.0/abdev/abdev/Resource.cpp
r625 r629 162 162 // ウィンドウ プロパティを更新 163 163 for(i2=0;i2<MdiInfo.size();i2++){ 164 if(MdiInfo[i2] .hwnd&&MdiInfo[i2].DocType==WNDTYPE_RAD){165 if(MdiInfo[i2] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW)166 ChangePropertyWindow(i2,GetWndInfoNum(MdiInfo[i2] .path));164 if(MdiInfo[i2]->hwnd&&MdiInfo[i2]->DocType==WNDTYPE_RAD){ 165 if(MdiInfo[i2]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) 166 ChangePropertyWindow(i2,GetWndInfoNum(MdiInfo[i2]->path)); 167 167 } 168 168 } … … 269 269 // ウィンドウ プロパティを更新 270 270 for(i2=0;i2<MdiInfo.size();i2++){ 271 if(MdiInfo[i2] .hwnd&&MdiInfo[i2].DocType==WNDTYPE_RAD){272 if(MdiInfo[i2] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW)273 ChangePropertyWindow(i2,GetWndInfoNum(MdiInfo[i2] .path));271 if(MdiInfo[i2]->hwnd&&MdiInfo[i2]->DocType==WNDTYPE_RAD){ 272 if(MdiInfo[i2]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) 273 ChangePropertyWindow(i2,GetWndInfoNum(MdiInfo[i2]->path)); 274 274 } 275 275 } … … 303 303 // ウィンドウ プロパティを更新 304 304 for(i2=0;i2<MdiInfo.size();i2++){ 305 if(MdiInfo[i2] .hwnd&&MdiInfo[i2].DocType==WNDTYPE_RAD){306 if(MdiInfo[i2] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW)307 ChangePropertyWindow(i2,GetWndInfoNum(MdiInfo[i2] .path));305 if(MdiInfo[i2]->hwnd&&MdiInfo[i2]->DocType==WNDTYPE_RAD){ 306 if(MdiInfo[i2]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) 307 ChangePropertyWindow(i2,GetWndInfoNum(MdiInfo[i2]->path)); 308 308 } 309 309 } -
trunk/ab5.0/abdev/abdev/Ruler.cpp
r475 r629 59 59 60 60 int iControlTabSpace; 61 iControlTabSpace=MdiInfo[m_WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;61 iControlTabSpace=MdiInfo[m_WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 62 62 63 63 HBRUSH hBrush,hOldBrush; -
trunk/ab5.0/abdev/abdev/Search.cpp
r625 r629 36 36 hEdit=GetWindow(GetWindow(hClient,GW_CHILD),GW_CHILD); 37 37 38 i=lstrlen(MdiInfo[WndNum] .pMdiTextEdit->buffer)+1;38 i=lstrlen(MdiInfo[WndNum]->pMdiTextEdit->buffer)+1; 39 39 40 40 buffer=(char *)HeapAlloc(hHeap,0,i); 41 lstrcpy(buffer,MdiInfo[WndNum] .pMdiTextEdit->buffer);41 lstrcpy(buffer,MdiInfo[WndNum]->pMdiTextEdit->buffer); 42 42 43 43 LineStr=(char *)HeapAlloc(hHeap,0,i+64); … … 106 106 107 107 char *pBuf; 108 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;108 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 109 109 110 110 //行の末端位置を取得 … … 145 145 if(WndNum==-1) return 0; 146 146 147 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;147 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 148 148 149 149 TextEdit_GetSel(WndNum,&CharRange); … … 244 244 pTemp=(char *)HeapAlloc(hHeap,0,CharRange.cpMax-CharRange.cpMin+1); 245 245 memcpy(pTemp, 246 MdiInfo[WndNum] .pMdiTextEdit->buffer+CharRange.cpMin,246 MdiInfo[WndNum]->pMdiTextEdit->buffer+CharRange.cpMin, 247 247 CharRange.cpMax-CharRange.cpMin); 248 248 pTemp[CharRange.cpMax-CharRange.cpMin]=0; … … 344 344 pTemp=(char *)HeapAlloc(hHeap,0,CharRange.cpMax-CharRange.cpMin+1); 345 345 memcpy(pTemp, 346 MdiInfo[WndNum] .pMdiTextEdit->buffer+CharRange.cpMin,346 MdiInfo[WndNum]->pMdiTextEdit->buffer+CharRange.cpMin, 347 347 CharRange.cpMax-CharRange.cpMin); 348 348 pTemp[CharRange.cpMax-CharRange.cpMin]=0; … … 417 417 pTemp=(char *)HeapAlloc(hHeap,0,CharRange.cpMax-CharRange.cpMin+1); 418 418 memcpy(pTemp, 419 MdiInfo[WndNum] .pMdiTextEdit->buffer+CharRange.cpMin,419 MdiInfo[WndNum]->pMdiTextEdit->buffer+CharRange.cpMin, 420 420 CharRange.cpMax-CharRange.cpMin); 421 421 pTemp[CharRange.cpMax-CharRange.cpMin]=0; … … 495 495 pTemp=(char *)HeapAlloc(hHeap,0,CharRange.cpMax-CharRange.cpMin+1); 496 496 memcpy(pTemp, 497 MdiInfo[WndNum] .pMdiTextEdit->buffer+CharRange.cpMin,497 MdiInfo[WndNum]->pMdiTextEdit->buffer+CharRange.cpMin, 498 498 CharRange.cpMax-CharRange.cpMin); 499 499 pTemp[CharRange.cpMax-CharRange.cpMin]=0; -
trunk/ab5.0/abdev/abdev/StringCount.cpp
r475 r629 25 25 else{ 26 26 //すべての範囲 27 pBuf=(char *)HeapAlloc(hHeap,0,lstrlen(MdiInfo[WndNum] .pMdiTextEdit->buffer)+1);28 lstrcpy(pBuf,MdiInfo[WndNum] .pMdiTextEdit->buffer);27 pBuf=(char *)HeapAlloc(hHeap,0,lstrlen(MdiInfo[WndNum]->pMdiTextEdit->buffer)+1); 28 lstrcpy(pBuf,MdiInfo[WndNum]->pMdiTextEdit->buffer); 29 29 } 30 30 … … 100 100 101 101 102 -
trunk/ab5.0/abdev/abdev/SubOperation.cpp
r625 r629 893 893 int i; 894 894 for(i=0;i<MdiInfo.size();i++){ 895 if(MdiInfo[i] .hwnd){896 if(IS_DOCUMENT_TEXT(MdiInfo[i] .DocType)){895 if(MdiInfo[i]->hwnd){ 896 if(IS_DOCUMENT_TEXT(MdiInfo[i]->DocType)){ 897 897 SetTextEditWordColor(i); 898 InvalidateRect(MdiInfo[i] .pMdiTextEdit->hEdit,NULL,0);898 InvalidateRect(MdiInfo[i]->pMdiTextEdit->hEdit,NULL,0); 899 899 } 900 900 } … … 1392 1392 1393 1393 //各ウィンドウ生成 1394 void SetupWindow(HWND hwnd){ 1394 void SetupWindow(HWND hwnd) 1395 { 1395 1396 extern HINSTANCE hInst; 1396 1397 extern HMENU hFirstMainMenu; 1397 RECT rect;1398 CLIENTCREATESTRUCT ccs;1399 1398 1400 1399 INITCOMMONCONTROLSEX InitCommCtrl; … … 1405 1404 //タブウィンドウ 1406 1405 pobj_MainTab=new CMainTab(hwnd); 1407 1408 //MDIの親ウィンドウ(クライアントウィンドウ)を作成1409 ccs.hWindowMenu=hFirstMainMenu;1410 ccs.idFirstChild=ID_FIRSTCHILD;1411 GetClientRect(hwnd,&rect);1412 hClient=CreateWindowEx(WS_EX_CLIENTEDGE,"MDICLIENT",NULL,1413 WS_CHILD|WS_CLIPCHILDREN|WS_CLIPSIBLINGS|WS_VISIBLE,1414 0,0,0,0,1415 hwnd,(HMENU)1,hInst,(LPSTR)&ccs);1416 1406 1417 1407 //レバーオブジェクトを生成 … … 1471 1461 1472 1462 WndNum=GetWndNum(hChild); 1473 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){1474 if(MdiInfo[WndNum] .path.empty()){1463 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 1464 if(MdiInfo[WndNum]->path.empty()){ 1475 1465 //"保存先のファイルを指定してください" 1476 1466 if(!GetFilePathDialog(hOwner,temp2,DefFileFilter,STRING_FILESAVETITLE_DEFAULT,0)) return FALSE; … … 1479 1469 } 1480 1470 else{ 1481 if( MdiInfo[WndNum] .pMdiTextEdit->IsModified() ){1471 if( MdiInfo[WndNum]->pMdiTextEdit->IsModified() ){ 1482 1472 if(!SaveDocument(hChild,NULL)) return 0; 1483 1473 } 1484 1474 else{ 1485 if(hFind=FindFirstFile(MdiInfo[WndNum] .path.c_str(),&wfd)){1475 if(hFind=FindFirstFile(MdiInfo[WndNum]->path.c_str(),&wfd)){ 1486 1476 if(hFind==INVALID_HANDLE_VALUE){ 1487 1477 if(!SaveDocument(hChild,NULL)) return 0; -
trunk/ab5.0/abdev/abdev/TabCtrl.cpp
r626 r629 178 178 179 179 if(isResize){ 180 if(sw) ResizeOwnerWnd();180 if(sw) ActiveBasic::IDE::Program::mainFrame.Resized(); 181 181 } 182 182 } … … 190 190 191 191 if(isResize){ 192 if(TabCtrl_GetItemCount(hTab)==0) ResizeOwnerWnd();192 if(TabCtrl_GetItemCount(hTab)==0) ActiveBasic::IDE::Program::mainFrame.Resized(); 193 193 } 194 194 } … … 262 262 263 263 for(i=0;i<MdiInfo.size();i++){ 264 if(lstrcmpi(ItemText,MdiInfo[i] .title.c_str())==0) break;265 } 266 BringWindowToTop(MdiInfo[i] .hwnd);264 if(lstrcmpi(ItemText,MdiInfo[i]->title.c_str())==0) break; 265 } 266 BringWindowToTop(MdiInfo[i]->hwnd); 267 267 } 268 268 void CMainTab::MdiActiveEvent(const char *lpszText){ -
trunk/ab5.0/abdev/abdev/TextEditor.cpp
r625 r629 11 11 12 12 char *pBuf; 13 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;13 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 14 14 15 15 int i,iNum=1,x=0; … … 85 85 char *pBuf; 86 86 87 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;88 89 if(MdiInfo[WndNum] .DocType==WNDTYPE_TEXT){87 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 88 89 if(MdiInfo[WndNum]->DocType==WNDTYPE_TEXT){ 90 90 //通常のテキストはすべてをデフォルトカラー(標準で黒)にする 91 91 for(i=0;;i++){ 92 92 if(pBuf[i]=='\0') break; 93 MdiInfo[WndNum] .pMdiTextEdit->pColorRef[i]=tci.rgbDefault;93 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i]=tci.rgbDefault; 94 94 } 95 95 return; … … 110 110 111 111 BOOL bResult=0; 112 if(MdiInfo[WndNum] .DocType==WNDTYPE_BASIC){112 if(MdiInfo[WndNum]->DocType==WNDTYPE_BASIC){ 113 113 i3=IsBasicReservedWord(str); 114 114 bResult=IsManagementCommand(i3); 115 115 } 116 else if(MdiInfo[WndNum] .DocType==WNDTYPE_HTML){116 else if(MdiInfo[WndNum]->DocType==WNDTYPE_HTML){ 117 117 bResult=IsHtmlReservedWord(str); 118 118 } … … 120 120 if(bResult){ 121 121 for(i3=i-i2;i3<i;i3++){ 122 MdiInfo[WndNum] .pMdiTextEdit->pColorRef[i3]=tci.rgbStatement;122 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i3]=tci.rgbStatement; 123 123 } 124 124 } 125 125 else{ 126 126 for(i3=i-i2;i3<i;i3++){ 127 MdiInfo[WndNum] .pMdiTextEdit->pColorRef[i3]=tci.rgbDefault;127 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i3]=tci.rgbDefault; 128 128 } 129 129 } … … 134 134 if(IsStr||pBuf[i]=='\"'&&IsStr==0){ 135 135 //文字列カラー(""で囲まれる範囲) 136 MdiInfo[WndNum] .pMdiTextEdit->pColorRef[i]=tci.rgbString;136 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i]=tci.rgbString; 137 137 } 138 138 else{ 139 139 //通常カラー 140 MdiInfo[WndNum] .pMdiTextEdit->pColorRef[i]=tci.rgbDefault;140 MdiInfo[WndNum]->pMdiTextEdit->pColorRef[i]=tci.rgbDefault; 141 141 } 142 142 } … … 155 155 //エディタ画面左端のコントロールタブ 156 156 int iControlTabSpace; 157 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;157 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 158 158 159 159 HWND hEdit; 160 hEdit=GetWindow(MdiInfo[WndNum] .hwnd,GW_CHILD);160 hEdit=GetWindow(MdiInfo[WndNum]->hwnd,GW_CHILD); 161 161 GetClientRect(hEdit,&rect); 162 162 … … 180 180 181 181 //ルーラーを再描画 182 InvalidateRect(MdiInfo[WndNum] .pMdiTextEdit->pobj_Ruler->hRulerWnd,NULL,0);183 UpdateWindow(MdiInfo[WndNum] .pMdiTextEdit->pobj_Ruler->hRulerWnd);182 InvalidateRect(MdiInfo[WndNum]->pMdiTextEdit->pobj_Ruler->hRulerWnd,NULL,0); 183 UpdateWindow(MdiInfo[WndNum]->pMdiTextEdit->pobj_Ruler->hRulerWnd); 184 184 } 185 185 … … 215 215 char *pBuf; 216 216 217 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;217 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 218 218 219 219 //ダブルクリック位置を取得(バッファインデックス) … … 327 327 328 328 i=GetBufferIndexFromCaretPos( 329 MdiInfo[WndNum] .pMdiTextEdit->buffer,330 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x,331 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y);329 MdiInfo[WndNum]->pMdiTextEdit->buffer, 330 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x, 331 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 332 332 GetCaretPosFromBufferIndex( 333 MdiInfo[WndNum] .pMdiTextEdit->buffer,334 i-lstrlen(MdiInfo[WndNum] .IndentStr),335 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);333 MdiInfo[WndNum]->pMdiTextEdit->buffer, 334 i-lstrlen(MdiInfo[WndNum]->IndentStr), 335 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 336 336 337 337 TextEdit_Replace(WndNum,"",1); 338 338 339 HeapDefaultFree(MdiInfo[WndNum] .IndentStr);340 MdiInfo[WndNum] .IndentStr=0;341 } 339 HeapDefaultFree(MdiInfo[WndNum]->IndentStr); 340 MdiInfo[WndNum]->IndentStr=0; 341 } -
trunk/ab5.0/abdev/abdev/TextEditor_EventProc.cpp
r626 r629 43 43 if(i==-1) return 0; //ウィンドウが初期状態の場合 44 44 45 i=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[i] .title.c_str());45 i=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[i]->title.c_str()); 46 46 SendMessage(hDocCombo,CB_SETCURSEL,i,0); 47 47 SetStatusText(NULL); … … 226 226 227 227 int iControlTabSpace; 228 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;228 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 229 229 230 230 i=max(-si.nPos,min(i,si.nMax-((rect.right-iControlTabSpace)/font_width)-si.nPos)); … … 238 238 239 239 //ルーラーを再描画 240 InvalidateRect(MdiInfo[WndNum] .pMdiTextEdit->pobj_Ruler->hRulerWnd,NULL,0);241 UpdateWindow(MdiInfo[WndNum] .pMdiTextEdit->pobj_Ruler->hRulerWnd);240 InvalidateRect(MdiInfo[WndNum]->pMdiTextEdit->pobj_Ruler->hRulerWnd,NULL,0); 241 UpdateWindow(MdiInfo[WndNum]->pMdiTextEdit->pobj_Ruler->hRulerWnd); 242 242 243 243 return 0; … … 259 259 WS_CHILD|WS_VISIBLE, 260 260 0,0,0,0, 261 MdiInfo[wParam] .pMdiTextEdit->pobj_WebResult->hwnd,0,hInst,0);261 MdiInfo[wParam]->pMdiTextEdit->pobj_WebResult->hwnd,0,hInst,0); 262 262 263 263 SetWindowLongPtr(hOneTabWnd,GWLP_USERDATA,(long)lParam); -
trunk/ab5.0/abdev/abdev/TextEditor_ImeEvent.cpp
r475 r629 11 11 12 12 int iControlTabSpace; 13 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;13 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 14 14 15 15 HIMC hIMC; … … 20 20 COMPOSITIONFORM CompForm; 21 21 CompForm.dwStyle=CFS_POINT; 22 pos=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos;22 pos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 23 23 GetScrollBaseCaretPos(WndNum,(int *)&pos.x,(int *)&pos.y); 24 24 CompForm.ptCurrentPos.x=pos.x*font_width+iControlTabSpace; … … 38 38 39 39 int iControlTabSpace; 40 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;40 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 41 41 42 42 //////////////////// … … 62 62 COMPOSITIONFORM CompForm; 63 63 CompForm.dwStyle=CFS_POINT; 64 pos=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos;64 pos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 65 65 GetScrollBaseCaretPos(WndNum,(int *)&pos.x,(int *)&pos.y); 66 66 CompForm.ptCurrentPos.x=pos.x*font_width+iControlTabSpace; -
trunk/ab5.0/abdev/abdev/TextEditor_KeyEvent.cpp
r625 r629 14 14 WndNum=GetWndNum(GetParent(hwnd)); 15 15 16 if(MdiInfo[WndNum] .pMdiTextEdit->iUnderStart!=-1){16 if(MdiInfo[WndNum]->pMdiTextEdit->iUnderStart!=-1){ 17 17 //ハイパーリンク下線の表示を解除 18 MdiInfo[WndNum] .pMdiTextEdit->iUnderStart=-1;19 MdiInfo[WndNum] .pMdiTextEdit->iUnderEnd=-1;18 MdiInfo[WndNum]->pMdiTextEdit->iUnderStart=-1; 19 MdiInfo[WndNum]->pMdiTextEdit->iUnderEnd=-1; 20 20 21 21 //再描画 … … 159 159 char *pBuf; 160 160 161 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;161 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 162 162 for(i=iPos;i>0;i--){ 163 163 if(pBuf[i-1]=='\r'&&pBuf[i]=='\n') return i+1; … … 242 242 hide_caret_switch=1; 243 243 244 if(MdiInfo[WndNum] .IndentStr){244 if(MdiInfo[WndNum]->IndentStr){ 245 245 //以前の自動インデントを消去する 246 246 CancelBeforeAutoIndent(WndNum); 247 247 } 248 248 249 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;249 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 250 250 251 251 int StartX; … … 253 253 //リプレイス前のカーソルバッファ位置を取得 254 254 i=GetBufferIndexFromCaretPos(pBuf, 255 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x,256 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y);257 StartX=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x;255 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x, 256 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 257 StartX=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x; 258 258 259 259 //リプレイス 260 260 TextEdit_ReplaceUpdateUndoData(WndNum,temporary,0,1); 261 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;261 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 262 262 263 263 //リプレイス後のカーソル行のインデントをi3に取得 … … 281 281 } 282 282 283 if(MdiInfo[WndNum] .DocType==WNDTYPE_BASIC){283 if(MdiInfo[WndNum]->DocType==WNDTYPE_BASIC){ 284 284 //インデント追加のコマンドかどうかを判断 285 285 if(IsIndentAdditionCommand_FromBuffer(pBuf+i+i2)) i2++; … … 302 302 */ 303 303 i=GetBufferIndexFromCaretPos(pBuf, 304 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x,305 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y);304 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x, 305 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 306 306 if(pBuf[i]=='\r'&& 307 307 pBuf[i+1]=='\n'){ 308 308 //自動インデントを開始する(「\t\tⅠ」のような場合) 309 MdiInfo[WndNum] .IndentStr=(char *)HeapAlloc(hHeap,0,i2+1);310 memset(MdiInfo[WndNum] .IndentStr,'\t',i2);311 MdiInfo[WndNum] .IndentStr[i2]=0;312 TextEdit_Replace(WndNum,MdiInfo[WndNum] .IndentStr,1);309 MdiInfo[WndNum]->IndentStr=(char *)HeapAlloc(hHeap,0,i2+1); 310 memset(MdiInfo[WndNum]->IndentStr,'\t',i2); 311 MdiInfo[WndNum]->IndentStr[i2]=0; 312 TextEdit_Replace(WndNum,MdiInfo[WndNum]->IndentStr,1); 313 313 } 314 314 else{ … … 334 334 } 335 335 else if(nVirtualKey==VK_TAB){ 336 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;336 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 337 337 338 338 TextEdit_GetSel(WndNum,&CharRange); … … 421 421 //リプレイス 422 422 TextEdit_ReplaceUpdateUndoData(WndNum,pTemp,0,0); 423 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;423 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 424 424 425 425 HeapDefaultFree(pTemp); … … 474 474 //////////////////////////////////////////// 475 475 476 if(MdiInfo[WndNum] .DocType==WNDTYPE_BASIC)476 if(MdiInfo[WndNum]->DocType==WNDTYPE_BASIC) 477 477 TextEditEvent_StartAnalysis_Basic(hwnd,WndNum,nVirtualKey); 478 else if(MdiInfo[WndNum] .DocType==WNDTYPE_HTML){478 else if(MdiInfo[WndNum]->DocType==WNDTYPE_HTML){ 479 479 TextEditEvent_StartAnalysis_Html(hwnd,WndNum,nVirtualKey); 480 480 } … … 490 490 491 491 if(nVirtualKey==VK_LEFT||nVirtualKey==VK_UP||nVirtualKey==VK_RIGHT||nVirtualKey==VK_DOWN||nVirtualKey==VK_PRIOR||nVirtualKey==VK_NEXT){ 492 if(MdiInfo[WndNum] .IndentStr){492 if(MdiInfo[WndNum]->IndentStr){ 493 493 //自動インデント中のインデントを無効にする 494 494 CancelBeforeAutoIndent(WndNum); … … 508 508 case VK_LEFT: 509 509 //上下キャレット移動時の左右位置保持機能を解除 510 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos=-1;511 512 if((MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.x&&513 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)||510 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos=-1; 511 512 if((MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x&& 513 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y)|| 514 514 GetKeyState(VK_SHIFT)&0x8000){ 515 515 //選択中でないとき、またはシフトキーが押されているとき … … 518 518 else{ 519 519 //選択中のとき 520 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y<MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)521 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;522 else if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y>MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)523 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos=MdiInfo[WndNum].pMdiTextEdit->EndCaretPos;520 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y<MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y) 521 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 522 else if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y>MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y) 523 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos=MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos; 524 524 else{ 525 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x<MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.x)526 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;525 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x<MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x) 526 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 527 527 else 528 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos=MdiInfo[WndNum].pMdiTextEdit->EndCaretPos;528 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos=MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos; 529 529 } 530 530 } … … 532 532 case VK_RIGHT: 533 533 //上下キャレット移動時の左右位置保持機能を解除 534 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos=-1;535 536 if((MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.x&&537 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)||534 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos=-1; 535 536 if((MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x&& 537 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y)|| 538 538 GetKeyState(VK_SHIFT)&0x8000){ 539 539 //選択中でないとき、またはシフトキーが押されているとき 540 540 GetNaturalCaretPos_Right(WndNum, 541 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);541 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 542 542 } 543 543 else{ 544 544 //選択中のとき 545 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y<MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)546 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos=MdiInfo[WndNum].pMdiTextEdit->EndCaretPos;547 else if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y>MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)548 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;545 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y<MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y) 546 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos=MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos; 547 else if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y>MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y) 548 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 549 549 else{ 550 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x<MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.x)551 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos=MdiInfo[WndNum].pMdiTextEdit->EndCaretPos;550 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x<MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x) 551 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos=MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos; 552 552 else 553 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;553 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 554 554 } 555 555 } … … 557 557 case VK_UP: 558 558 if((GetKeyState(VK_CONTROL)&0x8000)&& 559 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x!=0){559 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x!=0){ 560 560 //行の先頭へキャレットを移動 561 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x=0;561 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x=0; 562 562 563 563 //上下キャレット移動時の左右位置保持機能を解除 564 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos=-1;564 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos=-1; 565 565 } 566 566 else{ 567 if((MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.x&&568 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)||567 if((MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x&& 568 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y)|| 569 569 GetKeyState(VK_SHIFT)&0x8000){ 570 570 //選択中でないとき、またはシフトキーが押されているとき 571 571 GetNaturalCaretPos_Up(WndNum, 572 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);572 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 573 573 } 574 574 else{ 575 575 //選択中のとき 576 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y<MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)577 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;578 else if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y>MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)579 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos=MdiInfo[WndNum].pMdiTextEdit->EndCaretPos;576 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y<MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y) 577 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 578 else if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y>MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y) 579 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos=MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos; 580 580 else{ 581 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x<MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.x)582 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;581 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x<MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x) 582 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 583 583 else 584 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos=MdiInfo[WndNum].pMdiTextEdit->EndCaretPos;584 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos=MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos; 585 585 } 586 586 587 587 GetNaturalCaretPos_Up(WndNum, 588 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);588 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 589 589 } 590 590 } 591 591 break; 592 592 case VK_DOWN: 593 i2=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y;594 if((MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.x&&595 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)||593 i2=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y; 594 if((MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x&& 595 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y)|| 596 596 GetKeyState(VK_SHIFT)&0x8000){ 597 597 //選択中でないとき、またはシフトキーが押されているとき 598 598 GetNaturalCaretPos_Down(WndNum, 599 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);599 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 600 600 } 601 601 else{ 602 602 //選択中のとき 603 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y<MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)604 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos=MdiInfo[WndNum].pMdiTextEdit->EndCaretPos;605 else if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y>MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y)606 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;603 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y<MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y) 604 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos=MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos; 605 else if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y>MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y) 606 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 607 607 else{ 608 if(MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x<MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.x)609 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos=MdiInfo[WndNum].pMdiTextEdit->EndCaretPos;608 if(MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x<MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x) 609 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos=MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos; 610 610 else 611 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;611 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 612 612 } 613 613 614 614 GetNaturalCaretPos_Down(WndNum, 615 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);615 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 616 616 } 617 617 618 618 if(GetKeyState(VK_CONTROL)&0x8000){ 619 if(i2!=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y){619 if(i2!=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y){ 620 620 //行の先頭へキャレットを移動 621 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x=0;621 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x=0; 622 622 } 623 623 else{ … … 625 625 CaretPos_LooseToNatural(WndNum, 626 626 INT_MAX, 627 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y,628 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);627 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y, 628 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 629 629 } 630 630 631 631 //上下キャレット移動時の左右位置保持機能を解除 632 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos=-1;632 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos=-1; 633 633 } 634 634 break; 635 635 case VK_PRIOR: 636 636 GetNaturalCaretPos_PageUp(WndNum, 637 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);637 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 638 638 break; 639 639 case VK_NEXT: 640 640 GetNaturalCaretPos_PageDown(WndNum, 641 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);641 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 642 642 break; 643 643 } … … 645 645 if(!(GetKeyState(VK_SHIFT)&0x8000)){ 646 646 //シフトキーが押されていない、通常時 647 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;647 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 648 648 } 649 649 … … 672 672 673 673 //上下キャレット移動時の左右位置保持機能を解除 674 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos=-1;674 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos=-1; 675 675 676 676 if(GetKeyState(VK_CONTROL)&0x8000){ 677 677 //ファイルの先頭または末端へキャレットを移動 678 678 if(nVirtualKey==VK_HOME){ 679 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x=0;680 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y=0;679 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x=0; 680 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y=0; 681 681 } 682 682 else if(nVirtualKey==VK_END){ … … 685 685 INT_MAX, 686 686 INT_MAX, 687 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);687 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 688 688 } 689 689 } 690 690 else{ 691 691 //行の先頭または末端へキャレットを移動 692 if(nVirtualKey==VK_HOME) MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x=0;692 if(nVirtualKey==VK_HOME) MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x=0; 693 693 else if(nVirtualKey==VK_END){ 694 694 //存在するキャレット位置に変換 695 695 CaretPos_LooseToNatural(WndNum, 696 696 INT_MAX, 697 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y,698 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);697 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y, 698 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 699 699 } 700 700 } … … 702 702 if(!(GetKeyState(VK_SHIFT)&0x8000)){ 703 703 //シフトキーが押されていない、通常時 704 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;704 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 705 705 } 706 706 … … 721 721 TextEdit_GetSel(WndNum,&CharRange); 722 722 723 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;723 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 724 724 725 725 //キャレットがファイルの終端にあるとき … … 727 727 728 728 if(CharRange.cpMin==CharRange.cpMax){ 729 if(MdiInfo[WndNum] .IndentStr){729 if(MdiInfo[WndNum]->IndentStr){ 730 730 //自動インデントを有効にする 731 731 char temporary[1024]; 732 lstrcpy(temporary,MdiInfo[WndNum] .IndentStr);732 lstrcpy(temporary,MdiInfo[WndNum]->IndentStr); 733 733 734 734 CancelBeforeAutoIndent(WndNum); … … 743 743 744 744 GetCaretPosFromBufferIndex( 745 MdiInfo[WndNum] .pMdiTextEdit->buffer,745 MdiInfo[WndNum]->pMdiTextEdit->buffer, 746 746 CharRange.cpMax, 747 &MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos);747 &MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos); 748 748 } 749 749 … … 755 755 ///////////////// 756 756 757 if(MdiInfo[WndNum] .IndentStr){757 if(MdiInfo[WndNum]->IndentStr){ 758 758 //自動インデント中のインデントの場合、インデントの1文字を削除する 759 if(lstrlen(MdiInfo[WndNum] .IndentStr)==1){759 if(lstrlen(MdiInfo[WndNum]->IndentStr)==1){ 760 760 //1文字しか残っていない場合は自動インデントそのものを消去する 761 761 CancelBeforeAutoIndent(WndNum); 762 762 } 763 763 else{ 764 MdiInfo[WndNum] .IndentStr[lstrlen(MdiInfo[WndNum].IndentStr)-1]=0;764 MdiInfo[WndNum]->IndentStr[lstrlen(MdiInfo[WndNum]->IndentStr)-1]=0; 765 765 766 766 i=GetBufferIndexFromCaretPos( 767 MdiInfo[WndNum] .pMdiTextEdit->buffer,768 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x,769 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y);767 MdiInfo[WndNum]->pMdiTextEdit->buffer, 768 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x, 769 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 770 770 GetCaretPosFromBufferIndex( 771 MdiInfo[WndNum] .pMdiTextEdit->buffer,771 MdiInfo[WndNum]->pMdiTextEdit->buffer, 772 772 i-1, 773 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);773 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 774 774 TextEdit_Replace(WndNum,"",1); 775 775 } … … 801 801 802 802 char *pBuf; 803 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;803 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 804 804 805 805 … … 836 836 837 837 i=GetBufferIndexFromCaretPos(pBuf, 838 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x,839 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y);838 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x, 839 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 840 840 841 841 i2=i-2; … … 974 974 975 975 char *pBuf; 976 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;976 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 977 977 978 978 … … 985 985 986 986 i=GetBufferIndexFromCaretPos(pBuf, 987 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x,988 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y);987 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x, 988 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y); 989 989 990 990 if(GetNowTagInfo(pBuf,i-1)){ -
trunk/ab5.0/abdev/abdev/TextEditor_MouseEvent.cpp
r625 r629 12 12 if((GetKeyState(VK_CONTROL)&0x8000)&&pobj_nv->bCtrlKeyHyperLink){ 13 13 //Ctrlキーが押されているとき 14 if(MdiInfo[WndNum] .pMdiTextEdit->iUnderStart!=-1){14 if(MdiInfo[WndNum]->pMdiTextEdit->iUnderStart!=-1){ 15 15 //単語が選択可能なとき 16 16 17 17 //半角文字列を選択時の全角とのズレを修正 18 18 int start,end; 19 start=MdiInfo[WndNum] .pMdiTextEdit->iUnderStart;20 end=MdiInfo[WndNum] .pMdiTextEdit->iUnderEnd;21 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,start,&pos);22 start=GetBufferIndexFromCaretPos(MdiInfo[WndNum] .pMdiTextEdit->buffer,pos.x,pos.y);23 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,end,&pos);24 end=GetBufferIndexFromCaretPos(MdiInfo[WndNum] .pMdiTextEdit->buffer,pos.x,pos.y);19 start=MdiInfo[WndNum]->pMdiTextEdit->iUnderStart; 20 end=MdiInfo[WndNum]->pMdiTextEdit->iUnderEnd; 21 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer,start,&pos); 22 start=GetBufferIndexFromCaretPos(MdiInfo[WndNum]->pMdiTextEdit->buffer,pos.x,pos.y); 23 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer,end,&pos); 24 end=GetBufferIndexFromCaretPos(MdiInfo[WndNum]->pMdiTextEdit->buffer,pos.x,pos.y); 25 25 26 26 int length; … … 32 32 memcpy( 33 33 pTemp, 34 MdiInfo[WndNum] .pMdiTextEdit->buffer+start,34 MdiInfo[WndNum]->pMdiTextEdit->buffer+start, 35 35 length); 36 36 pTemp[length]=0; … … 53 53 54 54 int iControlTabSpace; 55 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;56 57 if(MdiInfo[WndNum] .IndentStr){55 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 56 57 if(MdiInfo[WndNum]->IndentStr){ 58 58 //自動インデント中のインデントを無効にする 59 59 CancelBeforeAutoIndent(WndNum); 60 60 } 61 61 62 MdiInfo[WndNum] .pMdiTextEdit->bAutoScroll=0;62 MdiInfo[WndNum]->pMdiTextEdit->bAutoScroll=0; 63 63 64 64 //上下キャレット移動時の左右位置保持機能を解除 65 MdiInfo[WndNum] .pMdiTextEdit->Temp_UpDown_CaretXPos=-1;65 MdiInfo[WndNum]->pMdiTextEdit->Temp_UpDown_CaretXPos=-1; 66 66 67 67 if(0<=(pMousePos->x) && (pMousePos->x)<iControlTabSpace){ … … 74 74 0, 75 75 pMousePos->y, 76 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);77 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;76 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 77 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 78 78 79 79 //////////// … … 82 82 83 83 char *pBuf; 84 pBuf=MdiInfo[WndNum] .pMdiTextEdit->buffer;84 pBuf=MdiInfo[WndNum]->pMdiTextEdit->buffer; 85 85 CHARRANGE CharRange; 86 86 TextEdit_GetSel(WndNum,&CharRange); … … 101 101 pMousePos->x-iControlTabSpace, 102 102 pMousePos->y, 103 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);103 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 104 104 105 105 if(!(GetKeyState(VK_SHIFT)&0x8000)){ 106 106 //シフトキーが押されていない、通常時 107 MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos;107 MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos; 108 108 } 109 109 … … 123 123 124 124 int iControlTabSpace; 125 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;125 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 126 126 127 127 if(0<=(pMousePos->x) && (pMousePos->x)<iControlTabSpace){ … … 140 140 141 141 //オートスクロールスレッドを停止 142 MdiInfo[WndNum] .pMdiTextEdit->bAutoScroll=0;142 MdiInfo[WndNum]->pMdiTextEdit->bAutoScroll=0; 143 143 144 144 //編集メニューをリセット … … 160 160 //エディタ画面左端のコントロールタブ 161 161 int iControlTabSpace; 162 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;163 164 165 while(MdiInfo[WndNum] .pMdiTextEdit->bAutoScroll){162 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 163 164 165 while(MdiInfo[WndNum]->pMdiTextEdit->bAutoScroll){ 166 166 GetCursorPos(&pos); 167 167 ScreenToClient(hwnd,&pos); … … 176 176 pos.x, 177 177 pos.y, 178 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);178 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 179 179 180 180 if(!TextEdit_ScrollCaret(WndNum,1)) … … 195 195 196 196 int iControlTabSpace; 197 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;197 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 198 198 199 199 if(GetCapture()==hwnd){ … … 215 215 //////////////////////////// 216 216 217 if(MdiInfo[WndNum] .pMdiTextEdit->bAutoScroll){217 if(MdiInfo[WndNum]->pMdiTextEdit->bAutoScroll){ 218 218 //すでにオートスクロールスレッドが作動中のときは抜け出す 219 219 return; … … 221 221 222 222 //オートスクロールスレッドを起動 223 MdiInfo[WndNum] .pMdiTextEdit->bAutoScroll=1;223 MdiInfo[WndNum]->pMdiTextEdit->bAutoScroll=1; 224 224 225 225 _beginthread((void (__cdecl *)(void *))AutoScrollThread,0,(void *)hwnd); … … 227 227 return; 228 228 } 229 else if(MdiInfo[WndNum] .pMdiTextEdit->bAutoScroll){229 else if(MdiInfo[WndNum]->pMdiTextEdit->bAutoScroll){ 230 230 //オートスクロールを解除 231 MdiInfo[WndNum] .pMdiTextEdit->bAutoScroll=0;231 MdiInfo[WndNum]->pMdiTextEdit->bAutoScroll=0; 232 232 } 233 233 … … 243 243 &pos); 244 244 245 if(pos.x!=MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x||pos.y!=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos.y){246 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos=pos;245 if(pos.x!=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x||pos.y!=MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y){ 246 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos=pos; 247 247 248 248 InvalidateRect(hwnd,NULL,0); … … 271 271 272 272 TextEdit_GetWordCaret( 273 MdiInfo[WndNum] .pMdiTextEdit->hEdit,273 MdiInfo[WndNum]->pMdiTextEdit->hEdit, 274 274 WndNum, 275 275 &pos, 276 &MdiInfo[WndNum] .pMdiTextEdit->iUnderStart,&MdiInfo[WndNum].pMdiTextEdit->iUnderEnd,276 &MdiInfo[WndNum]->pMdiTextEdit->iUnderStart,&MdiInfo[WndNum]->pMdiTextEdit->iUnderEnd, 277 277 WORDCARET_AFTER); 278 278 … … 283 283 } 284 284 else{ 285 if(MdiInfo[WndNum] .pMdiTextEdit->iUnderStart!=-1){286 MdiInfo[WndNum] .pMdiTextEdit->iUnderStart=-1;287 MdiInfo[WndNum] .pMdiTextEdit->iUnderEnd=-1;285 if(MdiInfo[WndNum]->pMdiTextEdit->iUnderStart!=-1){ 286 MdiInfo[WndNum]->pMdiTextEdit->iUnderStart=-1; 287 MdiInfo[WndNum]->pMdiTextEdit->iUnderEnd=-1; 288 288 289 289 InvalidateRect(hwnd,NULL,0); … … 301 301 302 302 int start,end; 303 TextEdit_GetWordCaret(hwnd,WndNum,&MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos,&start,&end,WORDCARET_AFTER);303 TextEdit_GetWordCaret(hwnd,WndNum,&MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos,&start,&end,WORDCARET_AFTER); 304 304 305 305 //セレクト … … 315 315 316 316 int iControlTabSpace; 317 iControlTabSpace=MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace;317 iControlTabSpace=MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace; 318 318 319 319 if(0<=(pMousePos->x) && (pMousePos->x)<iControlTabSpace){ -
trunk/ab5.0/abdev/abdev/TextEditor_UndoRedo.cpp
r625 r629 8 8 9 9 //自動インデント中のインデントを無効にする 10 if(MdiInfo[WndNum] .IndentStr) CancelBeforeAutoIndent(WndNum);10 if(MdiInfo[WndNum]->IndentStr) CancelBeforeAutoIndent(WndNum); 11 11 12 pUndoState=MdiInfo[WndNum] .pMdiTextEdit->pTextEditUndoState;12 pUndoState=MdiInfo[WndNum]->pMdiTextEdit->pTextEditUndoState; 13 13 i=pUndoState->NowPos-1; 14 14 if(i==-1) i=MAX_UNDONUM-1; … … 20 20 21 21 //選択範囲をセット 22 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,22 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer, 23 23 pUndoState->Range[pUndoState->NowPos].cpMin, 24 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);25 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,24 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 25 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer, 26 26 pUndoState->Range[pUndoState->NowPos].cpMax, 27 &MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos);27 &MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos); 28 28 29 29 switch(pUndoState->Command[pUndoState->NowPos]){ … … 44 44 45 45 //変更を通知 46 MdiInfo[WndNum] .pMdiTextEdit->NofityUndoRedoToModify();46 MdiInfo[WndNum]->pMdiTextEdit->NofityUndoRedoToModify(); 47 47 } 48 48 void TextEdit_RedoCommand(int WndNum){ 49 49 TEXTEDIT_UNDOSTATE *pUndoState; 50 50 51 pUndoState=MdiInfo[WndNum] .pMdiTextEdit->pTextEditUndoState;51 pUndoState=MdiInfo[WndNum]->pMdiTextEdit->pTextEditUndoState; 52 52 if(!pUndoState->Command[pUndoState->NowPos]){ 53 53 MessageBeep(0); … … 59 59 case TEXTEDIT_UNDO_PASTE: 60 60 //選択範囲をセット 61 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,61 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer, 62 62 pUndoState->Range[pUndoState->NowPos].cpMin, 63 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);64 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,63 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 64 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer, 65 65 pUndoState->Range[pUndoState->NowPos].cpMin, 66 &MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos);66 &MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos); 67 67 68 68 TextEdit_Replace(WndNum,pUndoState->KeyStr[pUndoState->NowPos],1); … … 70 70 case TEXTEDIT_UNDO_SELKEY: 71 71 //選択範囲をセット 72 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,72 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer, 73 73 pUndoState->DelRange[pUndoState->NowPos].cpMin, 74 &MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos);75 GetCaretPosFromBufferIndex(MdiInfo[WndNum] .pMdiTextEdit->buffer,74 &MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos); 75 GetCaretPosFromBufferIndex(MdiInfo[WndNum]->pMdiTextEdit->buffer, 76 76 pUndoState->DelRange[pUndoState->NowPos].cpMax, 77 &MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos);77 &MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos); 78 78 79 79 TextEdit_Replace(WndNum,pUndoState->KeyStr[pUndoState->NowPos],1); … … 91 91 92 92 //変更を通知 93 MdiInfo[WndNum] .pMdiTextEdit->NofityUndoRedoToModify();93 MdiInfo[WndNum]->pMdiTextEdit->NofityUndoRedoToModify(); 94 94 } 95 95 … … 107 107 TEXTEDIT_UNDOSTATE *pUndoState; 108 108 109 pUndoState=MdiInfo[WndNum] .pMdiTextEdit->pTextEditUndoState;109 pUndoState=MdiInfo[WndNum]->pMdiTextEdit->pTextEditUndoState; 110 110 111 111 //Redoされた場合の不要なデータを削除する -
trunk/ab5.0/abdev/abdev/WebSearch.cpp
r625 r629 323 323 iWindowWidth=size.cx+20; 324 324 325 if(MdiInfo[WndNum] .pMdiTextEdit==0) return;326 hTabWnd=(HWND)SendMessage(MdiInfo[WndNum] .pMdiTextEdit->hEdit,WM_SEARCH_TAB_CREATE,(WPARAM)WndNum,(LPARAM)this);325 if(MdiInfo[WndNum]->pMdiTextEdit==0) return; 326 hTabWnd=(HWND)SendMessage(MdiInfo[WndNum]->pMdiTextEdit->hEdit,WM_SEARCH_TAB_CREATE,(WPARAM)WndNum,(LPARAM)this); 327 327 } 328 328 COneTab::~COneTab(){ … … 335 335 } 336 336 337 if(MdiInfo[m_WndNum] .pMdiTextEdit)338 SendMessage(MdiInfo[m_WndNum] .pMdiTextEdit->hEdit,WM_SEARCH_TAB_CLOSE,0,(LPARAM)hTabWnd);337 if(MdiInfo[m_WndNum]->pMdiTextEdit) 338 SendMessage(MdiInfo[m_WndNum]->pMdiTextEdit->hEdit,WM_SEARCH_TAB_CLOSE,0,(LPARAM)hTabWnd); 339 339 } 340 340 … … 485 485 COneTab *pobj_temp_OneTab; 486 486 pobj_temp_OneTab=new COneTab(WndNum,lpszSearchText); 487 if(MdiInfo[WndNum] .pMdiTextEdit==0){487 if(MdiInfo[WndNum]->pMdiTextEdit==0){ 488 488 delete pobj_temp_OneTab; 489 489 return; … … 579 579 goto exit; 580 580 } 581 if(MdiInfo[WndNum] .pMdiTextEdit==0){581 if(MdiInfo[WndNum]->pMdiTextEdit==0){ 582 582 goto exit; 583 583 } 584 584 585 585 //重複チェック 586 if(MdiInfo[WndNum] .pMdiTextEdit->pobj_WebResult->DuplicateCheck(str)){586 if(MdiInfo[WndNum]->pMdiTextEdit->pobj_WebResult->DuplicateCheck(str)){ 587 587 goto exit; 588 588 } … … 590 590 591 591 592 MdiInfo[WndNum] .pMdiTextEdit->pobj_WebResult->add(WndNum,str);592 MdiInfo[WndNum]->pMdiTextEdit->pobj_WebResult->add(WndNum,str); 593 593 594 594 exit: … … 858 858 859 859 bShow=1; 860 ResizeOwnerWnd();860 ActiveBasic::IDE::Program::mainFrame.Resized(); 861 861 } 862 862 -
trunk/ab5.0/abdev/abdev/WindowControl.cpp
r625 r629 72 72 73 73 for(i3=0;;i3++){ 74 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[i3]==-1) break;74 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[i3]==-1) break; 75 75 } 76 76 … … 85 85 86 86 for(i3--;i3>=0;i3--){ 87 ActiveBasic::PM::ChildWindowInfo *pChildInfo = projectInfo.windowInfos[WndInfoNum]->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[i3]];87 ActiveBasic::PM::ChildWindowInfo *pChildInfo = projectInfo.windowInfos[WndInfoNum]->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[i3]]; 88 88 89 89 MemSize+=pChildInfo->GetName().size()+1+ … … 145 145 ActiveBasic::PM::ChildWindowInfo ChildInfo; 146 146 147 for(i2=1;i2<MAX_RAD_SELITEM;i2++) MdiInfo[WndNum] .MdiRadInfo->SelectingItem[i2]=-1;148 149 WndInfoNum=GetWndInfoNum(MdiInfo[WndNum] .path);147 for(i2=1;i2<MAX_RAD_SELITEM;i2++) MdiInfo[WndNum]->MdiRadInfo->SelectingItem[i2]=-1; 148 149 WndInfoNum=GetWndInfoNum(MdiInfo[WndNum]->path); 150 150 pByte=(BYTE *)GlobalLock(hGlobal); 151 151 i3=*((int *)pByte); … … 184 184 ChildInfo.pos.y+=10; 185 185 186 MdiInfo[WndNum] .MdiRadInfo->SelectingItem[i3]=InsertDlgItem(WndNum,186 MdiInfo[WndNum]->MdiRadInfo->SelectingItem[i3]=InsertDlgItem(WndNum, 187 187 WndInfoNum, 188 188 -1, … … 2298 2298 //ウィンドウが開かれている場合は閉じる 2299 2299 for(i=0;i<MdiInfo.size();i++){ 2300 if(MdiInfo[i] .hwnd&&lstrcmpi(pWindowInfo->GetName().c_str(),MdiInfo[i].path.c_str())==0){2301 SendMessage(MdiInfo[i] .hwnd,WM_CLOSE,0,0);2300 if(MdiInfo[i]->hwnd&&lstrcmpi(pWindowInfo->GetName().c_str(),MdiInfo[i]->path.c_str())==0){ 2301 SendMessage(MdiInfo[i]->hwnd,WM_CLOSE,0,0); 2302 2302 break; 2303 2303 } -
trunk/ab5.0/abdev/abdev/abdev.cpp
r626 r629 100 100 if(!IsWindow(hChild)) return -1; 101 101 for(i=0;i<MdiInfo.size();i++){ 102 if(hChild==MdiInfo[i] .hwnd) break;102 if(hChild==MdiInfo[i]->hwnd) break; 103 103 } 104 104 if(i==MdiInfo.size()) i=-1; … … 119 119 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 120 120 121 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),temporary)==0) return i;121 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),temporary)==0) return i; 122 122 } 123 123 return -1; … … 139 139 if(WndNum==-1) break; 140 140 141 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){141 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 142 142 //コントロールタブスペースの幅と行番号の文字数を更新 143 MdiInfo[WndNum] .pMdiTextEdit->iWidth_ControlTabSpace=144 GetControlTabSpace(WndNum,&MdiInfo[WndNum] .pMdiTextEdit->iLineNumberTextCount);145 146 InvalidateRect(MdiInfo[WndNum] .pMdiTextEdit->hEdit,NULL,0);147 InvalidateRect(MdiInfo[WndNum] .pMdiTextEdit->pobj_Ruler->hRulerWnd,NULL,0);148 149 SendTextEditResizeEvent(MdiInfo[WndNum] .hwnd);143 MdiInfo[WndNum]->pMdiTextEdit->iWidth_ControlTabSpace= 144 GetControlTabSpace(WndNum,&MdiInfo[WndNum]->pMdiTextEdit->iLineNumberTextCount); 145 146 InvalidateRect(MdiInfo[WndNum]->pMdiTextEdit->hEdit,NULL,0); 147 InvalidateRect(MdiInfo[WndNum]->pMdiTextEdit->pobj_Ruler->hRulerWnd,NULL,0); 148 149 SendTextEditResizeEvent(MdiInfo[WndNum]->hwnd); 150 150 } 151 151 else{ … … 165 165 WndNum=GetWndNum(hChild); 166 166 sw=0; 167 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){168 if( MdiInfo[WndNum] .pMdiTextEdit->IsModified() ) sw=1;169 } 170 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){171 if(MdiInfo[WndNum] .MdiIconEditInfo->bModify) sw=1;167 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 168 if( MdiInfo[WndNum]->pMdiTextEdit->IsModified() ) sw=1; 169 } 170 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 171 if(MdiInfo[WndNum]->MdiIconEditInfo->bModify) sw=1; 172 172 } 173 173 … … 205 205 if(WndNum==-1) return; 206 206 hChild=GetWindow(hChild,GW_CHILD); 207 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){207 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 208 208 ////////////////////// 209 209 // テキストエディタ … … 211 211 212 212 //サイズ 213 BufSize=(double)lstrlen(MdiInfo[WndNum] .pMdiTextEdit->buffer);213 BufSize=(double)lstrlen(MdiInfo[WndNum]->pMdiTextEdit->buffer); 214 214 if(IsWindow(hChild)){ 215 215 if(BufSize<1024) sprintf(temporary,"%s: %.0fByte",STRING_SIZE,BufSize); … … 231 231 //日本語 232 232 sprintf(temporary,"%d 行、%d 列", 233 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y+1,234 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x+1);233 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y+1, 234 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x+1); 235 235 #else 236 236 //英語 237 237 sprintf(temporary,"%d : %d", 238 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y+1,239 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x+1);238 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y+1, 239 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x+1); 240 240 #endif 241 241 } … … 244 244 245 245 //文字コード 246 nkf.GetCharCodeName(MdiInfo[WndNum] .pMdiTextEdit->iCharCode,temporary);246 nkf.GetCharCodeName(MdiInfo[WndNum]->pMdiTextEdit->iCharCode,temporary); 247 247 SendMessage(hStatusBar,SB_SETTEXT,3,(LPARAM)temporary); 248 248 249 249 //文字コード 250 nkf.GetLfCodeName(MdiInfo[WndNum] .pMdiTextEdit->iLfCode,temporary);250 nkf.GetLfCodeName(MdiInfo[WndNum]->pMdiTextEdit->iLfCode,temporary); 251 251 SendMessage(hStatusBar,SB_SETTEXT,4,(LPARAM)temporary); 252 252 } 253 else if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD){253 else if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD){ 254 254 //////////////// 255 255 // RADツール 256 256 //////////////// 257 257 258 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum] .path);258 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum]->path); 259 259 if(RadInfo.NowDragging>=FRAME_CHANGEPOS_START&&RadInfo.NowDragging<=FRAME_CHANGEPOS_END){ 260 260 sprintf(temporary,"pos %d, %d", 261 RadInfo.DraggingRect[0].left-MdiInfo[WndNum] .MdiRadInfo->ClientPos.x,262 RadInfo.DraggingRect[0].top-MdiInfo[WndNum] .MdiRadInfo->ClientPos.y);261 RadInfo.DraggingRect[0].left-MdiInfo[WndNum]->MdiRadInfo->ClientPos.x, 262 RadInfo.DraggingRect[0].top-MdiInfo[WndNum]->MdiRadInfo->ClientPos.y); 263 263 SendMessage(hStatusBar,SB_SETTEXT,1,(LPARAM)temporary); 264 264 sprintf(temporary,"size %d * %d", … … 267 267 SendMessage(hStatusBar,SB_SETTEXT,2,(LPARAM)temporary); 268 268 } 269 else if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){269 else if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ 270 270 SendMessage(hStatusBar,SB_SETTEXT,1,(LPARAM)"pos 0, 0"); 271 271 sprintf(temporary,"size %d * %d",pWindowInfo->size.cx,pWindowInfo->size.cy); … … 274 274 else{ 275 275 sprintf(temporary,"pos %d, %d", 276 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->pos.x,277 pWindowInfo->childWindowInfos[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->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->size.cx,281 pWindowInfo->childWindowInfos[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 } 284 284 } 285 else if(MdiInfo[WndNum] .DocType==WNDTYPE_MENU){285 else if(MdiInfo[WndNum]->DocType==WNDTYPE_MENU){ 286 286 ////////////////// 287 287 // MENU エディタ … … 291 291 SendMessage(hStatusBar,SB_SETTEXT,2,(LPARAM)""); 292 292 } 293 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){293 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 294 294 ////////////////// 295 295 // ICON エディタ … … 314 314 pobj_StandardToolbar->EnableItem(IDM_REDO,0); 315 315 } 316 else if(IS_DOCUMENT_TEXT(MdiInfo[i] .DocType)){317 i2=MdiInfo[i] .pMdiTextEdit->pTextEditUndoState->NowPos-1;316 else if(IS_DOCUMENT_TEXT(MdiInfo[i]->DocType)){ 317 i2=MdiInfo[i]->pMdiTextEdit->pTextEditUndoState->NowPos-1; 318 318 if(i2==-1) i2=MAX_UNDONUM-1; 319 if(!MdiInfo[i] .pMdiTextEdit->pTextEditUndoState->Command[i2]){319 if(!MdiInfo[i]->pMdiTextEdit->pTextEditUndoState->Command[i2]){ 320 320 pobj_MainMenu->EnableItem(IDM_UNDO,MF_BYCOMMAND|MF_GRAYED); 321 321 EnableMenuItem(hEditMenu,IDM_UNDO,MF_BYCOMMAND|MF_GRAYED); … … 327 327 pobj_StandardToolbar->EnableItem(IDM_UNDO,1); 328 328 } 329 if(!MdiInfo[i] .pMdiTextEdit->pTextEditUndoState->Command[MdiInfo[i].pMdiTextEdit->pTextEditUndoState->NowPos]){329 if(!MdiInfo[i]->pMdiTextEdit->pTextEditUndoState->Command[MdiInfo[i]->pMdiTextEdit->pTextEditUndoState->NowPos]){ 330 330 pobj_MainMenu->EnableItem(IDM_REDO,MF_BYCOMMAND|MF_GRAYED); 331 331 EnableMenuItem(hEditMenu,IDM_REDO,MF_BYCOMMAND|MF_GRAYED); … … 338 338 } 339 339 } 340 else if(MdiInfo[i] .DocType==WNDTYPE_RAD){341 i2=MdiInfo[i] .MdiRadInfo->undo.NowPos-1;340 else if(MdiInfo[i]->DocType==WNDTYPE_RAD){ 341 i2=MdiInfo[i]->MdiRadInfo->undo.NowPos-1; 342 342 if(i2==-1) i2=MAX_UNDONUM-1; 343 if(!MdiInfo[i] .MdiRadInfo->undo.Command[i2]){343 if(!MdiInfo[i]->MdiRadInfo->undo.Command[i2]){ 344 344 pobj_MainMenu->EnableItem(IDM_UNDO,MF_BYCOMMAND|MF_GRAYED); 345 345 EnableMenuItem(hEditMenu,IDM_UNDO,MF_BYCOMMAND|MF_GRAYED); … … 351 351 pobj_StandardToolbar->EnableItem(IDM_UNDO,1); 352 352 } 353 if(!MdiInfo[i] .MdiRadInfo->undo.Command[MdiInfo[i].MdiRadInfo->undo.NowPos]){353 if(!MdiInfo[i]->MdiRadInfo->undo.Command[MdiInfo[i]->MdiRadInfo->undo.NowPos]){ 354 354 pobj_MainMenu->EnableItem(IDM_REDO,MF_BYCOMMAND|MF_GRAYED); 355 355 EnableMenuItem(hEditMenu,IDM_REDO,MF_BYCOMMAND|MF_GRAYED); … … 362 362 } 363 363 } 364 else if(MdiInfo[i] .DocType==WNDTYPE_MENU){364 else if(MdiInfo[i]->DocType==WNDTYPE_MENU){ 365 365 pobj_MainMenu->EnableItem(IDM_UNDO,MF_BYCOMMAND|MF_GRAYED); 366 366 EnableMenuItem(hEditMenu,IDM_UNDO,MF_BYCOMMAND|MF_GRAYED); … … 371 371 pobj_StandardToolbar->EnableItem(IDM_REDO,0); 372 372 } 373 else if(MdiInfo[i] .DocType==WNDTYPE_ICONEDIT){374 i2=MdiInfo[i] .MdiIconEditInfo->undo[MdiInfo[i].MdiIconEditInfo->SelectIconNum].NowPos-1;373 else if(MdiInfo[i]->DocType==WNDTYPE_ICONEDIT){ 374 i2=MdiInfo[i]->MdiIconEditInfo->undo[MdiInfo[i]->MdiIconEditInfo->SelectIconNum].NowPos-1; 375 375 if(i2==-1) i2=MAX_ICONEDIT_UNDONUM-1; 376 if(!MdiInfo[i] .MdiIconEditInfo->undo[MdiInfo[i].MdiIconEditInfo->SelectIconNum].lpData[i2]){376 if(!MdiInfo[i]->MdiIconEditInfo->undo[MdiInfo[i]->MdiIconEditInfo->SelectIconNum].lpData[i2]){ 377 377 pobj_MainMenu->EnableItem(IDM_UNDO,MF_BYCOMMAND|MF_GRAYED); 378 378 EnableMenuItem(hEditMenu,IDM_UNDO,MF_BYCOMMAND|MF_GRAYED); … … 384 384 pobj_StandardToolbar->EnableItem(IDM_UNDO,1); 385 385 } 386 if(!MdiInfo[i] .MdiIconEditInfo->undo[MdiInfo[i].MdiIconEditInfo->SelectIconNum].lpData[MdiInfo[i].MdiIconEditInfo->undo[MdiInfo[i].MdiIconEditInfo->SelectIconNum].NowPos]){386 if(!MdiInfo[i]->MdiIconEditInfo->undo[MdiInfo[i]->MdiIconEditInfo->SelectIconNum].lpData[MdiInfo[i]->MdiIconEditInfo->undo[MdiInfo[i]->MdiIconEditInfo->SelectIconNum].NowPos]){ 387 387 pobj_MainMenu->EnableItem(IDM_REDO,MF_BYCOMMAND|MF_GRAYED); 388 388 EnableMenuItem(hEditMenu,IDM_REDO,MF_BYCOMMAND|MF_GRAYED); … … 454 454 WndNum=GetWndNum(hChild); 455 455 if(WndNum==-1) return; 456 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){456 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 457 457 pobj_MainMenu->EnableItem(IDM_ALLSELECT,MF_BYCOMMAND|MF_ENABLED); 458 458 pobj_MainMenu->EnableItem(IDM_FIND,MF_BYCOMMAND|MF_ENABLED); … … 466 466 hChild=GetWindow(hChild,GW_CHILD); 467 467 if(!( 468 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.x&&469 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum].pMdiTextEdit->EndCaretPos.y468 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x&& 469 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y==MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y 470 470 )){ 471 471 MenuMsg=MF_BYCOMMAND|MF_ENABLED; … … 502 502 ResetState_ConvMenu(bConvEnable); 503 503 } 504 else if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD){504 else if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD){ 505 505 //検索、置換、文字カウントを無効化 506 506 pobj_MainMenu->EnableItem(IDM_FIND,MF_BYCOMMAND|MF_GRAYED); … … 511 511 pobj_StandardToolbar->EnableItem(IDM_FIND,0); 512 512 513 if(MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){513 if(MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ 514 514 //切り取り、コピー、削除を有効化 515 515 pobj_MainMenu->EnableItem(IDM_CUT,MF_BYCOMMAND|MF_GRAYED); … … 548 548 ResetState_ConvMenu(0); 549 549 } 550 else if(MdiInfo[WndNum] .DocType==WNDTYPE_MENU){550 else if(MdiInfo[WndNum]->DocType==WNDTYPE_MENU){ 551 551 //検索、置換、文字カウントを無効化 552 552 pobj_MainMenu->EnableItem(IDM_FIND,MF_BYCOMMAND|MF_GRAYED); … … 571 571 ResetState_ConvMenu(0); 572 572 } 573 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){573 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 574 574 //検索、置換、文字カウントを無効化 575 575 pobj_MainMenu->EnableItem(IDM_FIND,MF_BYCOMMAND|MF_GRAYED); … … 580 580 pobj_StandardToolbar->EnableItem(IDM_FIND,0); 581 581 582 if(MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel==0){582 if(MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel==0){ 583 583 //切り取り、コピー、削除を無効化 584 584 pobj_MainMenu->EnableItem(IDM_CUT,MF_BYCOMMAND|MF_GRAYED); … … 645 645 if( WndNum != -1 ) 646 646 { 647 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){647 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 648 648 pobj_MainMenu->EnableItem(IDM_PAGESET,MF_BYCOMMAND|MF_ENABLED); 649 649 … … 726 726 int i; 727 727 for(i=0;i<MdiInfo.size();i++){ 728 if(MdiInfo[i] .hwnd){729 if(lstrcmpi(MdiInfo[i] .title.c_str(),lpszTitle)==0){728 if(MdiInfo[i]->hwnd){ 729 if(lstrcmpi(MdiInfo[i]->title.c_str(),lpszTitle)==0){ 730 730 lstrcat(lpszTitle,"_"); 731 731 DuplicateTitleCheck(lpszTitle); … … 735 735 } 736 736 } 737 HWND NewTextEditWindow(char *filepath,_int8 DocumentType,COLORREF TabColor){ 737 HWND NewTextEditWindow(char *filepath,_int8 DocumentType,COLORREF TabColor) 738 { 738 739 int i; 739 740 char str[MAX_PATH],str2[32],*buffer; … … 746 747 747 748 //すでに指定されたファイルが開かれている場合 748 hChild= GetWindow(hClient,GW_CHILD);749 hChild=::GetWindow(hClient,GW_CHILD); 749 750 while(hChild){ 750 751 i=GetWndNum(hChild); 751 if(IS_DOCUMENT_TEXT(MdiInfo[i] .DocType)){752 if(lstrcmpi(MdiInfo[i] .path.c_str(),filepath)==0) break;753 } 754 hChild= GetNextWindow(hChild,GW_HWNDNEXT);752 if(IS_DOCUMENT_TEXT(MdiInfo[i]->DocType)){ 753 if(lstrcmpi(MdiInfo[i]->path.c_str(),filepath)==0) break; 754 } 755 hChild=::GetNextWindow(hChild,GW_HWNDNEXT); 755 756 } 756 757 if(hChild){ 757 758 //前面に表示して終了 758 BringWindowToTop(hChild);759 ::BringWindowToTop(hChild); 759 760 return hChild; 760 761 } … … 769 770 if(hFile==INVALID_HANDLE_VALUE){ 770 771 sprintf(str,STRING_ERROR_CANT_FILEOPEN,filepath); 771 MessageBox(hOwner,str,STRING_ERROR,MB_OK|MB_ICONEXCLAMATION);772 ::MessageBox(hOwner,str,STRING_ERROR,MB_OK|MB_ICONEXCLAMATION); 772 773 return 0; 773 774 } … … 853 854 else{ 854 855 buffer=(char *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1); 856 extern int DocumentCounter; 855 857 DocumentCounter++; 856 858 sprintf(str,"Document[%d]",DocumentCounter); … … 866 868 mdic.szTitle=str; 867 869 868 hChild= GetWindow(hClient,GW_CHILD);869 if( IsWindow(hChild)){870 if( IsZoomed(hChild)) mdic.style=WS_MAXIMIZE;870 hChild=::GetWindow(hClient,GW_CHILD); 871 if(::IsWindow(hChild)){ 872 if(::IsZoomed(hChild)) mdic.style=WS_MAXIMIZE; 871 873 else mdic.style=0; 872 874 } … … 883 885 mdic.lParam=(LPARAM)shfi.hIcon; 884 886 885 mdic.style |=WS_CLIPCHILDREN;887 mdic.style |= WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_SYSMENU | WS_CAPTION | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX; 886 888 hChild=(HWND)SendMessage(hClient,WM_MDICREATE,0,(long)&mdic); //ウィンドウ作成 887 889 888 890 //TextEditorコントロールを設置 889 GetClientRect(hChild,&rect);891 ::GetClientRect(hChild,&rect); 890 892 hEdit=CreateWindow("TextEditor",NULL, 891 893 WS_CHILD|WS_HSCROLL|WS_VSCROLL|WS_VISIBLE, … … 895 897 896 898 //ウィンドウのID登録 897 MdiInfo.push_back( MDIINFO() );899 MdiInfo.push_back( new MDIINFO() ); 898 900 i = MdiInfo.size()-1; 899 MdiInfo[i] .hwnd=hChild;900 MdiInfo[i] .DocType=DocumentType;901 MdiInfo[i]->hwnd=hChild; 902 MdiInfo[i]->DocType=DocumentType; 901 903 DuplicateTitleCheck(str); 902 MdiInfo[i] .title = str;904 MdiInfo[i]->title = str; 903 905 if(filepath) 904 906 { 905 MdiInfo[i] .path = filepath;907 MdiInfo[i]->path = filepath; 906 908 } 907 909 else 908 910 { 909 MdiInfo[i] .path = "";910 } 911 912 MdiInfo[i] .pMdiTextEdit = new CMdiTextEdit( &MdiInfo[i] );913 914 MdiInfo[i] .pMdiTextEdit->hEdit=hEdit;915 MdiInfo[i] .pMdiTextEdit->pobj_WebResult=new CWebResult(hChild);916 MdiInfo[i] .pMdiTextEdit->pobj_Ruler=new CRuler(hChild,i);917 MdiInfo[i] .pMdiTextEdit->hIcon=shfi.hIcon;918 MdiInfo[i] .pMdiTextEdit->buffer=buffer;919 MdiInfo[i] .pMdiTextEdit->pColorRef=(COLORREF *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,sizeof(COLORREF)*lstrlen(buffer));920 MdiInfo[i] .pMdiTextEdit->iUnderStart=-1;921 MdiInfo[i] .pMdiTextEdit->iUnderEnd=-1;922 MdiInfo[i] .pMdiTextEdit->StartCaretPos.x=0;923 MdiInfo[i] .pMdiTextEdit->StartCaretPos.y=0;924 MdiInfo[i] .pMdiTextEdit->EndCaretPos.x=0;925 MdiInfo[i] .pMdiTextEdit->EndCaretPos.y=0;926 MdiInfo[i] .pMdiTextEdit->Temp_UpDown_CaretXPos=-1;927 MdiInfo[i] .pMdiTextEdit->bAutoScroll=0;928 MdiInfo[i] .pMdiTextEdit->iWidth_ControlTabSpace=929 GetControlTabSpace(i,&MdiInfo[i] .pMdiTextEdit->iLineNumberTextCount);930 MdiInfo[i] .pMdiTextEdit->iCharCode=iCharCode;931 MdiInfo[i] .pMdiTextEdit->iLfCode=iLfCode;932 MdiInfo[i] .IndentStr=0;911 MdiInfo[i]->path = ""; 912 } 913 914 MdiInfo[i]->pMdiTextEdit = new CMdiTextEdit( MdiInfo[i] ); 915 916 MdiInfo[i]->pMdiTextEdit->hEdit=hEdit; 917 MdiInfo[i]->pMdiTextEdit->pobj_WebResult=new CWebResult(hChild); 918 MdiInfo[i]->pMdiTextEdit->pobj_Ruler=new CRuler(hChild,i); 919 MdiInfo[i]->pMdiTextEdit->hIcon=shfi.hIcon; 920 MdiInfo[i]->pMdiTextEdit->buffer=buffer; 921 MdiInfo[i]->pMdiTextEdit->pColorRef=(COLORREF *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,sizeof(COLORREF)*lstrlen(buffer)); 922 MdiInfo[i]->pMdiTextEdit->iUnderStart=-1; 923 MdiInfo[i]->pMdiTextEdit->iUnderEnd=-1; 924 MdiInfo[i]->pMdiTextEdit->StartCaretPos.x=0; 925 MdiInfo[i]->pMdiTextEdit->StartCaretPos.y=0; 926 MdiInfo[i]->pMdiTextEdit->EndCaretPos.x=0; 927 MdiInfo[i]->pMdiTextEdit->EndCaretPos.y=0; 928 MdiInfo[i]->pMdiTextEdit->Temp_UpDown_CaretXPos=-1; 929 MdiInfo[i]->pMdiTextEdit->bAutoScroll=0; 930 MdiInfo[i]->pMdiTextEdit->iWidth_ControlTabSpace= 931 GetControlTabSpace(i,&MdiInfo[i]->pMdiTextEdit->iLineNumberTextCount); 932 MdiInfo[i]->pMdiTextEdit->iCharCode=iCharCode; 933 MdiInfo[i]->pMdiTextEdit->iLfCode=iLfCode; 934 MdiInfo[i]->IndentStr=0; 933 935 934 936 … … 944 946 //Docコンボボックスに追加 945 947 extern HWND hDocCombo; 946 i=SendMessage(hDocCombo,CB_ADDSTRING,0,(long)str); 947 SendMessage(hDocCombo,CB_SETCURSEL,i,0); 948 if( hDocCombo ) 949 { 950 i=SendMessage(hDocCombo,CB_ADDSTRING,0,(long)str); 951 SendMessage(hDocCombo,CB_SETCURSEL,i,0); 952 } 948 953 949 954 //タブに追加 950 955 pobj_MainTab->InsertItem( str, true, TabColor ); 951 956 952 SetFocus(hEdit);957 ::SetFocus(hEdit); 953 958 SetStatusText(NULL); 954 959 … … 958 963 if( DocumentType == WNDTYPE_BASIC && !projectInfo.IsOpened() ){ 959 964 // 単体ソースコードを開いたとき 960 if( !IsWindowVisible( hProjectView ) ){ 965 extern HWND hProjectView; 966 if( !::IsWindowVisible( hProjectView ) ){ 961 967 // クラスビューを表示する 962 968 SendMessage(hOwner,WM_COMMAND,IDM_PROJECTVIEW,0); … … 973 979 int i2,i3; 974 980 975 MdiInfo[WndNum] .hwnd=0;981 MdiInfo[WndNum]->hwnd=0; 976 982 977 983 //ドキュメントコンボボックスから文字列を消去 978 984 extern HWND hDocCombo; 979 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum] .title.c_str());985 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[WndNum]->title.c_str()); 980 986 SendMessage(hDocCombo,CB_DELETESTRING,i2,0); 981 987 982 988 //タブコントロールからアイテムを消去 983 if(pobj_MainTab) pobj_MainTab->DeleteItem( MdiInfo[WndNum] .title.c_str(), true );984 985 986 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){989 if(pobj_MainTab) pobj_MainTab->DeleteItem( MdiInfo[WndNum]->title.c_str(), true ); 990 991 992 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 987 993 //////////////////////////// 988 994 // テキストエディタを閉じる … … 996 1002 } 997 1003 998 HeapDefaultFree(MdiInfo[WndNum] .pMdiTextEdit->buffer);999 HeapDefaultFree(MdiInfo[WndNum] .pMdiTextEdit->pColorRef);1000 1001 if(MdiInfo[WndNum] .IndentStr) HeapDefaultFree(MdiInfo[WndNum].IndentStr);1004 HeapDefaultFree(MdiInfo[WndNum]->pMdiTextEdit->buffer); 1005 HeapDefaultFree(MdiInfo[WndNum]->pMdiTextEdit->pColorRef); 1006 1007 if(MdiInfo[WndNum]->IndentStr) HeapDefaultFree(MdiInfo[WndNum]->IndentStr); 1002 1008 1003 1009 //エディットコントロールを破棄 1004 DestroyWindow(MdiInfo[WndNum] .pMdiTextEdit->hEdit);1010 DestroyWindow(MdiInfo[WndNum]->pMdiTextEdit->hEdit); 1005 1011 1006 1012 //Web検索ウィンドウを破棄 1007 delete MdiInfo[WndNum] .pMdiTextEdit->pobj_WebResult;1008 MdiInfo[WndNum] .pMdiTextEdit->pobj_WebResult=0;1013 delete MdiInfo[WndNum]->pMdiTextEdit->pobj_WebResult; 1014 MdiInfo[WndNum]->pMdiTextEdit->pobj_WebResult=0; 1009 1015 1010 1016 //ルーラーウィンドウを破棄 1011 delete MdiInfo[WndNum] .pMdiTextEdit->pobj_Ruler;1012 MdiInfo[WndNum] .pMdiTextEdit->pobj_Ruler=0;1017 delete MdiInfo[WndNum]->pMdiTextEdit->pobj_Ruler; 1018 MdiInfo[WndNum]->pMdiTextEdit->pobj_Ruler=0; 1013 1019 1014 1020 //アイコンを破棄 1015 if(MdiInfo[WndNum] .pMdiTextEdit->hIcon) DestroyIcon(MdiInfo[WndNum].pMdiTextEdit->hIcon);1016 1017 delete MdiInfo[WndNum] .pMdiTextEdit;1018 MdiInfo[WndNum] .pMdiTextEdit=0;1019 } 1020 else if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD){1021 if(MdiInfo[WndNum]->pMdiTextEdit->hIcon) DestroyIcon(MdiInfo[WndNum]->pMdiTextEdit->hIcon); 1022 1023 delete MdiInfo[WndNum]->pMdiTextEdit; 1024 MdiInfo[WndNum]->pMdiTextEdit=0; 1025 } 1026 else if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD){ 1021 1027 ///////////////////// 1022 1028 // RADツールを閉じる … … 1024 1030 1025 1031 for(i2=0;i2<MAX_UNDONUM;i2++){ 1026 if(MdiInfo[WndNum] .MdiRadInfo->undo.Command[i2])1032 if(MdiInfo[WndNum]->MdiRadInfo->undo.Command[i2]) 1027 1033 Rad_DeleteUndoData(WndNum,i2); 1028 1034 } 1029 DestroyWindow(MdiInfo[WndNum] .MdiRadInfo->hTools);1030 DestroyWindow(MdiInfo[WndNum] .MdiRadInfo->hRad);1031 SelectObject(MdiInfo[WndNum] .MdiRadInfo->hMemDC,MdiInfo[WndNum].MdiRadInfo->hOldBitmap);1032 DeleteDC(MdiInfo[WndNum] .MdiRadInfo->hMemDC);1033 DeleteObject(MdiInfo[WndNum] .MdiRadInfo->hBitmap);1034 GlobalFree(MdiInfo[WndNum] .MdiRadInfo);1035 } 1036 else if(MdiInfo[WndNum] .DocType==WNDTYPE_MENU){1035 DestroyWindow(MdiInfo[WndNum]->MdiRadInfo->hTools); 1036 DestroyWindow(MdiInfo[WndNum]->MdiRadInfo->hRad); 1037 SelectObject(MdiInfo[WndNum]->MdiRadInfo->hMemDC,MdiInfo[WndNum]->MdiRadInfo->hOldBitmap); 1038 DeleteDC(MdiInfo[WndNum]->MdiRadInfo->hMemDC); 1039 DeleteObject(MdiInfo[WndNum]->MdiRadInfo->hBitmap); 1040 GlobalFree(MdiInfo[WndNum]->MdiRadInfo); 1041 } 1042 else if(MdiInfo[WndNum]->DocType==WNDTYPE_MENU){ 1037 1043 //////////////////////////// 1038 1044 // メニューエディタを閉じる 1039 1045 //////////////////////////// 1040 1046 1041 DestroyWindow(MdiInfo[WndNum] .MdiMenuInfo->hList);1042 GlobalFree(MdiInfo[WndNum] .MdiMenuInfo);1043 } 1044 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){1047 DestroyWindow(MdiInfo[WndNum]->MdiMenuInfo->hList); 1048 GlobalFree(MdiInfo[WndNum]->MdiMenuInfo); 1049 } 1050 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 1045 1051 //////////////////////////// 1046 1052 // アイコンエディタを閉じる 1047 1053 //////////////////////////// 1048 1054 1049 for(i2=0;i2<MdiInfo[WndNum] .MdiIconEditInfo->num;i2++){1055 for(i2=0;i2<MdiInfo[WndNum]->MdiIconEditInfo->num;i2++){ 1050 1056 for(i3=0;i3<MAX_ICONEDIT_UNDONUM;i3++){ 1051 if(MdiInfo[WndNum] .MdiIconEditInfo->undo[i2].lpData[i3])1052 HeapDefaultFree(MdiInfo[WndNum] .MdiIconEditInfo->undo[i2].lpData[i3]);1053 } 1054 } 1055 1056 DeleteDC(MdiInfo[WndNum] .MdiIconEditInfo->memdc);1057 DeleteObject(MdiInfo[WndNum] .MdiIconEditInfo->hMemBmp);1058 DestroyWindow(MdiInfo[WndNum] .MdiIconEditInfo->hMain);1059 for(i2=0;i2<MdiInfo[WndNum] .MdiIconEditInfo->num;i2++){1060 HeapDefaultFree(MdiInfo[WndNum] .MdiIconEditInfo->pIconImage[i2]);1061 } 1062 HeapDefaultFree(MdiInfo[WndNum] .MdiIconEditInfo);1057 if(MdiInfo[WndNum]->MdiIconEditInfo->undo[i2].lpData[i3]) 1058 HeapDefaultFree(MdiInfo[WndNum]->MdiIconEditInfo->undo[i2].lpData[i3]); 1059 } 1060 } 1061 1062 DeleteDC(MdiInfo[WndNum]->MdiIconEditInfo->memdc); 1063 DeleteObject(MdiInfo[WndNum]->MdiIconEditInfo->hMemBmp); 1064 DestroyWindow(MdiInfo[WndNum]->MdiIconEditInfo->hMain); 1065 for(i2=0;i2<MdiInfo[WndNum]->MdiIconEditInfo->num;i2++){ 1066 HeapDefaultFree(MdiInfo[WndNum]->MdiIconEditInfo->pIconImage[i2]); 1067 } 1068 HeapDefaultFree(MdiInfo[WndNum]->MdiIconEditInfo); 1063 1069 } 1064 1070 else … … 1067 1073 } 1068 1074 1069 Jenga::Common::EraseVectorItem<std::vector<MDIINFO>>( MdiInfo, WndNum ); 1075 delete MdiInfo[WndNum]; 1076 Jenga::Common::EraseVectorItem<std::vector<MDIINFO *>>( MdiInfo, WndNum ); 1070 1077 } 1071 1078 void ResizeTextEditWnd(HWND hwnd,int cx,int cy){ … … 1082 1089 if(pobj_nv->bEditor_Ruler){ 1083 1090 //ルーラー 1084 MdiInfo[WndNum] .pMdiTextEdit->pobj_Ruler->resize(1091 MdiInfo[WndNum]->pMdiTextEdit->pobj_Ruler->resize( 1085 1092 0, 1086 1093 0, … … 1090 1097 iHeightRuler=HEIGHT_RULER; 1091 1098 1092 ShowWindow(MdiInfo[WndNum] .pMdiTextEdit->pobj_Ruler->hRulerWnd,SW_SHOW);1099 ShowWindow(MdiInfo[WndNum]->pMdiTextEdit->pobj_Ruler->hRulerWnd,SW_SHOW); 1093 1100 } 1094 1101 else{ 1095 1102 iHeightRuler=0; 1096 1103 1097 ShowWindow(MdiInfo[WndNum] .pMdiTextEdit->pobj_Ruler->hRulerWnd,SW_HIDE);1104 ShowWindow(MdiInfo[WndNum]->pMdiTextEdit->pobj_Ruler->hRulerWnd,SW_HIDE); 1098 1105 } 1099 1106 1100 1107 //エディットウィンドウ 1101 MoveWindow(MdiInfo[WndNum] .pMdiTextEdit->hEdit,1108 MoveWindow(MdiInfo[WndNum]->pMdiTextEdit->hEdit, 1102 1109 0, 1103 1110 iHeightRuler, … … 1107 1114 1108 1115 //Web検索ウィンドウ 1109 MdiInfo[WndNum] .pMdiTextEdit->pobj_WebResult->resize(1116 MdiInfo[WndNum]->pMdiTextEdit->pobj_WebResult->resize( 1110 1117 0, 1111 1118 cy-WebResultWndHeight, … … 1149 1156 //ドキュメント セレクト コンボボックス 1150 1157 extern HWND hDocCombo; 1151 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[i] .title.c_str());1158 i2=SendMessage(hDocCombo,CB_FINDSTRINGEXACT,0,(long)MdiInfo[i]->title.c_str()); 1152 1159 SendMessage(hDocCombo,CB_SETCURSEL,i2,0); 1153 1160 1154 1161 //タブコントロール 1155 pobj_MainTab->MdiActiveEvent(MdiInfo[i] .title.c_str());1162 pobj_MainTab->MdiActiveEvent(MdiInfo[i]->title.c_str()); 1156 1163 1157 1164 if( !projectInfo.IsOpened() ){ … … 1183 1190 return DefMDIChildProc(hwnd,message,wParam,lParam); 1184 1191 } 1185 void ResizeOwnerWnd(void){1186 int width_owner,height_owner;1187 int height_Rebar;1188 int height_MdiClient;1189 RECT rect,StatusRect,RebarRect;1190 1191 GetClientRect(hOwner,&rect);1192 width_owner=rect.right;1193 height_owner=rect.bottom;1194 1195 //Rebar1196 SendMessage(pobj_Rebar->hRebar,WM_SIZE,0,MAKELONG(width_owner,height_owner));1197 UpdateWindow(pobj_Rebar->hRebar);1198 1199 //Status bar1200 #define STATUSBAR_PARTS_NUM 51201 int sb_size[STATUSBAR_PARTS_NUM];1202 sb_size[0]=width_owner-340;1203 sb_size[1]=width_owner-220;1204 sb_size[2]=width_owner-120;1205 sb_size[3]=width_owner-50;1206 sb_size[4]=width_owner;1207 SendMessage(hStatusBar,SB_SETPARTS,STATUSBAR_PARTS_NUM,(LPARAM)sb_size);1208 SendMessage(hStatusBar,WM_SIZE,0,MAKELONG(width_owner,height_owner));1209 UpdateWindow(hStatusBar);1210 1211 //Status bar1212 int height_Statusbar;1213 SendMessage(hStatusBar,SB_GETRECT,0,(long)&StatusRect);1214 height_Statusbar=StatusRect.bottom;1215 1216 GetWindowRect(pobj_Rebar->hRebar,&RebarRect);1217 height_Rebar=RebarRect.bottom-RebarRect.top+2;1218 1219 int height_dv; //Width of Debugger View1220 int height_cv; //Width of Compiler View1221 height_dv=0;1222 height_cv=0;1223 #ifndef THETEXT1224 if(bClipCompileView){1225 if(pobj_Debugger->IsDebuggerView()){1226 //デバッガビューが表示されているとき1227 height_dv=pobj_nv->height_ClipDebuggerView+LEVER_THICK;1228 }1229 if(hCompileView){1230 //コンパイラビューが表示されているとき1231 height_cv=pobj_nv->height_ClipCompileView+LEVER_THICK;1232 }1233 }1234 #endif1235 1236 int width_pjv=0; //Width of Project View1237 if(pobj_nv->bClipProjectView){1238 if(IsWindowVisible(hProjectView)){1239 //プロジェクトビューが表示されているとき1240 width_pjv=pobj_nv->width_ClipProjectView+LEVER_THICK;1241 }1242 }1243 1244 int width_SideWeb=0;1245 if( pobj_SideWeb )1246 {1247 if(pobj_SideWeb->bShow){1248 width_SideWeb=pobj_nv->width_WebSearchView+LEVER_THICK;1249 }1250 }1251 1252 //MDIクライアントの高さ1253 height_MdiClient=height_owner-(1254 height_Rebar+1255 height_dv+1256 height_cv+1257 height_Statusbar1258 );1259 1260 //タブコントロール1261 int tab_height;1262 if(TabCtrl_GetItemCount(pobj_MainTab->hTab)==0) tab_height=0;1263 else{1264 RECT rc;1265 TabCtrl_GetItemRect(pobj_MainTab->hTab,0,&rc);1266 tab_height=rc.bottom-rc.top;1267 }1268 MoveWindow(pobj_MainTab->hTab,1269 width_pjv,1270 height_Rebar,1271 width_owner-width_pjv-width_SideWeb,1272 tab_height,1273 1);1274 1275 //MDIクライアント1276 MoveWindow(hClient,1277 width_pjv,1278 height_Rebar+tab_height,1279 width_owner-width_pjv-width_SideWeb,1280 height_MdiClient-tab_height,1281 1);1282 1283 if( pobj_SideWeb )1284 {1285 if(pobj_SideWeb->bShow){1286 //SideWeb1287 pobj_SideWeb->resize(1288 width_owner - pobj_nv->width_WebSearchView,1289 height_Rebar,1290 pobj_nv->width_WebSearchView,1291 height_MdiClient);1292 }1293 else pobj_SideWeb->resize(0,0,0,0);1294 }1295 1296 if(width_pjv){1297 //プロジェクトビュー1298 MoveWindow(hProjectView,1299 0,1300 height_Rebar,1301 pobj_nv->width_ClipProjectView,1302 height_MdiClient,1303 1);1304 InvalidateRect(hProjectView,NULL,0);1305 }1306 1307 if(height_dv){1308 #ifndef THETEXT1309 //デバッガビュー1310 pobj_Debugger->resize(1311 0,1312 height_Rebar+height_MdiClient+LEVER_THICK,1313 width_owner,1314 pobj_nv->height_ClipDebuggerView);1315 #endif1316 }1317 if(height_cv){1318 //コンパイラビュー1319 MoveWindow(hCompileView,1320 0,1321 height_Rebar+height_MdiClient+height_dv+LEVER_THICK,1322 width_owner,1323 pobj_nv->height_ClipCompileView,1324 1);1325 }1326 }1327 1192 1328 1193 WNDPROC oldMainFrameWndProc; … … 1353 1218 //コンパイラウィンドウ(埋め込み型)が表示されたとき 1354 1219 hCompileView=(HWND)lParam; 1355 ResizeOwnerWnd();1220 ActiveBasic::IDE::Program::mainFrame.Resized(); 1356 1221 return 0; 1357 1222 case WM_DESTROYCOMPILEVIEW: … … 1365 1230 hCompileView=0; 1366 1231 1367 ResizeOwnerWnd();1232 ActiveBasic::IDE::Program::mainFrame.Resized(); 1368 1233 } 1369 1234 return 0; … … 1389 1254 //デバッガウィンドウ(埋め込み型)が表示されたとき 1390 1255 pobj_Debugger->watch_start((HWND)lParam); 1391 ResizeOwnerWnd();1256 ActiveBasic::IDE::Program::mainFrame.Resized(); 1392 1257 return 0; 1393 1258 case WM_DESTROYDEBUGGERVIEW: 1394 1259 //デバッガウィンドウ(埋め込み型)が破棄されたとき 1395 1260 pobj_Debugger->watch_quit(); 1396 ResizeOwnerWnd();1261 ActiveBasic::IDE::Program::mainFrame.Resized(); 1397 1262 return 0; 1398 1263 #endif 1399 1400 case WM_SIZE:1401 ResizeOwnerWnd();1402 return 0;1403 1264 1404 1265 … … 1442 1303 } 1443 1304 1444 ResizeOwnerWnd();1305 ActiveBasic::IDE::Program::mainFrame.Resized(); 1445 1306 UpdateWindow(hwnd); 1446 1307 } … … 1717 1578 if( projectInfo.IsOpened() ){ 1718 1579 for(i=0,i2=0;i<MdiInfo.size();i++){ 1719 if(MdiInfo[i] .hwnd&&MdiInfo[i].DocType==WNDTYPE_RAD){1720 if(IsDialogMessage(MdiInfo[i] .MdiRadInfo->hProp_Dlg,&msg)) i2=1;1580 if(MdiInfo[i]->hwnd&&MdiInfo[i]->DocType==WNDTYPE_RAD){ 1581 if(IsDialogMessage(MdiInfo[i]->MdiRadInfo->hProp_Dlg,&msg)) i2=1; 1721 1582 } 1722 1583 } -
trunk/ab5.0/abdev/abdev/abdev.h
r625 r629 48 48 HWND hClient; //MDIクライアントウィンドウ 49 49 HWND hStatusBar; //ステータスバー 50 std::vector<MDIINFO > MdiInfo; //MDIドキュメントウィンドウ情報50 std::vector<MDIINFO *> MdiInfo; //MDIドキュメントウィンドウ情報 51 51 52 52 /* メニュー */ -
trunk/ab5.0/abdev/abdev/abdev.vcproj
r625 r629 429 429 Name="Window Components" 430 430 > 431 <File432 RelativePath=".\src\WindowComponents\MdiWindow.cpp"433 >434 </File>435 431 <Filter 436 432 Name="PartialManager" … … 2809 2805 > 2810 2806 </File> 2807 </Filter> 2808 <Filter 2809 Name="MdiChildFrame" 2810 > 2811 2811 </Filter> 2812 2812 </Filter> -
trunk/ab5.0/abdev/abdev/include/MainFrame.h
r609 r629 19 19 20 20 class MainFrame 21 : public WindowComponents:: BaseWindow21 : public WindowComponents::MdiWindow 22 22 { 23 23 WindowAreaManager wam; 24 WindowComponents::MdiWindow *mdiWindow;25 24 26 25 public: 26 // リサイズ時のリフレッシュ 27 void Resized(); 27 28 28 29 // WebブラウザでURLを開く … … 70 71 // ファイルがドロップされた 71 72 void OnDropFiles( HDROP hDropInfo ); 73 74 // 再描画 75 void OnPaint( HDC dummy ); 72 76 73 77 // ソースコード表示メッセージ … … 252 256 BEGIN_MSG_MAP( MainFrame ) 253 257 MESSAGE_HANDLER( WM_CREATE, OnCreate ) 258 MSG_WM_SIZE( OnSize ) 254 259 MSG_WM_QUERYENDSESSION( OnQueryEndSession ) 255 260 MSG_WM_CLOSE( OnClose ) … … 263 268 MSG_WM_NOTIFY( OnNotify ); 264 269 MSG_WM_DROPFILES( OnDropFiles ) 270 MSG_WM_PAINT( OnPaint ) 265 271 MESSAGE_HANDLER( WM_SHOWERROR, OnShowSourceLine ) 266 272 … … 366 372 COMMAND_ID_HANDLER_EX( IDM_BLUE, OnCmdColor ) 367 373 COMMAND_ID_HANDLER_EX( IDM_YELLOW, OnCmdColor ) 374 375 CHAIN_MSG_MAP(CUpdateUI<WindowComponents::MdiWindow>) 376 CHAIN_MSG_MAP(CMDIFrameWindowImpl<WindowComponents::MdiWindow>) 368 377 END_MSG_MAP() 369 378 }; -
trunk/ab5.0/abdev/abdev/include/Program.h
r489 r629 6 6 class Program 7 7 { 8 static MainFrame mainFrame;9 8 10 9 static void InitializeWindow(); 11 10 public: 11 static MainFrame mainFrame; 12 12 static CAppModule _Module; 13 13 -
trunk/ab5.0/abdev/abdev/include/ProjectManager/WindowManager.h
r625 r629 123 123 const std::string GetSourceFileName() const 124 124 { 125 return this->GetName() + ".ab"; 126 } 127 128 const std::string GetSourceFileNameForOldVer( const std::string &baseDir ) const 129 { 130 if( Jenga::Common::Path( baseDir + this->GetName() + ".ab" ).IsExistFile() ) 131 { 132 return this->GetName() + ".ab"; 133 } 134 if( Jenga::Common::Path( baseDir + this->GetName() + ".abp" ).IsExistFile() ) 135 { 136 return this->GetName() + ".abp"; 137 } 138 if( Jenga::Common::Path( baseDir + this->GetName() + ".sbp" ).IsExistFile() ) 139 { 140 return this->GetName() + ".sbp"; 141 } 125 142 return this->GetName() + ".ab"; 126 143 } -
trunk/ab5.0/abdev/abdev/include/WindowAreaManager.h
r489 r629 15 15 16 16 void Add(); 17 void AddMdiWindow( WindowComponents::MdiWindow *mdiWindow ); 18 19 WindowComponents::MdiWindow *mdiWindow; 17 void AddMdiClientWindow( HWND hMdiClientWnd ); 20 18 }; 21 19 -
trunk/ab5.0/abdev/abdev/include/WindowCollection.h
r489 r629 6 6 class WindowCollection 7 7 { 8 WindowComponents::MdiWindow *mdiWindow;8 HWND hMdiClientWnd; 9 9 WindowComponents::BaseWindowPtrs windows; 10 10 public: 11 11 12 12 WindowCollection() 13 : mdiWindow( NULL )13 : hMdiClientWnd( NULL ) 14 14 { 15 15 } 16 WindowCollection( WindowComponents::MdiWindow *mdiWindow)17 : mdiWindow( mdiWindow)16 WindowCollection( HWND hMdiClientWnd ) 17 : hMdiClientWnd( hMdiClientWnd ) 18 18 { 19 19 } -
trunk/ab5.0/abdev/abdev/include/WindowComponents/MdiWindow.h
r489 r629 29 29 } 30 30 31 BEGIN_UPDATE_UI_MAP( MdiWindow)31 BEGIN_UPDATE_UI_MAP( MdiWindow ) 32 32 // エントリなし 33 33 END_UPDATE_UI_MAP() 34 35 BEGIN_MSG_MAP_EX(MdiWindow)36 MSG_WM_CREATE(OnCreate)37 COMMAND_ID_HANDLER_EX(ID_APP_EXIT, OnFileExit)38 COMMAND_ID_HANDLER_EX(ID_FILE_NEW, OnFileNew)39 COMMAND_ID_HANDLER_EX(ID_WINDOW_CASCADE, OnWindowCascade)40 COMMAND_ID_HANDLER_EX(ID_WINDOW_TILE_HORZ, OnWindowTile)41 COMMAND_ID_HANDLER_EX(ID_WINDOW_ARRANGE, OnWindowArrangeIcons)42 CHAIN_MSG_MAP(CUpdateUI<MdiWindow>)43 CHAIN_MSG_MAP(CMDIFrameWindowImpl<MdiWindow>)44 END_MSG_MAP()45 46 LRESULT OnCreate(LPCREATESTRUCT lpcs);47 48 void OnFileExit(UINT uNotifyCode, int nID, HWND hWndCtl){49 PostMessage(WM_CLOSE);50 }51 52 void OnFileNew(UINT uNotifyCode, int nID, HWND hWndCtl){53 // 子ウィンドウを作成54 MdiChild *child = new MdiChild();55 child->CreateEx( m_hWndClient );56 }57 58 void OnWindowCascade(UINT uNotifyCode, int nID, HWND hWndCtl){59 // 子ウィンドウを重ねて表示60 MDICascade();61 }62 63 void OnWindowTile(UINT uNotifyCode, int nID, HWND hWndCtl){64 // 子ウィンドウを上下に並べて表示65 MDITile();66 }67 68 void OnWindowArrangeIcons(UINT uNotifyCode, int nID, HWND hWndCtl){69 // 最小化された子ウィンドウのアイコンを整列70 MDIIconArrange();71 }72 34 }; 73 35 -
trunk/ab5.0/abdev/abdev/menu.cpp
r475 r629 131 131 BOOL CMenuEx::SetIcon(int itemID,HICON hIcon){ 132 132 //アイコンをセット 133 int i; 134 for(i=0;i<iMenuItemNum;i++){ 133 134 for( int i=0; i<iMenuItemNum; i++ ) 135 { 135 136 if(ppobj_MenuItemData[i]->itemID==itemID){ 136 137 ppobj_MenuItemData[i]->hIcon=hIcon; … … 151 152 } 152 153 return 0; 154 } 155 156 int CMenuEx::FindSubMenuIndex( const std::string &itemStr ) 157 { 158 for( int i=0; i<iMenuItemNum; i++ ) 159 { 160 if( itemStr == ppobj_MenuItemData[i]->str ) 161 { 162 return i; 163 } 164 } 165 return -1; 153 166 } 154 167 -
trunk/ab5.0/abdev/abdev/menu.h
r3 r629 69 69 BOOL SetIcon(int itemID,HICON hIcon); 70 70 71 int FindSubMenuIndex( const std::string &itemStr ); 72 71 73 72 74 private: -
trunk/ab5.0/abdev/abdev/nkf_class.cpp
r625 r629 169 169 break; 170 170 } 171 if(!IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){171 if(!IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 172 172 //テキストドキュメントでないとき 173 173 EndDialog(hwnd,0); … … 180 180 SendMessage(hList,LB_ADDSTRING,0,(long)"JIS"); 181 181 SendMessage(hList,LB_ADDSTRING,0,(long)"UTF-8"); 182 SendMessage(hList,LB_SETCURSEL,MdiInfo[WndNum] .pMdiTextEdit->iCharCode,0);182 SendMessage(hList,LB_SETCURSEL,MdiInfo[WndNum]->pMdiTextEdit->iCharCode,0); 183 183 184 184 hList=GetDlgItem(hwnd,IDC_LIST_LFCODE); … … 186 186 SendMessage(hList,LB_ADDSTRING,0,(long)"LF(Unix)"); 187 187 SendMessage(hList,LB_ADDSTRING,0,(long)"CR(Macintosh)"); 188 SendMessage(hList,LB_SETCURSEL,MdiInfo[WndNum] .pMdiTextEdit->iLfCode,0);188 SendMessage(hList,LB_SETCURSEL,MdiInfo[WndNum]->pMdiTextEdit->iLfCode,0); 189 189 break; 190 190 case WM_COMMAND: … … 192 192 case IDOK: 193 193 //文字コードを取得 194 MdiInfo[WndNum] .pMdiTextEdit->iCharCode=194 MdiInfo[WndNum]->pMdiTextEdit->iCharCode= 195 195 (int)SendDlgItemMessage(hwnd,IDC_LIST_CHARCODE,LB_GETCURSEL,0,0); 196 196 197 197 //改行コードを取得 198 MdiInfo[WndNum] .pMdiTextEdit->iLfCode=198 MdiInfo[WndNum]->pMdiTextEdit->iLfCode= 199 199 (int)SendDlgItemMessage(hwnd,IDC_LIST_LFCODE,LB_GETCURSEL,0,0); 200 200 -
trunk/ab5.0/abdev/abdev/rebar.cpp
r475 r629 182 182 ResetState_DocMenu(); 183 183 184 ResizeOwnerWnd();184 ActiveBasic::IDE::Program::mainFrame.Resized(); 185 185 } 186 186 return; -
trunk/ab5.0/abdev/abdev/src/MainFrame.cpp
r625 r629 8 8 void ResetTextEditFont(HWND hwnd); 9 9 10 void MainFrame::Resized() 11 { 12 int width_owner,height_owner; 13 int height_Rebar; 14 int height_MdiClient; 15 RECT rect,StatusRect,RebarRect; 16 17 this->GetClientRect( &rect ); 18 width_owner=rect.right; 19 height_owner=rect.bottom; 20 21 //Rebar 22 SendMessage(pobj_Rebar->hRebar,WM_SIZE,0,MAKELONG(width_owner,height_owner)); 23 ::UpdateWindow(pobj_Rebar->hRebar); 24 25 //Status bar 26 #define STATUSBAR_PARTS_NUM 5 27 int sb_size[STATUSBAR_PARTS_NUM]; 28 sb_size[0]=width_owner-340; 29 sb_size[1]=width_owner-220; 30 sb_size[2]=width_owner-120; 31 sb_size[3]=width_owner-50; 32 sb_size[4]=width_owner; 33 extern HWND hStatusBar; 34 ::SendMessage(hStatusBar,SB_SETPARTS,STATUSBAR_PARTS_NUM,(LPARAM)sb_size); 35 ::SendMessage(hStatusBar,WM_SIZE,0,MAKELONG(width_owner,height_owner)); 36 ::UpdateWindow(hStatusBar); 37 38 //Status bar 39 int height_Statusbar; 40 SendMessage(hStatusBar,SB_GETRECT,0,(long)&StatusRect); 41 height_Statusbar=StatusRect.bottom; 42 43 ::GetWindowRect(pobj_Rebar->hRebar,&RebarRect); 44 height_Rebar=RebarRect.bottom-RebarRect.top+2; 45 46 int height_dv; //Width of Debugger View 47 int height_cv; //Width of Compiler View 48 height_dv=0; 49 height_cv=0; 50 #ifndef THETEXT 51 extern BOOL bClipCompileView; 52 if(bClipCompileView){ 53 if(pobj_Debugger->IsDebuggerView()){ 54 //デバッガビューが表示されているとき 55 height_dv=pobj_nv->height_ClipDebuggerView+LEVER_THICK; 56 } 57 58 extern HWND hCompileView; 59 if(hCompileView){ 60 //コンパイラビューが表示されているとき 61 height_cv=pobj_nv->height_ClipCompileView+LEVER_THICK; 62 } 63 } 64 #endif 65 66 int width_pjv=0; //Width of Project View 67 if(pobj_nv->bClipProjectView){ 68 extern HWND hProjectView; 69 if(::IsWindowVisible(hProjectView)){ 70 //プロジェクトビューが表示されているとき 71 width_pjv=pobj_nv->width_ClipProjectView+LEVER_THICK; 72 } 73 } 74 75 int width_SideWeb=0; 76 if( pobj_SideWeb ) 77 { 78 if(pobj_SideWeb->bShow){ 79 width_SideWeb=pobj_nv->width_WebSearchView+LEVER_THICK; 80 } 81 } 82 83 //MDIクライアントの高さ 84 height_MdiClient=height_owner-( 85 height_Rebar+ 86 height_dv+ 87 height_cv+ 88 height_Statusbar 89 ); 90 91 //タブコントロール 92 int tab_height; 93 if(TabCtrl_GetItemCount(pobj_MainTab->hTab)==0) tab_height=0; 94 else{ 95 RECT rc; 96 TabCtrl_GetItemRect(pobj_MainTab->hTab,0,&rc); 97 tab_height=rc.bottom-rc.top; 98 } 99 ::MoveWindow(pobj_MainTab->hTab, 100 width_pjv, 101 height_Rebar, 102 width_owner-width_pjv-width_SideWeb, 103 tab_height, 104 1); 105 106 //MDIクライアント 107 ::MoveWindow( 108 hClient, 109 width_pjv, 110 height_Rebar+tab_height, 111 width_owner-width_pjv-width_SideWeb, 112 height_MdiClient-tab_height, 113 1 114 ); 115 116 if( pobj_SideWeb ) 117 { 118 if(pobj_SideWeb->bShow){ 119 //SideWeb 120 pobj_SideWeb->resize( 121 width_owner - pobj_nv->width_WebSearchView, 122 height_Rebar, 123 pobj_nv->width_WebSearchView, 124 height_MdiClient); 125 } 126 else pobj_SideWeb->resize(0,0,0,0); 127 } 128 129 if(width_pjv){ 130 //プロジェクトビュー 131 extern HWND hProjectView; 132 ::MoveWindow(hProjectView, 133 0, 134 height_Rebar, 135 pobj_nv->width_ClipProjectView, 136 height_MdiClient, 137 1); 138 ::InvalidateRect(hProjectView,NULL,0); 139 } 140 141 if(height_dv){ 142 #ifndef THETEXT 143 //デバッガビュー 144 pobj_Debugger->resize( 145 0, 146 height_Rebar+height_MdiClient+LEVER_THICK, 147 width_owner, 148 pobj_nv->height_ClipDebuggerView); 149 #endif 150 } 151 if(height_cv){ 152 //コンパイラビュー 153 extern HWND hCompileView; 154 ::MoveWindow(hCompileView, 155 0, 156 height_Rebar+height_MdiClient+height_dv+LEVER_THICK, 157 width_owner, 158 pobj_nv->height_ClipCompileView, 159 1); 160 } 161 } 162 10 163 void MainFrame::OpenWebBrowser( const std::string &url ) 11 164 { … … 27 180 28 181 // MDIベースを作成 29 mdiWindow = new MdiWindow(); 30 mdiWindow->Create( 31 m_hWnd, 32 rect, 33 NULL, 34 WS_CHILD 35 ); 36 wam.AddMdiWindow( mdiWindow ); 182 // フレームウィンドウのビューウィンドウを作成 183 int indexOfWindowSubMenu = pobj_MainMenu->FindSubMenuIndex( "ウィンドウ(&W)" ); 184 HMENU hWindowSubMenu = NULL; 185 if( indexOfWindowSubMenu != -1 ) 186 { 187 hWindowSubMenu = GetSubMenu( pobj_MainMenu->hMenu, indexOfWindowSubMenu ); 188 } 189 CreateMDIClient( hWindowSubMenu ); 190 wam.AddMdiClientWindow( m_hWndClient ); 191 192 // TODO: hClientを廃止し、m_hWndClientに統一すること 193 extern HWND hClient; 194 hClient = m_hWndClient; 195 196 // メッセージループにメッセージフィルタとアイドルハンドラを追加 197 CMessageLoop* pLoop = Program::_Module.GetMessageLoop(); 198 pLoop->AddMessageFilter(this); 199 pLoop->AddIdleHandler(this); 37 200 38 201 … … 58 221 void MainFrame::OnSize(UINT nType, CSize size) 59 222 { 60 //mdiWindow->MoveWindow( 0, 0, size.cx, size.cy);223 this->Resized(); 61 224 } 62 225 … … 147 310 void MainFrame::OnDestroy() 148 311 { 149 mdiWindow->DestroyWindow();150 delete mdiWindow;151 152 312 ::PostQuitMessage( 0 ); 153 313 } … … 257 417 //レバーオブジェクトが存在するとき 258 418 if(pnmh->hwndFrom==pobj_Rebar->hRebar&&pnmh->code==RBN_HEIGHTCHANGE){ 259 ResizeOwnerWnd();419 this->Resized(); 260 420 return 0; 261 421 } … … 316 476 mii.dwTypeData=temporary; 317 477 mii.fType=MFT_STRING; 318 if(!MdiInfo[WndNum] .path.empty()){319 _splitpath(MdiInfo[WndNum] .path.c_str(),NULL,NULL,temporary,temp2);478 if(!MdiInfo[WndNum]->path.empty()){ 479 _splitpath(MdiInfo[WndNum]->path.c_str(),NULL,NULL,temporary,temp2); 320 480 lstrcat(temporary,temp2); 321 481 lstrcat(temporary," を保存(&S)"); … … 329 489 /*「絶対パスをコピー」「フォルダを開く」「ファイルを削除」 330 490 コマンドを場合によって無効化にする */ 331 if(!MdiInfo[WndNum] .path.empty()){491 if(!MdiInfo[WndNum]->path.empty()){ 332 492 EnableMenuItem(hTabMenu,IDM_PATH_COPY,MF_BYCOMMAND|MF_ENABLED); 333 493 EnableMenuItem(hTabMenu,IDM_FOLDER_OPEN,MF_BYCOMMAND|MF_ENABLED); … … 364 524 } 365 525 DragFinish(hDropInfo); 526 } 527 528 void MainFrame::OnPaint( HDC dummy ) 529 { 530 PAINTSTRUCT ps; 531 HDC hdc = this->BeginPaint( &ps ); 532 533 HBRUSH hBrush = CreateSolidBrush( GetSysColor( COLOR_3DFACE ) ); 534 535 RECT rect; 536 this->GetClientRect( &rect ); 537 538 FillRect( hdc, &rect, hBrush ); 539 540 DeleteObject( hBrush ); 541 542 this->EndPaint( &ps ); 366 543 } 367 544 … … 382 559 while(hChild){ 383 560 WndNum=GetWndNum(hChild); 384 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){385 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),temporary)==0) break;561 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 562 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),temporary)==0) break; 386 563 } 387 564 hChild=::GetNextWindow(hChild,GW_HWNDNEXT); … … 398 575 ::UpdateWindow(hChild); 399 576 400 char *pTemp=MdiInfo[WndNum] .pMdiTextEdit->buffer;577 char *pTemp=MdiInfo[WndNum]->pMdiTextEdit->buffer; 401 578 402 579 //行の先頭インデックスを取得(取得する行の番号はwParamで渡される) … … 549 726 { 550 727 for( int i=0;i<MdiInfo.size();i++){ 551 if(MdiInfo[i] .hwnd) SaveDocument(MdiInfo[i].hwnd,NULL);728 if(MdiInfo[i]->hwnd) SaveDocument(MdiInfo[i]->hwnd,NULL); 552 729 } 553 730 if( projectInfo.IsOpened() ) … … 585 762 if(!hChild) return; 586 763 int WndNum=GetWndNum(hChild); 587 if( IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType) )764 if( IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType) ) 588 765 { 589 766 TextEdit_UndoCommand(WndNum); 590 767 } 591 else if( MdiInfo[WndNum] .DocType == WNDTYPE_RAD )768 else if( MdiInfo[WndNum]->DocType == WNDTYPE_RAD ) 592 769 { 593 770 Rad_UndoCommand(WndNum); 594 771 } 595 else if( MdiInfo[WndNum] .DocType == WNDTYPE_ICONEDIT )772 else if( MdiInfo[WndNum]->DocType == WNDTYPE_ICONEDIT ) 596 773 { 597 774 IconEdit_UndoCommand(WndNum); … … 604 781 if(!hChild) return; 605 782 int WndNum=GetWndNum(hChild); 606 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType))783 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)) 607 784 TextEdit_RedoCommand(WndNum); 608 else if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD)785 else if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD) 609 786 Rad_RedoCommand(WndNum); 610 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT)787 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT) 611 788 IconEdit_RedoCommand(WndNum); 612 789 } … … 616 793 HWND hChild=::GetWindow(hClient,GW_CHILD); 617 794 int WndNum=GetWndNum(hChild); 618 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){795 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 619 796 HWND hEdit=::GetWindow(hChild,GW_CHILD); 620 797 … … 624 801 HGLOBAL hGlobal=(char *)GlobalAlloc(GMEM_MOVEABLE,CharRange.cpMax-CharRange.cpMin+1); 625 802 char *pTemp=(char *)GlobalLock(hGlobal); 626 memcpy(pTemp,MdiInfo[WndNum] .pMdiTextEdit->buffer+CharRange.cpMin,CharRange.cpMax-CharRange.cpMin);803 memcpy(pTemp,MdiInfo[WndNum]->pMdiTextEdit->buffer+CharRange.cpMin,CharRange.cpMax-CharRange.cpMin); 627 804 pTemp[CharRange.cpMax-CharRange.cpMin]=0; 628 805 GlobalUnlock(hGlobal); … … 637 814 SendMessage(hEdit,WM_KEYDOWN,VK_DELETE,0); 638 815 } 639 else if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD){640 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum] .path);641 int indexOfWndInfo = GetWndInfoNum(MdiInfo[WndNum] .path);816 else if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD){ 817 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum]->path); 818 int indexOfWndInfo = GetWndInfoNum(MdiInfo[WndNum]->path); 642 819 643 820 //クリップボードに格納するためのデータを用意する 644 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->pos.x-=17;645 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->pos.y-=10;821 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->pos.x-=17; 822 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->pos.y-=10; 646 823 HGLOBAL hGlobal=Rad_GetChildInfoClipboardData(WndNum,indexOfWndInfo); 647 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->pos.x+=17;648 pWindowInfo->childWindowInfos[MdiInfo[WndNum] .MdiRadInfo->SelectingItem[0]]->pos.y+=10;824 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->pos.x+=17; 825 pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->pos.y+=10; 649 826 650 827 OpenClipboard(); … … 654 831 CloseClipboard(); 655 832 656 SendMessage(MdiInfo[WndNum] .MdiRadInfo->hRad,WM_COMMAND,IDM_RAD_ITEM_DELETE,0);657 } 658 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){833 SendMessage(MdiInfo[WndNum]->MdiRadInfo->hRad,WM_COMMAND,IDM_RAD_ITEM_DELETE,0); 834 } 835 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 659 836 //クリップボードに格納するためのデータを用意する 660 837 HGLOBAL hGlobal=IconEdit_GetChildInfoClipboardData(WndNum); … … 666 843 CloseClipboard(); 667 844 668 DeleteObject(MdiInfo[WndNum] .MdiIconEditInfo->hSelectingBmp);669 MdiInfo[WndNum] .MdiIconEditInfo->SelectLevel=0;670 671 IconEdit_EraseRect(WndNum,&MdiInfo[WndNum] .MdiIconEditInfo->DraggingRect);845 DeleteObject(MdiInfo[WndNum]->MdiIconEditInfo->hSelectingBmp); 846 MdiInfo[WndNum]->MdiIconEditInfo->SelectLevel=0; 847 848 IconEdit_EraseRect(WndNum,&MdiInfo[WndNum]->MdiIconEditInfo->DraggingRect); 672 849 } 673 850 } … … 677 854 HWND hChild=::GetWindow(hClient,GW_CHILD); 678 855 int WndNum=GetWndNum(hChild); 679 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){856 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 680 857 HWND hEdit = ::GetWindow(hChild,GW_CHILD); 681 858 … … 685 862 HGLOBAL hGlobal=(char *)GlobalAlloc(GMEM_MOVEABLE,CharRange.cpMax-CharRange.cpMin+1); 686 863 char *pTemp=(char *)GlobalLock(hGlobal); 687 memcpy(pTemp,MdiInfo[WndNum] .pMdiTextEdit->buffer+CharRange.cpMin,CharRange.cpMax-CharRange.cpMin);864 memcpy(pTemp,MdiInfo[WndNum]->pMdiTextEdit->buffer+CharRange.cpMin,CharRange.cpMax-CharRange.cpMin); 688 865 pTemp[CharRange.cpMax-CharRange.cpMin]=0; 689 866 GlobalUnlock(hGlobal); … … 695 872 CloseClipboard(); 696 873 } 697 else if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD){698 int indexOfWndInfo = GetWndInfoNum(MdiInfo[WndNum] .path);874 else if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD){ 875 int indexOfWndInfo = GetWndInfoNum(MdiInfo[WndNum]->path); 699 876 700 877 //クリップボードに格納するためのデータを用意する … … 707 884 CloseClipboard(); 708 885 } 709 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){886 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 710 887 //クリップボードに格納するためのデータを用意する 711 888 HGLOBAL hGlobal=IconEdit_GetChildInfoClipboardData(WndNum); … … 722 899 HWND hChild=::GetWindow(hClient,GW_CHILD); 723 900 int WndNum=GetWndNum(hChild); 724 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){901 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 725 902 HWND hEdit=::GetWindow(hChild,GW_CHILD); 726 903 … … 762 939 ResetCaretPos(WndNum); 763 940 } 764 else if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD){941 else if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD){ 765 942 OpenClipboard(); 766 943 extern DWORD dwRadClipboardID; … … 773 950 CloseClipboard(); 774 951 } 775 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){952 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 776 953 OpenClipboard(); 777 954 HGLOBAL hGlobal=GetClipboardData(CF_BITMAP); … … 789 966 HWND hChild=::GetWindow(hClient,GW_CHILD); 790 967 int WndNum=GetWndNum(hChild); 791 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){968 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 792 969 HWND hEdit=::GetWindow(hChild,GW_CHILD); 793 970 TextEdit_ReplaceUpdateUndoData(WndNum,"",0,1); 794 971 } 795 else if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD)796 SendMessage(MdiInfo[WndNum] .MdiRadInfo->hRad,WM_COMMAND,IDM_RAD_ITEM_DELETE,0);972 else if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD) 973 SendMessage(MdiInfo[WndNum]->MdiRadInfo->hRad,WM_COMMAND,IDM_RAD_ITEM_DELETE,0); 797 974 } 798 975 … … 801 978 HWND hChild=::GetWindow(hClient,GW_CHILD); 802 979 int WndNum=GetWndNum(hChild); 803 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){980 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 804 981 HWND hEdit=::GetWindow(hChild,GW_CHILD); 805 982 806 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.x=0;807 MdiInfo[WndNum] .pMdiTextEdit->StartCaretPos.y=0;983 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x=0; 984 MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y=0; 808 985 809 986 GetCaretPosFromBufferIndex( 810 MdiInfo[WndNum] .pMdiTextEdit->buffer,811 lstrlen(MdiInfo[WndNum] .pMdiTextEdit->buffer),812 &MdiInfo[WndNum] .pMdiTextEdit->EndCaretPos);987 MdiInfo[WndNum]->pMdiTextEdit->buffer, 988 lstrlen(MdiInfo[WndNum]->pMdiTextEdit->buffer), 989 &MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos); 813 990 814 991 ::InvalidateRect(hEdit,NULL,0); … … 816 993 ResetState_EditMenu(); 817 994 } 818 else if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD){819 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum] .path);995 else if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD){ 996 ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum]->path); 820 997 for( int i3=0; i3<static_cast<int>(pWindowInfo->childWindowInfos.size()); i3++ ) 821 998 { 822 MdiInfo[WndNum] .MdiRadInfo->SelectingItem[i3] = i3;999 MdiInfo[WndNum]->MdiRadInfo->SelectingItem[i3] = i3; 823 1000 } 824 1001 DrawRadWindow(WndNum,pWindowInfo); … … 880 1057 881 1058 //再配置 882 ResizeOwnerWnd();1059 this->Resized(); 883 1060 884 1061 ::ShowWindow(hClient,SW_SHOW); … … 991 1168 //単独ソースコード 992 1169 if(!SetRunning(hChild)) return; 993 if(IsNeedCompile(MdiInfo[GetWndNum(hChild)] .path,1))994 sprintf(temporary,"\"%s\" /debug /run /wnd:%08x",MdiInfo[GetWndNum(hChild)] .path.c_str(),m_hWnd);1170 if(IsNeedCompile(MdiInfo[GetWndNum(hChild)]->path,1)) 1171 sprintf(temporary,"\"%s\" /debug /run /wnd:%08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd); 995 1172 else 996 sprintf(temporary,"\"%s\" /run /wnd:%08x",MdiInfo[GetWndNum(hChild)] .path.c_str(),m_hWnd);1173 sprintf(temporary,"\"%s\" /run /wnd:%08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd); 997 1174 998 1175 //ブレークポイントをセーブ … … 1057 1234 //単独ソースコード 1058 1235 if(!SetRunning(hChild)) return; 1059 sprintf(temporary,"\"%s\" /debug /wnd:%08x",MdiInfo[GetWndNum(hChild)] .path.c_str(),m_hWnd);1236 sprintf(temporary,"\"%s\" /debug /wnd:%08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd); 1060 1237 } 1061 1238 … … 1171 1348 //単独ソースコード 1172 1349 if(!SetRunning(hChild)) return; 1173 sprintf(temporary,"\"%s\" /wnd:%08x",MdiInfo[GetWndNum(hChild)] .path.c_str(),m_hWnd);1350 sprintf(temporary,"\"%s\" /wnd:%08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd); 1174 1351 } 1175 1352 … … 1226 1403 if(!SetRunning(hChild)) return; 1227 1404 1228 if(IsNeedCompile(MdiInfo[GetWndNum(hChild)] .path,0))1405 if(IsNeedCompile(MdiInfo[GetWndNum(hChild)]->path,0)) 1229 1406 SendMessage(WM_COMMAND,IDM_RELEASECOMPILE,0);*/ 1230 1407 1231 1408 //単独ソースコード 1232 _splitpath(MdiInfo[GetWndNum(hChild)] .path.c_str(),temporary,temp2,temp3,NULL);1409 _splitpath(MdiInfo[GetWndNum(hChild)]->path.c_str(),temporary,temp2,temp3,NULL); 1233 1410 lstrcat(temporary,temp2); 1234 1411 lstrcat(temporary,temp3); … … 1411 1588 for(int i=0;i<MdiInfo.size();i++){ 1412 1589 if(i==WndNum) continue; 1413 if(MdiInfo[i] .hwnd) SendMessage(MdiInfo[i].hwnd,WM_CLOSE,0,0);1590 if(MdiInfo[i]->hwnd) SendMessage(MdiInfo[i]->hwnd,WM_CLOSE,0,0); 1414 1591 } 1415 1592 } … … 1421 1598 1422 1599 //絶対パスをコピー 1423 HGLOBAL hGlobal=(char *)GlobalAlloc(GMEM_MOVEABLE,MdiInfo[WndNum] .path.size()+1);1600 HGLOBAL hGlobal=(char *)GlobalAlloc(GMEM_MOVEABLE,MdiInfo[WndNum]->path.size()+1); 1424 1601 char *pTemp=(char *)GlobalLock(hGlobal); 1425 lstrcpy(pTemp,MdiInfo[WndNum] .path.c_str());1602 lstrcpy(pTemp,MdiInfo[WndNum]->path.c_str()); 1426 1603 GlobalUnlock(hGlobal); 1427 1604 … … 1439 1616 1440 1617 char temporary[1024], temp2[1024]; 1441 _splitpath(MdiInfo[WndNum] .path.c_str(),temporary,temp2,NULL,NULL);1618 _splitpath(MdiInfo[WndNum]->path.c_str(),temporary,temp2,NULL,NULL); 1442 1619 lstrcat(temporary,temp2); 1443 1620 … … 1451 1628 1452 1629 char temporary[1024], temp2[1024]; 1453 _splitpath(MdiInfo[WndNum] .path.c_str(),NULL,NULL,temporary,temp2);1630 _splitpath(MdiInfo[WndNum]->path.c_str(),NULL,NULL,temporary,temp2); 1454 1631 lstrcat(temporary,temp2); 1455 1632 … … 1461 1638 fo.hwnd=m_hWnd; 1462 1639 fo.wFunc=FO_DELETE; 1463 fo.pFrom =MdiInfo[WndNum] .path.c_str();1640 fo.pFrom =MdiInfo[WndNum]->path.c_str(); 1464 1641 fo.pTo="\0"; 1465 1642 fo.fFlags =FOF_ALLOWUNDO|FOF_NOCONFIRMATION; … … 1467 1644 1468 1645 //閉じる 1469 MdiInfo[WndNum] .pMdiTextEdit->UnModify();1470 SendMessage(MdiInfo[WndNum] .hwnd,WM_CLOSE,0,0);1646 MdiInfo[WndNum]->pMdiTextEdit->UnModify(); 1647 SendMessage(MdiInfo[WndNum]->hwnd,WM_CLOSE,0,0); 1471 1648 } 1472 1649 -
trunk/ab5.0/abdev/abdev/src/Program.cpp
r489 r629 6 6 CAppModule Program::_Module; 7 7 8 MainFrame Program::mainFrame;8 MainFrame ActiveBasic::IDE::Program::mainFrame; 9 9 10 10 #include "../Common.h" -
trunk/ab5.0/abdev/abdev/src/ProjectManager/ProjectManager.cpp
r625 r629 279 279 while(hChild){ 280 280 WndNum=GetWndNum(hChild); 281 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){282 if( MdiInfo[WndNum] .pMdiTextEdit->IsModified() ){281 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 282 if( MdiInfo[WndNum]->pMdiTextEdit->IsModified() ){ 283 283 for(i=0;i<this->pobj_DBFileInfo->iNum;i++){ 284 284 this->pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 285 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),temporary)==0){285 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),temporary)==0){ 286 286 SaveDocument(hChild,NULL); 287 287 break; … … 290 290 } 291 291 } 292 if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){293 if(MdiInfo[WndNum] .MdiIconEditInfo->bModify){292 if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 293 if(MdiInfo[WndNum]->MdiIconEditInfo->bModify){ 294 294 BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, resourceManager.iconResources ) 295 295 { 296 296 lstrcpy(temporary,resourceItem.filepath.c_str()); 297 297 lstrcpy( temporary, this->GetWorkDir().GetFullPath( temporary ).c_str() ); 298 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),temporary)==0){298 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),temporary)==0){ 299 299 SaveDocument(hChild,NULL); 300 300 break; … … 548 548 hChild=GetNextWindow(hChild,GW_HWNDNEXT); 549 549 WndNum=GetWndNum(hCloseChild); 550 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum] .DocType)){550 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum]->DocType)){ 551 551 for(i=0;i<this->pobj_DBFileInfo->iNum;i++){ 552 552 this->pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 553 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),temporary)==0){553 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),temporary)==0){ 554 554 555 555 //変更フラグをオフにする 556 MdiInfo[WndNum] .pMdiTextEdit->UnModify();556 MdiInfo[WndNum]->pMdiTextEdit->UnModify(); 557 557 558 558 SendMessage(hCloseChild,WM_CLOSE,0,0); … … 561 561 } 562 562 } 563 else if(MdiInfo[WndNum] .DocType==WNDTYPE_RAD)563 else if(MdiInfo[WndNum]->DocType==WNDTYPE_RAD) 564 564 { 565 565 BOOST_FOREACH( const WindowInfo *pWindowInfo, windowInfos ) 566 566 { 567 if( pWindowInfo->GetName() == MdiInfo[WndNum] .path ){567 if( pWindowInfo->GetName() == MdiInfo[WndNum]->path ){ 568 568 SendMessage(hCloseChild,WM_CLOSE,0,0); 569 569 break; … … 571 571 } 572 572 } 573 else if(MdiInfo[WndNum] .DocType==WNDTYPE_MENU){573 else if(MdiInfo[WndNum]->DocType==WNDTYPE_MENU){ 574 574 for(i=0;i<this->NumberOfMenu;i++){ 575 if( MdiInfo[WndNum] .path == this->pMenuInfo[i].IdName )575 if( MdiInfo[WndNum]->path == this->pMenuInfo[i].IdName ) 576 576 { 577 577 SendMessage(hCloseChild,WM_CLOSE,0,0); … … 580 580 } 581 581 } 582 else if(MdiInfo[WndNum] .DocType==WNDTYPE_ICONEDIT){582 else if(MdiInfo[WndNum]->DocType==WNDTYPE_ICONEDIT){ 583 583 for(i=0;this->resourceManager.iconResources.size();i++){ 584 584 lstrcpy(temporary,this->resourceManager.iconResources[i].filepath.c_str()); 585 585 lstrcpy( temporary, this->GetWorkDir().GetFullPath( temporary ).c_str() ); 586 if(lstrcmpi(MdiInfo[WndNum] .path.c_str(),temporary)==0){586 if(lstrcmpi(MdiInfo[WndNum]->path.c_str(),temporary)==0){ 587 587 SendMessage(hCloseChild,WM_CLOSE,0,0); 588 588 break; -
trunk/ab5.0/abdev/abdev/src/WindowAreaManager.cpp
r489 r629 3 3 using namespace ActiveBasic::IDE; 4 4 5 void WindowAreaManager::AddMdi Window( WindowComponents::MdiWindow *mdiWindow)5 void WindowAreaManager::AddMdiClientWindow( HWND hMdiClientWnd ) 6 6 { 7 this->mdiWindow = mdiWindow; 8 windowCollections.push_back( WindowCollection( mdiWindow ) ); 7 windowCollections.push_back( WindowCollection( hMdiClientWnd ) ); 9 8 } -
trunk/ab5.0/abdev/abdev/src/WindowComponents/MdiWindow.cpp
r489 r629 1 #include "stdafx.h"2 3 #include "../../common.h"4 5 using namespace ActiveBasic::IDE::WindowComponents;6 7 LRESULT MdiWindow::OnCreate(LPCREATESTRUCT lpcs){8 // フレームウィンドウのビューウィンドウを作成9 CreateMDIClient();10 11 // メッセージループにメッセージフィルタとアイドルハンドラを追加12 CMessageLoop* pLoop = Program::_Module.GetMessageLoop();13 pLoop->AddMessageFilter(this);14 pLoop->AddIdleHandler(this);15 16 return 0;17 } -
trunk/ab5.0/abdev/res/resource.h
r625 r629 609 609 #define ID_COMMU_FORUM8 40193 610 610 #define IDM_CODEFORMAT 40194 611 #define ID_40195 40195 612 #define ID_40196 40196 613 #define IDM_CLOSEALLWINDOW 40197 614 #define IDM_CLOSE_ALL_WINDOW 40198 611 615 612 616 // Next default values for new objects … … 615 619 #ifndef APSTUDIO_READONLY_SYMBOLS 616 620 #define _APS_NEXT_RESOURCE_VALUE 311 617 #define _APS_NEXT_COMMAND_VALUE 4019 5621 #define _APS_NEXT_COMMAND_VALUE 40199 618 622 #define _APS_NEXT_CONTROL_VALUE 1497 619 623 #define _APS_NEXT_SYMED_VALUE 101
Note:
See TracChangeset
for help on using the changeset viewer.