Changeset 618 in dev for trunk/ab5.0/abdev
- Timestamp:
- May 19, 2008, 5:10:15 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/abdev
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/CFileInfo.cpp
r475 r618 13 13 void CFileInfo::GetFullPath(char *buffer){ 14 14 lstrcpy(buffer,m_path); 15 ::GetFullPath(buffer, ProjectInfo.dir);15 ::GetFullPath(buffer,projectInfo.dir); 16 16 } 17 17 -
trunk/ab5.0/abdev/abdev/ClassTree.cpp
r613 r618 199 199 void CClassTreeView::InsertRootFolder(void){ 200 200 char temporary[VN_SIZE]; 201 sprintf(temporary,"%s クラス", ProjectInfo.name);201 sprintf(temporary,"%s クラス",projectInfo.name); 202 202 hRootFolder=insert( 203 203 TVI_ROOT, … … 549 549 LockWindowUpdate(hProcedureTreeView); 550 550 551 if( ProjectInfo.name[0]){551 if(projectInfo.name[0]){ 552 552 // プロジェクトが開かれているとき 553 553 if(iFileNum==-1){ 554 554 //プロジェクトのすべてのファイルを解析 555 for(i=0;i< ProjectInfo.pobj_DBFileInfo->iNum;i++){556 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary);555 for(i=0;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 556 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 557 557 558 558 SetClassTreeFromOneFile(temporary,i); … … 567 567 ///////////////////////////////// 568 568 569 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[iFileNum]->GetFullPath(temporary);569 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[iFileNum]->GetFullPath(temporary); 570 570 571 571 SetClassTreeFromOneFile(temporary,iFileNum); -
trunk/ab5.0/abdev/abdev/Debugger.cpp
r475 r618 38 38 hChild=GetWindow(hClient,GW_CHILD); 39 39 40 if( ProjectInfo.name[0]){40 if(projectInfo.name[0]){ 41 41 //有効(プロジェクトを開いているとき) 42 42 bEnableDocument=1; -
trunk/ab5.0/abdev/abdev/DialogBoxes.cpp
r613 r618 641 641 SetFocus(GetDlgItem(hwnd,IDC_FILETYPELIST)); 642 642 643 if( ProjectInfo.name[0]){643 if(projectInfo.name[0]){ 644 644 SendDlgItemMessage(hwnd,IDC_ADDTOPROJECT,BM_SETCHECK,BST_CHECKED,0); 645 645 } … … 729 729 } 730 730 } 731 if(i!=ListView_GetItemCount(hListView)&& ProjectInfo.name[0]&&(731 if(i!=ListView_GetItemCount(hListView)&&projectInfo.name[0]&&( 732 732 lvItem.lParam==FT_BASICPROGRAM|| 733 733 lvItem.lParam==FT_SUBPROGRAM … … 764 764 765 765 void SaveSetting_DlgPjOption(void){ 766 extern PROJECTINFO ProjectInfo;767 766 if(SetSwitch[0]){ 768 767 //出力ファイル 769 lstrcpy( ProjectInfo.lpszOutput_Release,temp_lpszOutputRelease);770 lstrcpy( ProjectInfo.lpszOutput_Debug,temp_lpszOutputDebug);768 lstrcpy(projectInfo.lpszOutput_Release,temp_lpszOutputRelease); 769 lstrcpy(projectInfo.lpszOutput_Debug,temp_lpszOutputDebug); 771 770 772 771 //コメントの有無 773 ProjectInfo.dwOption=temp_dwPjOption;772 projectInfo.dwOption=temp_dwPjOption; 774 773 } 775 774 if(SetSwitch[1]){ 776 775 //Win32API 777 ProjectInfo.dwOption=temp_dwPjOption;776 projectInfo.dwOption=temp_dwPjOption; 778 777 } 779 778 if(SetSwitch[2]){ … … 781 780 782 781 //パス 783 lstrcpy( ProjectInfo.szManifestPath,temp_szManifestPath);784 785 ProjectInfo.dwOption=temp_dwPjOption;786 787 ProjectInfo.ModifuOfResource=1;782 lstrcpy(projectInfo.szManifestPath,temp_szManifestPath); 783 784 projectInfo.dwOption=temp_dwPjOption; 785 786 projectInfo.ModifuOfResource=1; 788 787 } 789 788 if(SetSwitch[3]){ … … 791 790 792 791 //コマンドライン 793 lstrcpy( ProjectInfo.szCmdLine,temp_szDebugCmdLine);792 lstrcpy(projectInfo.szCmdLine,temp_szDebugCmdLine); 794 793 795 794 //デバッグセッション用の実行可能ファイル 796 lstrcpy( ProjectInfo.szExePath,temp_szDebugExePath);797 } 798 799 ProjectInfo.modify=1;795 lstrcpy(projectInfo.szExePath,temp_szDebugExePath); 796 } 797 798 projectInfo.modify=1; 800 799 } 801 800 BOOL CALLBACK DlgProjectOption_Whole(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){ … … 809 808 810 809 //出力ファイル 811 SetDlgItemText(hwnd,IDC_EDIT_RELEASE, ProjectInfo.lpszOutput_Release);812 SetDlgItemText(hwnd,IDC_EDIT_DEBUG, ProjectInfo.lpszOutput_Debug);810 SetDlgItemText(hwnd,IDC_EDIT_RELEASE,projectInfo.lpszOutput_Release); 811 SetDlgItemText(hwnd,IDC_EDIT_DEBUG,projectInfo.lpszOutput_Debug); 813 812 814 813 //Unicode … … 878 877 879 878 //パス 880 SetDlgItemText(hwnd,IDC_PATH, ProjectInfo.szManifestPath);879 SetDlgItemText(hwnd,IDC_PATH,projectInfo.szManifestPath); 881 880 882 881 //マニフェストをリソースに埋め込む … … 928 927 SetSwitch[3]=1; 929 928 930 if( ProjectInfo.dwModuleType!=MT_DLL){929 if(projectInfo.dwModuleType!=MT_DLL){ 931 930 EnableWindow(GetDlgItem(hwnd,IDC_EXE_PATH),0); 932 931 EnableWindow(GetDlgItem(hwnd,IDC_DIR),0); 933 932 } 934 933 935 SetDlgItemText(hwnd,IDC_CMD_LINE, ProjectInfo.szCmdLine);936 SetDlgItemText(hwnd,IDC_EXE_PATH, ProjectInfo.szExePath);934 SetDlgItemText(hwnd,IDC_CMD_LINE,projectInfo.szCmdLine); 935 SetDlgItemText(hwnd,IDC_EXE_PATH,projectInfo.szExePath); 937 936 938 937 break; … … 996 995 hpsp[i]=CreatePropertySheetPage(&psp[i]); 997 996 998 temp_dwPjOption= ProjectInfo.dwOption;997 temp_dwPjOption=projectInfo.dwOption; 999 998 1000 999 memset(&psh,0,sizeof(PROPSHEETHEADER)); -
trunk/ab5.0/abdev/abdev/DocumentAdvice.cpp
r613 r618 256 256 //参照ディレクトリ 257 257 char *pDefaultDir; 258 if( ProjectInfo.name[0])259 pDefaultDir= ProjectInfo.dir;258 if(projectInfo.name[0]) 259 pDefaultDir=projectInfo.dir; 260 260 else pDefaultDir=pj_editor_Dir; 261 261 -
trunk/ab5.0/abdev/abdev/DrawBuffer.cpp
r475 r618 191 191 //ブレークポイントの描画を準備 192 192 CFileBreakPoint *pobj_FileBreakPoint=0; 193 if( ProjectInfo.name[0]){193 if(projectInfo.name[0]){ 194 194 pobj_FileBreakPoint= 195 ProjectInfo.pobj_DBBreakPoint->EnumLines(MdiInfo[m_WndNum].path);195 projectInfo.pobj_DBBreakPoint->EnumLines(MdiInfo[m_WndNum].path); 196 196 } 197 197 else{ -
trunk/ab5.0/abdev/abdev/DrawWindow.cpp
r616 r618 991 991 else if(pWindowInfo->bgColor>=0x1000){ 992 992 //ビットマップ 993 for(i2=0;i2< ProjectInfo.res.NumberOfBitmapRes;i2++){994 if(lstrcmp( ProjectInfo.res.pBitmapResInfo[pWindowInfo->bgColor-0x1000].IdName,995 ProjectInfo.res.pBitmapResInfo[i2].IdName)==0) break;996 } 997 if(i2!= ProjectInfo.res.NumberOfBitmapRes){998 lstrcpy(temporary, ProjectInfo.res.pBitmapResInfo[i2].path);999 GetFullPath(temporary, ProjectInfo.dir);993 for(i2=0;i2<projectInfo.res.NumberOfBitmapRes;i2++){ 994 if(lstrcmp(projectInfo.res.pBitmapResInfo[pWindowInfo->bgColor-0x1000].IdName, 995 projectInfo.res.pBitmapResInfo[i2].IdName)==0) break; 996 } 997 if(i2!=projectInfo.res.NumberOfBitmapRes){ 998 lstrcpy(temporary,projectInfo.res.pBitmapResInfo[i2].path); 999 GetFullPath(temporary,projectInfo.dir); 1000 1000 hImage=LoadImage(NULL,temporary,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE); 1001 1001 … … 1358 1358 lstrcpy(temporary,pChildInfo->ImageCtrlInfo.path); 1359 1359 else{ 1360 for(i2=0;i2< ProjectInfo.res.NumberOfIconRes;i2++){1360 for(i2=0;i2<projectInfo.res.NumberOfIconRes;i2++){ 1361 1361 if(lstrcmp(pChildInfo->ImageCtrlInfo.path, 1362 ProjectInfo.res.pIconResInfo[i2].IdName)==0) break;1362 projectInfo.res.pIconResInfo[i2].IdName)==0) break; 1363 1363 } 1364 if(i2== ProjectInfo.res.NumberOfIconRes) goto NonIconImage;1365 1366 lstrcpy(temporary, ProjectInfo.res.pIconResInfo[i2].path);1367 } 1368 GetFullPath(temporary, ProjectInfo.dir);1364 if(i2==projectInfo.res.NumberOfIconRes) goto NonIconImage; 1365 1366 lstrcpy(temporary,projectInfo.res.pIconResInfo[i2].path); 1367 } 1368 GetFullPath(temporary,projectInfo.dir); 1369 1369 hImage=LoadImage(NULL,temporary,IMAGE_ICON,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE); 1370 1370 if(hImage){ … … 1402 1402 lstrcpy(temporary,pChildInfo->ImageCtrlInfo.path); 1403 1403 else{ 1404 for(i2=0;i2< ProjectInfo.res.NumberOfBitmapRes;i2++){1404 for(i2=0;i2<projectInfo.res.NumberOfBitmapRes;i2++){ 1405 1405 if(lstrcmp(pChildInfo->ImageCtrlInfo.path, 1406 ProjectInfo.res.pBitmapResInfo[i2].IdName)==0) break;1406 projectInfo.res.pBitmapResInfo[i2].IdName)==0) break; 1407 1407 } 1408 if(i2== ProjectInfo.res.NumberOfBitmapRes) goto NonBitmapImage;1409 1410 lstrcpy(temporary, ProjectInfo.res.pBitmapResInfo[i2].path);1411 } 1412 GetFullPath(temporary, ProjectInfo.dir);1408 if(i2==projectInfo.res.NumberOfBitmapRes) goto NonBitmapImage; 1409 1410 lstrcpy(temporary,projectInfo.res.pBitmapResInfo[i2].path); 1411 } 1412 GetFullPath(temporary,projectInfo.dir); 1413 1413 hImage=LoadImage(NULL,temporary,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE); 1414 1414 if(hImage){ -
trunk/ab5.0/abdev/abdev/FileOperation.cpp
r613 r618 347 347 //////////////////////////////////// 348 348 349 if( ProjectInfo.ModifyOfMaterial){350 sprintf(temporary,"%s%s.wnd", ProjectInfo.dir,ProjectInfo.name);351 SaveWindowFile( temporary, ProjectInfo.windowInfos );349 if(projectInfo.ModifyOfMaterial){ 350 sprintf(temporary,"%s%s.wnd",projectInfo.dir,projectInfo.name); 351 SaveWindowFile( temporary, projectInfo.windowInfos ); 352 352 353 353 //.wbpファイルを生成 -
trunk/ab5.0/abdev/abdev/FileTree.cpp
r613 r618 22 22 23 23 char *path; 24 path= ProjectInfo.pobj_DBFileInfo->GetPath(hTreeItem);24 path=projectInfo.pobj_DBFileInfo->GetPath(hTreeItem); 25 25 26 26 //絶対パス、相対パスを表示 27 27 lstrcpy(temporary,path); 28 GetFullPath(temporary, ProjectInfo.dir);28 GetFullPath(temporary,projectInfo.dir); 29 29 SetDlgItemText(hwnd,IDC_USING_FILE,temporary); 30 30 SetDlgItemText(hwnd,IDC_DEFINED_FILE,path); … … 106 106 hTreeItem=TreeView_GetSelection(hwnd); 107 107 108 path= ProjectInfo.pobj_DBFileInfo->GetPath(hTreeItem);108 path=projectInfo.pobj_DBFileInfo->GetPath(hTreeItem); 109 109 if(!path) break; 110 110 111 111 lstrcpy(temporary,path); 112 GetFullPath(temporary, ProjectInfo.dir);112 GetFullPath(temporary,projectInfo.dir); 113 113 OpenFileWithExtension(temporary); 114 114 break; -
trunk/ab5.0/abdev/abdev/MenuProc.cpp
r613 r618 13 13 int GetMenuInfoNum(char *name){ 14 14 int i; 15 for(i=0;i< ProjectInfo.NumberOfMenu;i++){16 if(lstrcmpi(name, ProjectInfo.pMenuInfo[i].IdName)==0) return i;15 for(i=0;i<projectInfo.NumberOfMenu;i++){ 16 if(lstrcmpi(name,projectInfo.pMenuInfo[i].IdName)==0) return i; 17 17 } 18 18 return -1; … … 77 77 78 78 //重複チェック 79 for(i=0;i< ProjectInfo.NumberOfMenu;i++){80 if(lstrcmpi(NewIdName, ProjectInfo.pMenuInfo[i].IdName)==0){79 for(i=0;i<projectInfo.NumberOfMenu;i++){ 80 if(lstrcmpi(NewIdName,projectInfo.pMenuInfo[i].IdName)==0){ 81 81 //"\"%s\" メニューは既にプロジェクト内に存在します。" 82 sprintf(temporary,STRING_MENUEDIT_DUPLICATIONERROR, ProjectInfo.pMenuInfo[i].IdName);82 sprintf(temporary,STRING_MENUEDIT_DUPLICATIONERROR,projectInfo.pMenuInfo[i].IdName); 83 83 MessageBox(hOwner,temporary,STRING_ERROR,MB_OK|MB_ICONEXCLAMATION); 84 84 return; … … 86 86 } 87 87 88 ProjectInfo.pMenuInfo=(MENU_INFO *)HeapReAlloc(hHeap,0,ProjectInfo.pMenuInfo,(ProjectInfo.NumberOfMenu+1)*sizeof(MENU_INFO));89 MenuInfo=& ProjectInfo.pMenuInfo[ProjectInfo.NumberOfMenu];88 projectInfo.pMenuInfo=(MENU_INFO *)HeapReAlloc(hHeap,0,projectInfo.pMenuInfo,(projectInfo.NumberOfMenu+1)*sizeof(MENU_INFO)); 89 MenuInfo=&projectInfo.pMenuInfo[projectInfo.NumberOfMenu]; 90 90 91 91 MenuInfo->IdName=(char *)HeapAlloc(hHeap,0,lstrlen(NewIdName)+1); … … 107 107 tv.item.iImage=3; 108 108 tv.item.iSelectedImage=3; 109 tv.hParent= ProjectInfo.hMenuTreeItem;109 tv.hParent=projectInfo.hMenuTreeItem; 110 110 tv.item.pszText=MenuInfo->IdName; 111 111 … … 115 115 116 116 117 ProjectInfo.NumberOfMenu++;118 ProjectInfo.ModifyOfMaterial=1;117 projectInfo.NumberOfMenu++; 118 projectInfo.ModifyOfMaterial=1; 119 119 120 120 … … 128 128 } 129 129 130 NewMenuWindow(& ProjectInfo.pMenuInfo[ProjectInfo.NumberOfMenu-1]);130 NewMenuWindow(&projectInfo.pMenuInfo[projectInfo.NumberOfMenu-1]); 131 131 } 132 132 void Project_Menu_Delete(int MenuInfoNum){ … … 137 137 //ウィンドウが開かれている場合は閉じる 138 138 for(i=0;i<MAX_WNDNUM;i++){ 139 if(MdiInfo[i].hwnd&&lstrcmpi( ProjectInfo.pMenuInfo[MenuInfoNum].IdName,MdiInfo[i].path)==0){139 if(MdiInfo[i].hwnd&&lstrcmpi(projectInfo.pMenuInfo[MenuInfoNum].IdName,MdiInfo[i].path)==0){ 140 140 SendMessage(MdiInfo[i].hwnd,WM_CLOSE,0,0); 141 141 break; … … 144 144 145 145 //メニュー情報のメモリを解放 146 HeapMenuDataFree( ProjectInfo.pMenuInfo[MenuInfoNum].pMenuInfo,ProjectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu,0);147 HeapDefaultFree( ProjectInfo.pMenuInfo[MenuInfoNum].pMenuInfo);148 HeapDefaultFree( ProjectInfo.pMenuInfo[MenuInfoNum].IdName);146 HeapMenuDataFree(projectInfo.pMenuInfo[MenuInfoNum].pMenuInfo,projectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu,0); 147 HeapDefaultFree(projectInfo.pMenuInfo[MenuInfoNum].pMenuInfo); 148 HeapDefaultFree(projectInfo.pMenuInfo[MenuInfoNum].IdName); 149 149 150 150 //ツリービューから削除 151 151 extern HWND hMaterialTreeView; 152 TreeView_DeleteItem(hMaterialTreeView, ProjectInfo.pMenuInfo[MenuInfoNum].hTreeItem);153 154 // ProjectInfo.pMenuInfo構造体から削除155 ProjectInfo.NumberOfMenu--;156 for(i=MenuInfoNum;i< ProjectInfo.NumberOfMenu;i++) ProjectInfo.pMenuInfo[i]=ProjectInfo.pMenuInfo[i+1];157 if( ProjectInfo.NumberOfMenu==0){158 HeapDefaultFree( ProjectInfo.pMenuInfo);159 ProjectInfo.pMenuInfo=(MENU_INFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1);160 } 161 else ProjectInfo.pMenuInfo=(MENU_INFO *)HeapReAlloc(hHeap,0,ProjectInfo.pMenuInfo,ProjectInfo.NumberOfMenu*sizeof(MENU_INFO));162 163 ProjectInfo.ModifyOfMaterial=1;152 TreeView_DeleteItem(hMaterialTreeView,projectInfo.pMenuInfo[MenuInfoNum].hTreeItem); 153 154 //projectInfo.pMenuInfo構造体から削除 155 projectInfo.NumberOfMenu--; 156 for(i=MenuInfoNum;i<projectInfo.NumberOfMenu;i++) projectInfo.pMenuInfo[i]=projectInfo.pMenuInfo[i+1]; 157 if(projectInfo.NumberOfMenu==0){ 158 HeapDefaultFree(projectInfo.pMenuInfo); 159 projectInfo.pMenuInfo=(MENU_INFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1); 160 } 161 else projectInfo.pMenuInfo=(MENU_INFO *)HeapReAlloc(hHeap,0,projectInfo.pMenuInfo,projectInfo.NumberOfMenu*sizeof(MENU_INFO)); 162 163 projectInfo.ModifyOfMaterial=1; 164 164 165 165 … … 409 409 i2=0; 410 410 i3=0; 411 pMenuInfo=GetMenuInfoFromList(& ProjectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3);411 pMenuInfo=GetMenuInfoFromList(&projectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3); 412 412 pMenuInfo=&pMenuInfo->pMenuInfo[i2]; 413 413 … … 430 430 431 431 SendMessage(MdiInfo[WndNum].MdiMenuInfo->hList,LB_SETCURSEL,i4,0); 432 ProjectInfo.ModifyOfMaterial=1;432 projectInfo.ModifyOfMaterial=1; 433 433 return 1; 434 434 case IDC_POPUP: … … 441 441 i2=0; 442 442 i3=0; 443 pMenuInfo=GetMenuInfoFromList(& ProjectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3);443 pMenuInfo=GetMenuInfoFromList(&projectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3); 444 444 pMenuInfo=&pMenuInfo->pMenuInfo[i2]; 445 445 … … 476 476 } 477 477 SendMessage(MdiInfo[WndNum].hwnd,WM_COMMAND,MAKELONG(0,LBN_SELCHANGE),(long)MdiInfo[WndNum].MdiMenuInfo->hList); 478 ProjectInfo.ModifyOfMaterial=1;478 projectInfo.ModifyOfMaterial=1; 479 479 return 1; 480 480 case IDC_SEPARATOR: … … 487 487 i2=0; 488 488 i3=0; 489 pMenuInfo=GetMenuInfoFromList(& ProjectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3);489 pMenuInfo=GetMenuInfoFromList(&projectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3); 490 490 pMenuInfo=&pMenuInfo->pMenuInfo[i2]; 491 491 … … 528 528 i2=0; 529 529 i3=0; 530 pMenuInfo=GetMenuInfoFromList(& ProjectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3);530 pMenuInfo=GetMenuInfoFromList(&projectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3); 531 531 pMenuInfo=&pMenuInfo->pMenuInfo[i2]; 532 532 … … 536 536 pMenuInfo->state&=~MFS_CHECKED; 537 537 538 ProjectInfo.ModifyOfMaterial=1;538 projectInfo.ModifyOfMaterial=1; 539 539 return 1; 540 540 case IDC_DISABLED: … … 547 547 i2=0; 548 548 i3=0; 549 pMenuInfo=GetMenuInfoFromList(& ProjectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3);549 pMenuInfo=GetMenuInfoFromList(&projectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3); 550 550 pMenuInfo=&pMenuInfo->pMenuInfo[i2]; 551 551 … … 555 555 pMenuInfo->state&=~MFS_DISABLED; 556 556 557 ProjectInfo.ModifyOfMaterial=1;557 projectInfo.ModifyOfMaterial=1; 558 558 return 1; 559 559 case IDC_INSERTMENUITEM: … … 562 562 MenuInfoNum=GetMenuInfoNum(MdiInfo[WndNum].path); 563 563 564 if( ProjectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu==0){565 ProjectInfo.pMenuInfo[MenuInfoNum].pMenuInfo=(MENU_INFO *)HeapReAlloc(hHeap,HEAP_ZERO_MEMORY,ProjectInfo.pMenuInfo[MenuInfoNum].pMenuInfo,(ProjectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu+1)*sizeof(MENU_INFO));566 pMenuInfo=& ProjectInfo.pMenuInfo[MenuInfoNum].pMenuInfo[ProjectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu];564 if(projectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu==0){ 565 projectInfo.pMenuInfo[MenuInfoNum].pMenuInfo=(MENU_INFO *)HeapReAlloc(hHeap,HEAP_ZERO_MEMORY,projectInfo.pMenuInfo[MenuInfoNum].pMenuInfo,(projectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu+1)*sizeof(MENU_INFO)); 566 pMenuInfo=&projectInfo.pMenuInfo[MenuInfoNum].pMenuInfo[projectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu]; 567 567 568 568 sprintf(temporary,"caption text"); … … 578 578 pMenuInfo->pMenuInfo=0; 579 579 580 ProjectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu++;580 projectInfo.pMenuInfo[MenuInfoNum].NumberOfMenu++; 581 581 582 582 SendMessage(MdiInfo[WndNum].MdiMenuInfo->hList,LB_INSERTSTRING,0,(long)pMenuInfo->caption); … … 593 593 i2=0; 594 594 i3=0; 595 pMenuInfo=GetMenuInfoFromList(& ProjectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3);595 pMenuInfo=GetMenuInfoFromList(&projectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3); 596 596 if(pMenuInfo->pMenuInfo[i2].pMenuInfo){ 597 597 //"ポップアップ アイテムを作成する場合は \"はい\" を、ポップアップと同じ階層にメニュー アイテムを作成する場合は \"いいえ\" を押して下さい。" … … 633 633 SendMessage(GetParent(MdiInfo[WndNum].MdiMenuInfo->hMenuEdit),WM_COMMAND,MAKELONG(0,LBN_SELCHANGE),(long)MdiInfo[WndNum].MdiMenuInfo->hList); 634 634 } 635 ProjectInfo.ModifyOfMaterial=1;635 projectInfo.ModifyOfMaterial=1; 636 636 return 1; 637 637 case IDC_DELETEMENUITEM: … … 648 648 i2=0; 649 649 i3=0; 650 pMenuInfo=GetMenuInfoFromList(& ProjectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3);650 pMenuInfo=GetMenuInfoFromList(&projectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3); 651 651 652 652 i3=1; … … 679 679 } 680 680 681 ProjectInfo.ModifyOfMaterial=1;681 projectInfo.ModifyOfMaterial=1; 682 682 return 1; 683 683 case IDC_UP: … … 694 694 i2=0; 695 695 i3=0; 696 pMenuInfo=GetMenuInfoFromList(& ProjectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3);696 pMenuInfo=GetMenuInfoFromList(&projectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3); 697 697 if(i2==0) return 1; 698 698 i2--; … … 703 703 704 704 SendMessage(MdiInfo[WndNum].MdiMenuInfo->hList,LB_RESETCONTENT,0,0); 705 SetMenuDataList(MdiInfo[WndNum].MdiMenuInfo->hList,& ProjectInfo.pMenuInfo[MenuInfoNum],0);705 SetMenuDataList(MdiInfo[WndNum].MdiMenuInfo->hList,&projectInfo.pMenuInfo[MenuInfoNum],0); 706 706 if(!pMenuInfo->pMenuInfo[i2].pMenuInfo) 707 707 SendMessage(MdiInfo[WndNum].MdiMenuInfo->hList,LB_SETCURSEL,i4-1,0); 708 708 709 ProjectInfo.ModifyOfMaterial=1;709 projectInfo.ModifyOfMaterial=1; 710 710 return 1; 711 711 case IDC_DOWN: … … 722 722 i2=0; 723 723 i3=0; 724 pMenuInfo=GetMenuInfoFromList(& ProjectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3);724 pMenuInfo=GetMenuInfoFromList(&projectInfo.pMenuInfo[MenuInfoNum],&i2,i4,&i3); 725 725 if(pMenuInfo->NumberOfMenu<=i2+1) return 1; 726 726 … … 730 730 731 731 SendMessage(MdiInfo[WndNum].MdiMenuInfo->hList,LB_RESETCONTENT,0,0); 732 SetMenuDataList(MdiInfo[WndNum].MdiMenuInfo->hList,& ProjectInfo.pMenuInfo[MenuInfoNum],0);732 SetMenuDataList(MdiInfo[WndNum].MdiMenuInfo->hList,&projectInfo.pMenuInfo[MenuInfoNum],0); 733 733 if(!pMenuInfo->pMenuInfo[i2].pMenuInfo) 734 734 SendMessage(MdiInfo[WndNum].MdiMenuInfo->hList,LB_SETCURSEL,i4+1,0); 735 735 736 ProjectInfo.ModifyOfMaterial=1;736 projectInfo.ModifyOfMaterial=1; 737 737 return 1; 738 738 } … … 810 810 i2=0; 811 811 i3=0; 812 pMenuInfo=GetMenuInfoFromList(& ProjectInfo.pMenuInfo[MenuInfoNum],&i2,i,&i3);812 pMenuInfo=GetMenuInfoFromList(&projectInfo.pMenuInfo[MenuInfoNum],&i2,i,&i3); 813 813 pMenuInfo=&pMenuInfo->pMenuInfo[i2]; 814 814 -
trunk/ab5.0/abdev/abdev/MessageCallOperation.cpp
r617 r618 20 20 if(lstrcmp(EventName,"MenuClick")==0) return CT_MENU; 21 21 22 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];22 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 23 23 BOOST_FOREACH( CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos ) 24 24 { … … 36 36 char *buffer,**ppNames,temporary[MAX_PATH],temp2[MAX_PATH]; 37 37 38 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];38 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 39 39 40 40 NameLen=pWindowInfo->GetName().size(); 41 41 CallBackNameLen=lstrlen(pWindowInfo->CallBackName); 42 42 43 sprintf(temporary,"%s%s", ProjectInfo.dir,pWindowInfo->filepath);43 sprintf(temporary,"%s%s",projectInfo.dir,pWindowInfo->filepath); 44 44 buffer=ReadBuffer(temporary); 45 45 … … 136 136 POINT pos; 137 137 138 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];139 140 sprintf(temporary,"%s%s", ProjectInfo.dir,pWindowInfo->filepath);138 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 139 140 sprintf(temporary,"%s%s",projectInfo.dir,pWindowInfo->filepath); 141 141 hChild=OpenFileWithExtension(temporary); 142 142 if(!hChild) return; … … 222 222 char temporary[MAX_PATH]; 223 223 224 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];224 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 225 225 226 226 MaxCount=ListView_GetItemCount(hList); … … 449 449 i2=0; 450 450 451 SetMenuEventToList(hList,& ProjectInfo.pMenuInfo[MenuInfoNum],&i,&i2);451 SetMenuEventToList(hList,&projectInfo.pMenuInfo[MenuInfoNum],&i,&i2); 452 452 } 453 453 } … … 551 551 HMENU hMenu; 552 552 553 if( ProjectInfo.NumberOfMenu==0) return;553 if(projectInfo.NumberOfMenu==0) return; 554 554 555 555 GetCursorPos(&pos); … … 559 559 MENUITEMINFO mii; 560 560 mii.cbSize=sizeof(MENUITEMINFO); 561 for(i=0;i< ProjectInfo.NumberOfMenu;i++){561 for(i=0;i<projectInfo.NumberOfMenu;i++){ 562 562 if(NowMenuNum==i){ 563 563 mii.fMask=MIIM_TYPE|MIIM_ID|MIIM_STATE; … … 567 567 mii.fType=MFT_STRING; 568 568 mii.wID=100+i; 569 mii.dwTypeData= ProjectInfo.pMenuInfo[i].IdName;569 mii.dwTypeData=projectInfo.pMenuInfo[i].IdName; 570 570 InsertMenuItem(hMenu,i,1,&mii); 571 571 } … … 608 608 609 609 NowMenuNum=wParam-100; 610 SetMenuEventToList(hList,& ProjectInfo.pMenuInfo[wParam-100],&i,&i2);610 SetMenuEventToList(hList,&projectInfo.pMenuInfo[wParam-100],&i,&i2); 611 611 } 612 612 -
trunk/ab5.0/abdev/abdev/ParameterHint.cpp
r613 r618 33 33 char temporary[MAX_PATH],*pBuf; 34 34 35 if( ProjectInfo.name[0]){35 if(projectInfo.name[0]){ 36 36 //プロジェクトが開かれているとき 37 lstrcpy(temporary, ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[0]->m_path);38 GetFullPath(temporary, ProjectInfo.dir);37 lstrcpy(temporary,projectInfo.pobj_DBFileInfo->ppobj_FileInfo[0]->m_path); 38 GetFullPath(temporary,projectInfo.dir); 39 39 40 40 extern MDIINFO MdiInfo[MAX_WNDNUM]; -
trunk/ab5.0/abdev/abdev/ProjectControl.cpp
r617 r618 133 133 if(pobj_ClassTreeView->pProcInfo[i].hTreeItem==hTreeItem){ 134 134 135 if( ProjectInfo.name[0] ){135 if( projectInfo.name[0] ){ 136 136 // 対象ファイルを開く 137 137 lstrcpy(temporary, 138 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[pobj_ClassTreeView->pProcInfo[i].FileNum]->m_path);139 GetFullPath(temporary, ProjectInfo.dir);138 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[pobj_ClassTreeView->pProcInfo[i].FileNum]->m_path); 139 GetFullPath(temporary,projectInfo.dir); 140 140 hChild=OpenFileWithExtension(temporary); 141 141 } … … 179 179 case IDM_MATERIALTREE_OPEN: 180 180 hTreeItem=TreeView_GetSelection(hMaterialTreeView); 181 for(i=0;i<static_cast<int>( ProjectInfo.windowInfos.size());i++){182 if( ProjectInfo.windowInfos[i]->hTreeItem==hTreeItem){183 NewRadWindow( * ProjectInfo.windowInfos[i] );181 for(i=0;i<static_cast<int>(projectInfo.windowInfos.size());i++){ 182 if(projectInfo.windowInfos[i]->hTreeItem==hTreeItem){ 183 NewRadWindow( *projectInfo.windowInfos[i] ); 184 184 break; 185 185 } 186 186 } 187 for(i=0;i< ProjectInfo.NumberOfMenu;i++){188 if( ProjectInfo.pMenuInfo[i].hTreeItem==hTreeItem){189 NewMenuWindow(& ProjectInfo.pMenuInfo[i]);187 for(i=0;i<projectInfo.NumberOfMenu;i++){ 188 if(projectInfo.pMenuInfo[i].hTreeItem==hTreeItem){ 189 NewMenuWindow(&projectInfo.pMenuInfo[i]); 190 190 break; 191 191 } 192 192 } 193 for(i=0;i< ProjectInfo.res.NumberOfIconRes;i++){194 if( ProjectInfo.res.pIconResInfo[i].hTreeItem==hTreeItem){195 lstrcpy(temporary, ProjectInfo.res.pIconResInfo[i].path);196 GetFullPath(temporary, ProjectInfo.dir);193 for(i=0;i<projectInfo.res.NumberOfIconRes;i++){ 194 if(projectInfo.res.pIconResInfo[i].hTreeItem==hTreeItem){ 195 lstrcpy(temporary,projectInfo.res.pIconResInfo[i].path); 196 GetFullPath(temporary,projectInfo.dir); 197 197 NewIconEditWindow(temporary); 198 198 break; … … 202 202 case IDM_MATERIALTREE_DELETE: 203 203 hTreeItem=TreeView_GetSelection(hMaterialTreeView); 204 for(i=0;i< ProjectInfo.res.NumberOfCursorRes;i++){205 if( ProjectInfo.res.pCursorResInfo[i].hTreeItem==hTreeItem){204 for(i=0;i<projectInfo.res.NumberOfCursorRes;i++){ 205 if(projectInfo.res.pCursorResInfo[i].hTreeItem==hTreeItem){ 206 206 207 207 //"%s カーソルをプロジェクトから削除します。よろしいですか?" 208 sprintf(str,STRING_PJ_CHECK_DELETECURSOR, ProjectInfo.res.pCursorResInfo[i].IdName);208 sprintf(str,STRING_PJ_CHECK_DELETECURSOR,projectInfo.res.pCursorResInfo[i].IdName); 209 209 if(IDCANCEL==MessageBox(hOwner,str,APPLICATION_NAME,MB_OKCANCEL|MB_ICONEXCLAMATION)) break; 210 210 … … 213 213 } 214 214 } 215 for(i=0;i< ProjectInfo.res.NumberOfBitmapRes;i++){216 if( ProjectInfo.res.pBitmapResInfo[i].hTreeItem==hTreeItem){215 for(i=0;i<projectInfo.res.NumberOfBitmapRes;i++){ 216 if(projectInfo.res.pBitmapResInfo[i].hTreeItem==hTreeItem){ 217 217 218 218 //"%s ビットマップをプロジェクトから削除します。よろしいですか?" 219 sprintf(str,STRING_PJ_CHECK_DELETEBITMAP, ProjectInfo.res.pBitmapResInfo[i].IdName);219 sprintf(str,STRING_PJ_CHECK_DELETEBITMAP,projectInfo.res.pBitmapResInfo[i].IdName); 220 220 if(IDCANCEL==MessageBox(hOwner,str,APPLICATION_NAME,MB_OKCANCEL|MB_ICONEXCLAMATION)) break; 221 221 … … 224 224 } 225 225 } 226 for(i=0;i< ProjectInfo.res.NumberOfIconRes;i++){227 if( ProjectInfo.res.pIconResInfo[i].hTreeItem==hTreeItem){226 for(i=0;i<projectInfo.res.NumberOfIconRes;i++){ 227 if(projectInfo.res.pIconResInfo[i].hTreeItem==hTreeItem){ 228 228 229 229 //"%s アイコンをプロジェクトから削除します。よろしいですか?" 230 sprintf(str,STRING_PJ_CHECK_DELETEICON, ProjectInfo.res.pIconResInfo[i].IdName);230 sprintf(str,STRING_PJ_CHECK_DELETEICON,projectInfo.res.pIconResInfo[i].IdName); 231 231 if(IDCANCEL==MessageBox(hOwner,str,APPLICATION_NAME,MB_OKCANCEL|MB_ICONEXCLAMATION)) break; 232 232 … … 235 235 } 236 236 } 237 for(i=0;i< ProjectInfo.NumberOfMenu;i++){238 if( ProjectInfo.pMenuInfo[i].hTreeItem==hTreeItem){237 for(i=0;i<projectInfo.NumberOfMenu;i++){ 238 if(projectInfo.pMenuInfo[i].hTreeItem==hTreeItem){ 239 239 240 240 //"%s メニューをプロジェクトから削除します。よろしいですか?" 241 sprintf(str,STRING_PJ_CHECK_DELETEMENU, ProjectInfo.pMenuInfo[i].IdName);241 sprintf(str,STRING_PJ_CHECK_DELETEMENU,projectInfo.pMenuInfo[i].IdName); 242 242 if(IDCANCEL==MessageBox(hOwner,str,APPLICATION_NAME,MB_OKCANCEL|MB_ICONEXCLAMATION)) break; 243 243 … … 246 246 } 247 247 } 248 for(i=0;i<static_cast<int>( ProjectInfo.windowInfos.size());i++){249 if( ProjectInfo.windowInfos[i]->hTreeItem==hTreeItem){248 for(i=0;i<static_cast<int>(projectInfo.windowInfos.size());i++){ 249 if(projectInfo.windowInfos[i]->hTreeItem==hTreeItem){ 250 250 251 251 //"%s ウィンドウをプロジェクトから削除します。よろしいですか?" 252 sprintf(str,STRING_PJ_CHECK_DELETEWINDOW, ProjectInfo.windowInfos[i]->GetName().c_str());252 sprintf(str,STRING_PJ_CHECK_DELETEWINDOW,projectInfo.windowInfos[i]->GetName().c_str()); 253 253 if(IDCANCEL==MessageBox(hOwner,str,APPLICATION_NAME,MB_OKCANCEL|MB_ICONEXCLAMATION)) break; 254 254 … … 261 261 extern char NewIdName[MAX_PATH]; 262 262 hTreeItem=TreeView_GetSelection(hMaterialTreeView); 263 for(i=0;i< ProjectInfo.res.NumberOfCursorRes;i++){264 if( ProjectInfo.res.pCursorResInfo[i].hTreeItem==hTreeItem){263 for(i=0;i<projectInfo.res.NumberOfCursorRes;i++){ 264 if(projectInfo.res.pCursorResInfo[i].hTreeItem==hTreeItem){ 265 265 Project_Cursor_RenameID(i); 266 266 break; 267 267 } 268 268 } 269 for(i=0;i< ProjectInfo.res.NumberOfBitmapRes;i++){270 if( ProjectInfo.res.pBitmapResInfo[i].hTreeItem==hTreeItem){269 for(i=0;i<projectInfo.res.NumberOfBitmapRes;i++){ 270 if(projectInfo.res.pBitmapResInfo[i].hTreeItem==hTreeItem){ 271 271 Project_Bitmap_RenameID(i); 272 272 break; 273 273 } 274 274 } 275 for(i=0;i< ProjectInfo.res.NumberOfIconRes;i++){276 if( ProjectInfo.res.pIconResInfo[i].hTreeItem==hTreeItem){275 for(i=0;i<projectInfo.res.NumberOfIconRes;i++){ 276 if(projectInfo.res.pIconResInfo[i].hTreeItem==hTreeItem){ 277 277 Project_Icon_RenameID(i); 278 278 } 279 279 } 280 for(i=0;i< ProjectInfo.NumberOfMenu;i++){281 if( ProjectInfo.pMenuInfo[i].hTreeItem==hTreeItem){282 if(!DialogBoxParam(hResInst,MAKEINTRESOURCE(IDD_INPUTID),hOwner,(DLGPROC)DlgProject_MenuID_Input,(long) ProjectInfo.pMenuInfo[i].IdName)) break;280 for(i=0;i<projectInfo.NumberOfMenu;i++){ 281 if(projectInfo.pMenuInfo[i].hTreeItem==hTreeItem){ 282 if(!DialogBoxParam(hResInst,MAKEINTRESOURCE(IDD_INPUTID),hOwner,(DLGPROC)DlgProject_MenuID_Input,(long)projectInfo.pMenuInfo[i].IdName)) break; 283 283 284 284 //重複チェック 285 for(i2=0;i2< ProjectInfo.NumberOfMenu;i2++){285 for(i2=0;i2<projectInfo.NumberOfMenu;i2++){ 286 286 if(i2==i) continue; 287 if(lstrcmp(NewIdName, ProjectInfo.pMenuInfo[i2].IdName)==0){287 if(lstrcmp(NewIdName,projectInfo.pMenuInfo[i2].IdName)==0){ 288 288 //"ID \"%s\" は既にプロジェクト内に存在します。" 289 289 sprintf(temporary,STRING_DUPLICATIONERROR_ID_IN_PROJECT,NewIdName); … … 293 293 } 294 294 295 HeapDefaultFree( ProjectInfo.pMenuInfo[i].IdName);296 ProjectInfo.pMenuInfo[i].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(NewIdName)+1);297 lstrcpy( ProjectInfo.pMenuInfo[i].IdName,NewIdName);295 HeapDefaultFree(projectInfo.pMenuInfo[i].IdName); 296 projectInfo.pMenuInfo[i].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(NewIdName)+1); 297 lstrcpy(projectInfo.pMenuInfo[i].IdName,NewIdName); 298 298 299 299 tvItem.hItem=hTreeItem; 300 300 tvItem.mask=TVIF_TEXT; 301 tvItem.pszText= ProjectInfo.pMenuInfo[i].IdName;302 tvItem.cchTextMax=lstrlen( ProjectInfo.pMenuInfo[i].IdName)+1;301 tvItem.pszText=projectInfo.pMenuInfo[i].IdName; 302 tvItem.cchTextMax=lstrlen(projectInfo.pMenuInfo[i].IdName)+1; 303 303 TreeView_SetItem(hMaterialTreeView,&tvItem); 304 304 305 ProjectInfo.ModifyOfMaterial=1;305 projectInfo.ModifyOfMaterial=1; 306 306 307 307 TreeView_SortChildren(hMaterialTreeView, … … 315 315 RESITEMINFO TempIconResInfo; 316 316 hTreeItem=TreeView_GetSelection(hMaterialTreeView); 317 for(i=0;i< ProjectInfo.res.NumberOfIconRes;i++){318 if( ProjectInfo.res.pIconResInfo[i].hTreeItem==hTreeItem){317 for(i=0;i<projectInfo.res.NumberOfIconRes;i++){ 318 if(projectInfo.res.pIconResInfo[i].hTreeItem==hTreeItem){ 319 319 if(i==0) break; 320 320 321 TempIconResInfo= ProjectInfo.res.pIconResInfo[i];321 TempIconResInfo=projectInfo.res.pIconResInfo[i]; 322 322 for(;i>0;i--) 323 ProjectInfo.res.pIconResInfo[i]=ProjectInfo.res.pIconResInfo[i-1];324 ProjectInfo.res.pIconResInfo[0]=TempIconResInfo;325 326 tvItem.hItem= ProjectInfo.res.pIconResInfo[1].hTreeItem;323 projectInfo.res.pIconResInfo[i]=projectInfo.res.pIconResInfo[i-1]; 324 projectInfo.res.pIconResInfo[0]=TempIconResInfo; 325 326 tvItem.hItem=projectInfo.res.pIconResInfo[1].hTreeItem; 327 327 tvItem.mask=TVIF_TEXT; 328 tvItem.pszText= ProjectInfo.res.pIconResInfo[1].IdName;329 tvItem.cchTextMax=lstrlen( ProjectInfo.res.pIconResInfo[1].IdName)+1;328 tvItem.pszText=projectInfo.res.pIconResInfo[1].IdName; 329 tvItem.cchTextMax=lstrlen(projectInfo.res.pIconResInfo[1].IdName)+1; 330 330 TreeView_SetItem(hMaterialTreeView,&tvItem); 331 331 332 tvItem.hItem= ProjectInfo.res.pIconResInfo[0].hTreeItem;332 tvItem.hItem=projectInfo.res.pIconResInfo[0].hTreeItem; 333 333 tvItem.mask=TVIF_TEXT; 334 sprintf(temporary,"%s (Main)", ProjectInfo.res.pIconResInfo[0].IdName);334 sprintf(temporary,"%s (Main)",projectInfo.res.pIconResInfo[0].IdName); 335 335 tvItem.pszText=temporary; 336 336 tvItem.cchTextMax=lstrlen(temporary)+1; 337 337 TreeView_SetItem(hMaterialTreeView,&tvItem); 338 338 339 ProjectInfo.ModifuOfResource=1;339 projectInfo.ModifuOfResource=1; 340 340 break; 341 341 } … … 559 559 560 560 hOldFont=(HFONT)SelectObject(hdc,hStatusFont); 561 if( ProjectInfo.name[0] ){562 sprintf(temporary,"%s \'%s\'",STRING_PROJECT, ProjectInfo.name);561 if( projectInfo.name[0] ){ 562 sprintf(temporary,"%s \'%s\'",STRING_PROJECT,projectInfo.name); 563 563 } 564 564 else{ … … 649 649 char temporary[MAX_PATH],temp2[MAX_PATH]; 650 650 651 GetRelationalPath(path, ProjectInfo.dir);651 GetRelationalPath(path,projectInfo.dir); 652 652 653 653 //重複チェック 654 if( ProjectInfo.pobj_DBFileInfo->dupli_check(path)){654 if(projectInfo.pobj_DBFileInfo->dupli_check(path)){ 655 655 //"\"%s\" ファイルは既にプロジェクト内に存在します。" 656 656 sprintf(temporary,STRING_DUPLICATIONERROR_FILE_IN_PROJECT,path); … … 668 668 669 669 670 // ProjectInfo.ppobj_DBFileInfoオブジェクトに追加671 ProjectInfo.pobj_DBFileInfo->add(path,hTreeItem);672 673 674 ProjectInfo.modify=1;670 //projectInfo.ppobj_DBFileInfoオブジェクトに追加 671 projectInfo.pobj_DBFileInfo->add(path,hTreeItem); 672 673 674 projectInfo.modify=1; 675 675 676 676 //ファイル操作によるクラスビューの再表示 … … 680 680 extern HANDLE hHeap; 681 681 682 if( ProjectInfo.pobj_DBFileInfo->IsMainFile(hTreeItem)){682 if(projectInfo.pobj_DBFileInfo->IsMainFile(hTreeItem)){ 683 683 //"このファイルはプロジェクトのメイン ファイルです。プロジェクト内から削除することはできません。" 684 684 MessageBox(hOwner,STRING_ERROR_CANT_MAINFILE,STRING_ERROR,MB_OK|MB_ICONEXCLAMATION); … … 689 689 TreeView_DeleteItem(pobj_FileTree->hTree,hTreeItem); 690 690 691 // ProjectInfo.pobj_DBFileInfoオブジェクトから削除692 ProjectInfo.pobj_DBFileInfo->del(hTreeItem);693 694 ProjectInfo.modify=1;691 //projectInfo.pobj_DBFileInfoオブジェクトから削除 692 projectInfo.pobj_DBFileInfo->del(hTreeItem); 693 694 projectInfo.modify=1; 695 695 696 696 //ファイル操作によるクラスビューの再表示 … … 707 707 708 708 //既にプロジェクトが開かれている場合は閉じる 709 if( ProjectInfo.name[0]){709 if(projectInfo.name[0]){ 710 710 if(!CloseProject()) return; 711 711 } … … 1078 1078 sprintf(temporary,"%s%s.wnd",dir,NewProjectInfo.name); 1079 1079 1080 ProjectInfo.NumberOfMenu=0;1080 projectInfo.NumberOfMenu=0; 1081 1081 SaveWindowFile( temporary, windowInfos ); 1082 1082 … … 1119 1119 TV_INSERTSTRUCT tv; 1120 1120 1121 sprintf(temporary,"%s ", ProjectInfo.name);1121 sprintf(temporary,"%s ",projectInfo.name); 1122 1122 lstrcat(temporary,STRING_PROJECT); 1123 1123 SetWindowText(hProjectView,temporary); … … 1127 1127 1128 1128 //ファイル ツリー 1129 ProjectInfo.pobj_DBFileInfo->ResetTree();1129 projectInfo.pobj_DBFileInfo->ResetTree(); 1130 1130 1131 1131 //関数ツリー … … 1142 1142 tv.item.pszText=temporary; 1143 1143 tv.hParent=TreeView_InsertItem(hMaterialTreeView,&tv); 1144 ProjectInfo.res.hCursorTreeItem=tv.hParent;1145 for(i=0;i< ProjectInfo.res.NumberOfCursorRes;i++){1144 projectInfo.res.hCursorTreeItem=tv.hParent; 1145 for(i=0;i<projectInfo.res.NumberOfCursorRes;i++){ 1146 1146 tv.item.iImage=6; 1147 1147 tv.item.iSelectedImage=6; 1148 tv.item.pszText= ProjectInfo.res.pCursorResInfo[i].IdName;1149 ProjectInfo.res.pCursorResInfo[i].hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv);1148 tv.item.pszText=projectInfo.res.pCursorResInfo[i].IdName; 1149 projectInfo.res.pCursorResInfo[i].hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv); 1150 1150 } 1151 1151 … … 1157 1157 tv.item.pszText=temporary; 1158 1158 tv.hParent=TreeView_InsertItem(hMaterialTreeView,&tv); 1159 ProjectInfo.res.hBitmapTreeItem=tv.hParent;1160 for(i=0;i< ProjectInfo.res.NumberOfBitmapRes;i++){1159 projectInfo.res.hBitmapTreeItem=tv.hParent; 1160 for(i=0;i<projectInfo.res.NumberOfBitmapRes;i++){ 1161 1161 tv.item.iImage=5; 1162 1162 tv.item.iSelectedImage=5; 1163 tv.item.pszText= ProjectInfo.res.pBitmapResInfo[i].IdName;1164 ProjectInfo.res.pBitmapResInfo[i].hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv);1163 tv.item.pszText=projectInfo.res.pBitmapResInfo[i].IdName; 1164 projectInfo.res.pBitmapResInfo[i].hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv); 1165 1165 } 1166 1166 … … 1172 1172 tv.item.pszText=temporary; 1173 1173 tv.hParent=TreeView_InsertItem(hMaterialTreeView,&tv); 1174 ProjectInfo.res.hIconTreeItem=tv.hParent;1175 for(i=0;i< ProjectInfo.res.NumberOfIconRes;i++){1174 projectInfo.res.hIconTreeItem=tv.hParent; 1175 for(i=0;i<projectInfo.res.NumberOfIconRes;i++){ 1176 1176 tv.item.iImage=4; 1177 1177 tv.item.iSelectedImage=4; 1178 1178 if(i==0){ 1179 sprintf(temporary,"%s (Main)", ProjectInfo.res.pIconResInfo[i].IdName);1179 sprintf(temporary,"%s (Main)",projectInfo.res.pIconResInfo[i].IdName); 1180 1180 tv.item.pszText=temporary; 1181 1181 } 1182 else tv.item.pszText= ProjectInfo.res.pIconResInfo[i].IdName;1183 ProjectInfo.res.pIconResInfo[i].hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv);1182 else tv.item.pszText=projectInfo.res.pIconResInfo[i].IdName; 1183 projectInfo.res.pIconResInfo[i].hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv); 1184 1184 } 1185 1185 … … 1190 1190 tv.item.pszText="Menu"; 1191 1191 tv.hParent=TreeView_InsertItem(hMaterialTreeView,&tv); 1192 ProjectInfo.hMenuTreeItem=tv.hParent;1193 for(i=0;i< ProjectInfo.NumberOfMenu;i++){1192 projectInfo.hMenuTreeItem=tv.hParent; 1193 for(i=0;i<projectInfo.NumberOfMenu;i++){ 1194 1194 tv.item.iImage=3; 1195 1195 tv.item.iSelectedImage=3; 1196 tv.item.pszText= ProjectInfo.pMenuInfo[i].IdName;1197 ProjectInfo.pMenuInfo[i].hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv);1196 tv.item.pszText=projectInfo.pMenuInfo[i].IdName; 1197 projectInfo.pMenuInfo[i].hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv); 1198 1198 } 1199 1199 … … 1204 1204 tv.item.pszText="Window"; 1205 1205 tv.hParent=TreeView_InsertItem(hMaterialTreeView,&tv); 1206 ProjectInfo.hWindowTreeItem=tv.hParent;1207 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1206 projectInfo.hWindowTreeItem=tv.hParent; 1207 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1208 1208 { 1209 1209 tv.item.iImage=2; … … 1221 1221 1222 1222 //既にプロジェクトが開かれている場合は閉じる 1223 if( ProjectInfo.name[0]){1223 if(projectInfo.name[0]){ 1224 1224 if(!CloseProject()) return; 1225 1225 } 1226 memset(&ProjectInfo,0,sizeof(PROJECTINFO));1226 //memset(&projectInfo,0,sizeof(PROJECTINFO)); 1227 1227 1228 1228 //プロジェクトの作業ディレクトリを取得 1229 _splitpath(path, ProjectInfo.dir,temporary,0,0);1230 lstrcat( ProjectInfo.dir,temporary);1229 _splitpath(path,projectInfo.dir,temporary,0,0); 1230 lstrcat(projectInfo.dir,temporary); 1231 1231 1232 1232 //ファイルを開く、保存の初期ディレクトリをセット 1233 lstrcpy(pobj_nv->DefSaveDir, ProjectInfo.dir);1233 lstrcpy(pobj_nv->DefSaveDir,projectInfo.dir); 1234 1234 1235 1235 1236 1236 ////////////////////////////////////////// 1237 1237 // リソースデータ用領域を確保 1238 ProjectInfo.res.pCursorResInfo=(RESITEMINFO *)HeapAlloc(hHeap,0,1);1239 ProjectInfo.res.NumberOfCursorRes=0;1240 ProjectInfo.res.pBitmapResInfo=(RESITEMINFO *)HeapAlloc(hHeap,0,1);1241 ProjectInfo.res.NumberOfBitmapRes=0;1242 ProjectInfo.res.pIconResInfo=(RESITEMINFO *)HeapAlloc(hHeap,0,1);1243 ProjectInfo.res.NumberOfIconRes=0;1238 projectInfo.res.pCursorResInfo=(RESITEMINFO *)HeapAlloc(hHeap,0,1); 1239 projectInfo.res.NumberOfCursorRes=0; 1240 projectInfo.res.pBitmapResInfo=(RESITEMINFO *)HeapAlloc(hHeap,0,1); 1241 projectInfo.res.NumberOfBitmapRes=0; 1242 projectInfo.res.pIconResInfo=(RESITEMINFO *)HeapAlloc(hHeap,0,1); 1243 projectInfo.res.NumberOfIconRes=0; 1244 1244 1245 1245 … … 1250 1250 1251 1251 //解析 1252 ProjectInfo.pobj_DBFileInfo=new CDBFileInfo();1252 projectInfo.pobj_DBFileInfo=new CDBFileInfo(); 1253 1253 bool isUseWindow = false; 1254 1254 for(i=0;;i++){ … … 1271 1271 temporary[i2]=buffer[i]; 1272 1272 } 1273 ProjectInfo.dwVersion=GetValue(temporary);1273 projectInfo.dwVersion=GetValue(temporary); 1274 1274 } 1275 1275 else if(lstrcmpi(temporary,"MODULETYPE")==0&&buffer[i]=='='){ … … 1282 1282 temporary[i2]=buffer[i]; 1283 1283 } 1284 ProjectInfo.dwModuleType=atoi(temporary);1284 projectInfo.dwModuleType=atoi(temporary); 1285 1285 } 1286 1286 else if(lstrcmpi(temporary,"NAME")==0&&buffer[i]=='='){ 1287 1287 for(i++,i2=0;;i++,i2++){ 1288 1288 if((buffer[i]=='\r'&&buffer[i+1]=='\n')||buffer[i]=='\0'){ 1289 ProjectInfo.name[i2]=0;1289 projectInfo.name[i2]=0; 1290 1290 break; 1291 1291 } 1292 ProjectInfo.name[i2]=buffer[i];1292 projectInfo.name[i2]=buffer[i]; 1293 1293 } 1294 1294 } … … 1337 1337 temporary[i2]=buffer[i]; 1338 1338 } 1339 ProjectInfo.dwOption=GetValue(temporary);1339 projectInfo.dwOption=GetValue(temporary); 1340 1340 } 1341 1341 else if(lstrcmpi(temporary,"OUTPUT_RELEASE")==0&&buffer[i]=='='){ … … 1348 1348 temporary[i2]=buffer[i]; 1349 1349 } 1350 lstrcpy( ProjectInfo.lpszOutput_Release,temporary);1350 lstrcpy(projectInfo.lpszOutput_Release,temporary); 1351 1351 } 1352 1352 else if(lstrcmpi(temporary,"OUTPUT_DEBUG")==0&&buffer[i]=='='){ … … 1359 1359 temporary[i2]=buffer[i]; 1360 1360 } 1361 lstrcpy( ProjectInfo.lpszOutput_Debug,temporary);1361 lstrcpy(projectInfo.lpszOutput_Debug,temporary); 1362 1362 } 1363 1363 else if(lstrcmpi(temporary,"MANIFEST")==0&&buffer[i]=='='){ … … 1370 1370 temporary[i2]=buffer[i]; 1371 1371 } 1372 lstrcpy( ProjectInfo.szManifestPath,temporary);1372 lstrcpy(projectInfo.szManifestPath,temporary); 1373 1373 } 1374 1374 else if(lstrcmpi(temporary,"DEBUG_CMD_LINE")==0&&buffer[i]=='='){ … … 1381 1381 temporary[i2]=buffer[i]; 1382 1382 } 1383 lstrcpy( ProjectInfo.szCmdLine,temporary);1383 lstrcpy(projectInfo.szCmdLine,temporary); 1384 1384 } 1385 1385 else if(lstrcmpi(temporary,"DEBUG_EXE_PATH")==0&&buffer[i]=='='){ … … 1392 1392 temporary[i2]=buffer[i]; 1393 1393 } 1394 lstrcpy( ProjectInfo.szExePath,temporary);1394 lstrcpy(projectInfo.szExePath,temporary); 1395 1395 } 1396 1396 else if(lstrcmpi(temporary,"RESOURCE")==0&&buffer[i]=='='){ … … 1404 1404 } 1405 1405 if(temporary[0]!='\0'&&(!(temporary[0]=='0'&&temporary[1]=='\0'))){ 1406 lstrcpy( ProjectInfo.ResourceFileName,temporary);1406 lstrcpy(projectInfo.ResourceFileName,temporary); 1407 1407 GetResourceData(); 1408 1408 } 1409 1409 else{ 1410 sprintf( ProjectInfo.ResourceFileName,"%s.rc",ProjectInfo.name);1410 sprintf(projectInfo.ResourceFileName,"%s.rc",projectInfo.name); 1411 1411 } 1412 1412 } … … 1421 1421 } 1422 1422 if(temporary[0]=='\0') break; 1423 ProjectInfo.pobj_DBFileInfo->add(temporary,0);1423 projectInfo.pobj_DBFileInfo->add(temporary,0); 1424 1424 1425 1425 if(buffer[i]=='\0') break; … … 1441 1441 1442 1442 //古いバージョンファイルを考慮 1443 if( ProjectInfo.dwVersion<=4){1444 if( ProjectInfo.dwModuleType==MT_DLL)1445 sprintf( ProjectInfo.lpszOutput_Release,".\\%s.dll",ProjectInfo.name);1446 else sprintf( ProjectInfo.lpszOutput_Release,".\\%s.exe",ProjectInfo.name);1447 sprintf( ProjectInfo.lpszOutput_Debug,".\\%s_debug.exe",ProjectInfo.name);1443 if(projectInfo.dwVersion<=4){ 1444 if(projectInfo.dwModuleType==MT_DLL) 1445 sprintf(projectInfo.lpszOutput_Release,".\\%s.dll",projectInfo.name); 1446 else sprintf(projectInfo.lpszOutput_Release,".\\%s.exe",projectInfo.name); 1447 sprintf(projectInfo.lpszOutput_Debug,".\\%s_debug.exe",projectInfo.name); 1448 1448 } 1449 1449 1450 1450 //ブレークポイントを初期化 1451 ProjectInfo.pobj_DBBreakPoint=new CDBBreakPoint();1451 projectInfo.pobj_DBBreakPoint=new CDBBreakPoint(); 1452 1452 1453 1453 … … 1456 1456 ///////////////////////////////////////////// 1457 1457 //ウィンドウ定義ファイル(*.wnd)をオープン 1458 sprintf(temp2,"%s%s.wnd", ProjectInfo.dir,ProjectInfo.name);1458 sprintf(temp2,"%s%s.wnd",projectInfo.dir,projectInfo.name); 1459 1459 if(!OpenWindowFile(temp2)) return; 1460 1460 } 1461 1461 else{ 1462 ProjectInfo.windowInfos.Clear();1463 1464 ProjectInfo.NumberOfMenu=0;1465 ProjectInfo.pMenuInfo=(MENU_INFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1);1462 projectInfo.windowInfos.Clear(); 1463 1464 projectInfo.NumberOfMenu=0; 1465 projectInfo.pMenuInfo=(MENU_INFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1); 1466 1466 } 1467 1467 … … 1485 1485 HWND hChild; 1486 1486 int WndNum; 1487 sprintf(temp2,"%s%s.wrk", ProjectInfo.dir,ProjectInfo.name);1487 sprintf(temp2,"%s%s.wrk",projectInfo.dir,projectInfo.name); 1488 1488 hFind=FindFirstFile(temp2,&wfd); 1489 1489 if(hFind!=INVALID_HANDLE_VALUE){ … … 1520 1520 temporary[i3]=temp2[i2]; 1521 1521 } 1522 GetFullPath(temporary, ProjectInfo.dir);1522 GetFullPath(temporary,projectInfo.dir); 1523 1523 hChild=OpenFileWithExtension(temporary); 1524 1524 WndNum=GetWndNum(hChild); … … 1584 1584 } 1585 1585 else if(lstrcmpi(temporary,"rad")==0){ 1586 for(i3=0;i3<static_cast<int>( ProjectInfo.windowInfos.size());i3++){1587 if(lstrcmpi( ProjectInfo.windowInfos[i3]->GetName().c_str(),temp2)==0){1588 NewRadWindow( * ProjectInfo.windowInfos[i3] );1586 for(i3=0;i3<static_cast<int>(projectInfo.windowInfos.size());i3++){ 1587 if(lstrcmpi(projectInfo.windowInfos[i3]->GetName().c_str(),temp2)==0){ 1588 NewRadWindow( *projectInfo.windowInfos[i3] ); 1589 1589 break; 1590 1590 } … … 1592 1592 } 1593 1593 else if(lstrcmpi(temporary,"menu")==0){ 1594 for(i3=0;i3< ProjectInfo.NumberOfMenu;i3++){1595 if(lstrcmpi( ProjectInfo.pMenuInfo[i3].IdName,temp2)==0){1596 NewMenuWindow(& ProjectInfo.pMenuInfo[i3]);1594 for(i3=0;i3<projectInfo.NumberOfMenu;i3++){ 1595 if(lstrcmpi(projectInfo.pMenuInfo[i3].IdName,temp2)==0){ 1596 NewMenuWindow(&projectInfo.pMenuInfo[i3]); 1597 1597 break; 1598 1598 } … … 1600 1600 } 1601 1601 else if(lstrcmpi(temporary,"icon")==0){ 1602 for(i3=0;i3< ProjectInfo.res.NumberOfIconRes;i3++){1603 if(lstrcmpi( ProjectInfo.res.pIconResInfo[i3].path,temp2)==0){1604 GetFullPath(temp2, ProjectInfo.dir);1602 for(i3=0;i3<projectInfo.res.NumberOfIconRes;i3++){ 1603 if(lstrcmpi(projectInfo.res.pIconResInfo[i3].path,temp2)==0){ 1604 GetFullPath(temp2,projectInfo.dir); 1605 1605 NewIconEditWindow(temp2); 1606 1606 break; … … 1695 1695 lstrcpy(temporary,temp2+i3+1); 1696 1696 temp2[i3]=0; 1697 GetFullPath(temporary, ProjectInfo.dir);1697 GetFullPath(temporary,projectInfo.dir); 1698 1698 sscanf(temp2,"%d",&i3); 1699 1699 … … 1706 1706 } 1707 1707 else if(lstrcmpi(temporary,"rad")==0){ 1708 for(i3=0;i3<static_cast<int>( ProjectInfo.windowInfos.size());i3++){1709 if(lstrcmpi( ProjectInfo.windowInfos[i3]->GetName().c_str(),temp2)==0){1710 NewRadWindow( * ProjectInfo.windowInfos[i3] );1708 for(i3=0;i3<static_cast<int>(projectInfo.windowInfos.size());i3++){ 1709 if(lstrcmpi(projectInfo.windowInfos[i3]->GetName().c_str(),temp2)==0){ 1710 NewRadWindow( *projectInfo.windowInfos[i3] ); 1711 1711 break; 1712 1712 } … … 1714 1714 } 1715 1715 else if(lstrcmpi(temporary,"menu")==0){ 1716 for(i3=0;i3< ProjectInfo.NumberOfMenu;i3++){1717 if(lstrcmpi( ProjectInfo.pMenuInfo[i3].IdName,temp2)==0){1718 NewMenuWindow(& ProjectInfo.pMenuInfo[i3]);1716 for(i3=0;i3<projectInfo.NumberOfMenu;i3++){ 1717 if(lstrcmpi(projectInfo.pMenuInfo[i3].IdName,temp2)==0){ 1718 NewMenuWindow(&projectInfo.pMenuInfo[i3]); 1719 1719 break; 1720 1720 } … … 1722 1722 } 1723 1723 else if(lstrcmpi(temporary,"icon")==0){ 1724 for(i3=0;i3< ProjectInfo.res.NumberOfIconRes;i3++){1725 if(lstrcmpi( ProjectInfo.res.pIconResInfo[i3].path,temp2)==0){1726 GetFullPath(temp2, ProjectInfo.dir);1724 for(i3=0;i3<projectInfo.res.NumberOfIconRes;i3++){ 1725 if(lstrcmpi(projectInfo.res.pIconResInfo[i3].path,temp2)==0){ 1726 GetFullPath(temp2,projectInfo.dir); 1727 1727 NewIconEditWindow(temp2); 1728 1728 break; … … 1802 1802 1803 1803 //ウィンドウ タイトルを変更 1804 sprintf(temporary,"%s - %s", ProjectInfo.name,APPLICATION_NAME);1804 sprintf(temporary,"%s - %s",projectInfo.name,APPLICATION_NAME); 1805 1805 SetWindowText(hOwner,temporary); 1806 1806 1807 1807 1808 ProjectInfo.modify=0;1809 ProjectInfo.ModifyOfMaterial=0;1810 ProjectInfo.ModifuOfResource=0;1808 projectInfo.modify=0; 1809 projectInfo.ModifyOfMaterial=0; 1810 projectInfo.ModifuOfResource=0; 1811 1811 } 1812 1812 BOOL ProjectModifyCheck(BOOL bRun){ … … 1815 1815 HWND hChild; 1816 1816 char temporary[MAX_PATH]; 1817 if( ProjectInfo.modify||ProjectInfo.ModifyOfMaterial||ProjectInfo.ModifuOfResource){1817 if(projectInfo.modify||projectInfo.ModifyOfMaterial||projectInfo.ModifuOfResource){ 1818 1818 if(bRun==0||pobj_nv->bSaveCheckProject){ 1819 1819 //"\"%s\" プロジェクトは変更されています。保存しますか?" 1820 sprintf(temporary,STRING_MODIFYCHECK_PROJECT, ProjectInfo.name);1820 sprintf(temporary,STRING_MODIFYCHECK_PROJECT,projectInfo.name); 1821 1821 i=MessageBox(hOwner,temporary,APPLICATION_NAME,MB_YESNOCANCEL|MB_ICONEXCLAMATION); 1822 1822 … … 1833 1833 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum].DocType)){ 1834 1834 if( MdiInfo[WndNum].pMdiTextEdit->IsModified() ){ 1835 for(i=0;i< ProjectInfo.pobj_DBFileInfo->iNum;i++){1836 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary);1835 for(i=0;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 1836 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 1837 1837 if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0) sw=1; 1838 1838 } … … 1841 1841 else if(MdiInfo[WndNum].DocType==WNDTYPE_ICONEDIT){ 1842 1842 if(MdiInfo[WndNum].MdiIconEditInfo->bModify){ 1843 for(i=0;i< ProjectInfo.res.NumberOfIconRes;i++){1844 lstrcpy(temporary, ProjectInfo.res.pIconResInfo[i].path);1845 GetFullPath(temporary, ProjectInfo.dir);1843 for(i=0;i<projectInfo.res.NumberOfIconRes;i++){ 1844 lstrcpy(temporary,projectInfo.res.pIconResInfo[i].path); 1845 GetFullPath(temporary,projectInfo.dir); 1846 1846 if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0) sw=1; 1847 1847 } … … 1852 1852 if(bRun==0||pobj_nv->bSaveCheckProject){ 1853 1853 //"\"%s\" プロジェクトは変更されています。保存しますか?" 1854 sprintf(temporary,STRING_MODIFYCHECK_PROJECT, ProjectInfo.name);1854 sprintf(temporary,STRING_MODIFYCHECK_PROJECT,projectInfo.name); 1855 1855 i=MessageBox(hOwner,temporary,APPLICATION_NAME,MB_YESNOCANCEL|MB_ICONEXCLAMATION); 1856 1856 … … 1885 1885 WndNum=GetWndNum(hCloseChild); 1886 1886 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum].DocType)){ 1887 for(i=0;i< ProjectInfo.pobj_DBFileInfo->iNum;i++){1888 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary);1887 for(i=0;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 1888 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 1889 1889 if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){ 1890 1890 … … 1898 1898 } 1899 1899 else if(MdiInfo[WndNum].DocType==WNDTYPE_RAD){ 1900 BOOST_FOREACH( const WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1900 BOOST_FOREACH( const WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1901 1901 { 1902 1902 if( pWindowInfo->GetName() == MdiInfo[WndNum].path ){ … … 1907 1907 } 1908 1908 else if(MdiInfo[WndNum].DocType==WNDTYPE_MENU){ 1909 for(i=0;i< ProjectInfo.NumberOfMenu;i++){1910 if(lstrcmp(MdiInfo[WndNum].path, ProjectInfo.pMenuInfo[i].IdName)==0){1909 for(i=0;i<projectInfo.NumberOfMenu;i++){ 1910 if(lstrcmp(MdiInfo[WndNum].path,projectInfo.pMenuInfo[i].IdName)==0){ 1911 1911 SendMessage(hCloseChild,WM_CLOSE,0,0); 1912 1912 break; … … 1915 1915 } 1916 1916 else if(MdiInfo[WndNum].DocType==WNDTYPE_ICONEDIT){ 1917 for(i=0; ProjectInfo.res.NumberOfIconRes;i++){1918 lstrcpy(temporary, ProjectInfo.res.pIconResInfo[i].path);1919 GetFullPath(temporary, ProjectInfo.dir);1917 for(i=0;projectInfo.res.NumberOfIconRes;i++){ 1918 lstrcpy(temporary,projectInfo.res.pIconResInfo[i].path); 1919 GetFullPath(temporary,projectInfo.dir); 1920 1920 if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){ 1921 1921 SendMessage(hCloseChild,WM_CLOSE,0,0); … … 1927 1927 1928 1928 //ファイル情報のメモリを解放 1929 delete ProjectInfo.pobj_DBFileInfo;1929 delete projectInfo.pobj_DBFileInfo; 1930 1930 1931 1931 //ブレークポイントのオブジェクトを解放 1932 delete ProjectInfo.pobj_DBBreakPoint;1932 delete projectInfo.pobj_DBBreakPoint; 1933 1933 1934 1934 //ウィンドウ情報のメモリを解放 1935 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1935 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1936 1936 { 1937 1937 HeapDefaultFree(pWindowInfo->caption); … … 1957 1957 pWindowInfo->childWindowInfos.clear(); 1958 1958 } 1959 ProjectInfo.windowInfos.Clear();1959 projectInfo.windowInfos.Clear(); 1960 1960 1961 1961 //メニュー情報のメモリを解放 1962 HeapMenuDataFree( ProjectInfo.pMenuInfo,ProjectInfo.NumberOfMenu,0);1963 HeapDefaultFree( ProjectInfo.pMenuInfo);1962 HeapMenuDataFree(projectInfo.pMenuInfo,projectInfo.NumberOfMenu,0); 1963 HeapDefaultFree(projectInfo.pMenuInfo); 1964 1964 1965 1965 //リソースのメモリを解放 1966 for(i=0;i< ProjectInfo.res.NumberOfCursorRes;i++){1967 HeapDefaultFree( ProjectInfo.res.pCursorResInfo[i].IdName);1968 HeapDefaultFree( ProjectInfo.res.pCursorResInfo[i].path);1969 } 1970 HeapDefaultFree( ProjectInfo.res.pCursorResInfo);1971 for(i=0;i< ProjectInfo.res.NumberOfBitmapRes;i++){1972 HeapDefaultFree( ProjectInfo.res.pBitmapResInfo[i].IdName);1973 HeapDefaultFree( ProjectInfo.res.pBitmapResInfo[i].path);1974 } 1975 HeapDefaultFree( ProjectInfo.res.pBitmapResInfo);1976 for(i=0;i< ProjectInfo.res.NumberOfIconRes;i++){1977 HeapDefaultFree( ProjectInfo.res.pIconResInfo[i].IdName);1978 HeapDefaultFree( ProjectInfo.res.pIconResInfo[i].path);1979 } 1980 HeapDefaultFree( ProjectInfo.res.pIconResInfo);1966 for(i=0;i<projectInfo.res.NumberOfCursorRes;i++){ 1967 HeapDefaultFree(projectInfo.res.pCursorResInfo[i].IdName); 1968 HeapDefaultFree(projectInfo.res.pCursorResInfo[i].path); 1969 } 1970 HeapDefaultFree(projectInfo.res.pCursorResInfo); 1971 for(i=0;i<projectInfo.res.NumberOfBitmapRes;i++){ 1972 HeapDefaultFree(projectInfo.res.pBitmapResInfo[i].IdName); 1973 HeapDefaultFree(projectInfo.res.pBitmapResInfo[i].path); 1974 } 1975 HeapDefaultFree(projectInfo.res.pBitmapResInfo); 1976 for(i=0;i<projectInfo.res.NumberOfIconRes;i++){ 1977 HeapDefaultFree(projectInfo.res.pIconResInfo[i].IdName); 1978 HeapDefaultFree(projectInfo.res.pIconResInfo[i].path); 1979 } 1980 HeapDefaultFree(projectInfo.res.pIconResInfo); 1981 1981 1982 1982 //プロジェクト ビューを非表示にする … … 1992 1992 SetWindowText(hOwner,APPLICATION_NAME); 1993 1993 1994 ProjectInfo.name[0]=0;1994 projectInfo.name[0]=0; 1995 1995 1996 1996 //メニュー状態を設定 … … 2017 2017 WndNum=GetWndNum(hChild); 2018 2018 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum].DocType)){ 2019 for(i=0;i< ProjectInfo.pobj_DBFileInfo->iNum;i++){2020 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary);2019 for(i=0;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 2020 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 2021 2021 if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){ 2022 2022 TextEdit_GetSel(WndNum,&CharRange); … … 2032 2032 2033 2033 sprintf(buffer+i2,"text,\"%s\",%d,%d,%d,%d\r\n", 2034 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->m_path,2034 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->m_path, 2035 2035 pos.x, 2036 2036 pos.y, … … 2043 2043 } 2044 2044 else if(MdiInfo[WndNum].DocType==WNDTYPE_RAD){ 2045 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )2045 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 2046 2046 { 2047 2047 if(lstrcmpi(MdiInfo[WndNum].path,pWindowInfo->GetName().c_str())==0){ … … 2053 2053 } 2054 2054 else if(MdiInfo[WndNum].DocType==WNDTYPE_MENU){ 2055 for(i=0;i< ProjectInfo.NumberOfMenu;i++){2056 if(lstrcmpi(MdiInfo[WndNum].path, ProjectInfo.pMenuInfo[i].IdName)==0){2055 for(i=0;i<projectInfo.NumberOfMenu;i++){ 2056 if(lstrcmpi(MdiInfo[WndNum].path,projectInfo.pMenuInfo[i].IdName)==0){ 2057 2057 sprintf(buffer+i2,"menu,%s\r\n",MdiInfo[WndNum].path); 2058 2058 i2+=lstrlen(buffer+i2); … … 2062 2062 } 2063 2063 else if(MdiInfo[WndNum].DocType==WNDTYPE_ICONEDIT){ 2064 for(i=0;i< ProjectInfo.res.NumberOfIconRes;i++){2065 lstrcpy(temporary, ProjectInfo.res.pIconResInfo[i].path);2066 GetFullPath(temporary, ProjectInfo.dir);2064 for(i=0;i<projectInfo.res.NumberOfIconRes;i++){ 2065 lstrcpy(temporary,projectInfo.res.pIconResInfo[i].path); 2066 GetFullPath(temporary,projectInfo.dir); 2067 2067 if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){ 2068 sprintf(buffer+i2,"icon,%s\r\n", ProjectInfo.res.pIconResInfo[i].path);2068 sprintf(buffer+i2,"icon,%s\r\n",projectInfo.res.pIconResInfo[i].path); 2069 2069 i2+=lstrlen(buffer+i2); 2070 2070 break; … … 2116 2116 2117 2117 //保存 2118 sprintf(temporary,"%s%s.wrk", ProjectInfo.dir,ProjectInfo.name);2118 sprintf(temporary,"%s%s.wrk",projectInfo.dir,projectInfo.name); 2119 2119 WriteBuffer(temporary,buffer,i2); 2120 2120 } … … 2129 2129 2130 2130 //プロジェクトファイルのバージョンを設定 2131 ProjectInfo.dwVersion=PROJECT_VERSION;2131 projectInfo.dwVersion=PROJECT_VERSION; 2132 2132 2133 2133 hChild=GetWindow(hClient,GW_CHILD); … … 2136 2136 if(IS_DOCUMENT_TEXT(MdiInfo[WndNum].DocType)){ 2137 2137 if( MdiInfo[WndNum].pMdiTextEdit->IsModified() ){ 2138 for(i=0;i< ProjectInfo.pobj_DBFileInfo->iNum;i++){2139 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary);2138 for(i=0;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 2139 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 2140 2140 if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){ 2141 2141 SaveDocument(hChild,NULL); … … 2147 2147 if(MdiInfo[WndNum].DocType==WNDTYPE_ICONEDIT){ 2148 2148 if(MdiInfo[WndNum].MdiIconEditInfo->bModify){ 2149 for(i=0;i< ProjectInfo.res.NumberOfIconRes;i++){2150 lstrcpy(temporary, ProjectInfo.res.pIconResInfo[i].path);2151 GetFullPath(temporary, ProjectInfo.dir);2149 for(i=0;i<projectInfo.res.NumberOfIconRes;i++){ 2150 lstrcpy(temporary,projectInfo.res.pIconResInfo[i].path); 2151 GetFullPath(temporary,projectInfo.dir); 2152 2152 if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){ 2153 2153 SaveDocument(hChild,NULL); … … 2165 2165 lstrcpy(buffer,"\' ActiveBasic Project file.\r\n\r\n"); 2166 2166 i2=lstrlen(buffer); 2167 sprintf(buffer+i2,"#VERSION=%d\r\n\r\n", ProjectInfo.dwVersion);2167 sprintf(buffer+i2,"#VERSION=%d\r\n\r\n",projectInfo.dwVersion); 2168 2168 i2+=lstrlen(buffer+i2); 2169 sprintf(buffer+i2,"#MODULETYPE=%d\r\n\r\n", ProjectInfo.dwModuleType);2169 sprintf(buffer+i2,"#MODULETYPE=%d\r\n\r\n",projectInfo.dwModuleType); 2170 2170 i2+=lstrlen(buffer+i2); 2171 sprintf(buffer+i2,"#NAME=%s\r\n\r\n", ProjectInfo.name);2171 sprintf(buffer+i2,"#NAME=%s\r\n\r\n",projectInfo.name); 2172 2172 i2+=lstrlen(buffer+i2); 2173 2173 extern HWND hSelectCompilerCombo; 2174 2174 if(SendMessage(hSelectCompilerCombo,CB_GETCURSEL,0,0)==0){ 2175 sprintf(buffer+i2,"#PLATFORM=32\r\n\r\n", ProjectInfo.name);2175 sprintf(buffer+i2,"#PLATFORM=32\r\n\r\n",projectInfo.name); 2176 2176 i2+=lstrlen(buffer+i2); 2177 2177 } 2178 2178 else{ 2179 sprintf(buffer+i2,"#PLATFORM=64\r\n\r\n", ProjectInfo.name);2179 sprintf(buffer+i2,"#PLATFORM=64\r\n\r\n",projectInfo.name); 2180 2180 i2+=lstrlen(buffer+i2); 2181 2181 } 2182 sprintf(buffer+i2,"#USEWINDOW=%d\r\n\r\n", ProjectInfo.windowInfos.size());2182 sprintf(buffer+i2,"#USEWINDOW=%d\r\n\r\n",projectInfo.windowInfos.size()); 2183 2183 i2+=lstrlen(buffer+i2); 2184 sprintf(buffer+i2,"#OPTION=&H%08x\r\n\r\n", ProjectInfo.dwOption);2184 sprintf(buffer+i2,"#OPTION=&H%08x\r\n\r\n",projectInfo.dwOption); 2185 2185 i2+=lstrlen(buffer+i2); 2186 sprintf(buffer+i2,"#OUTPUT_RELEASE=%s\r\n\r\n", ProjectInfo.lpszOutput_Release);2186 sprintf(buffer+i2,"#OUTPUT_RELEASE=%s\r\n\r\n",projectInfo.lpszOutput_Release); 2187 2187 i2+=lstrlen(buffer+i2); 2188 sprintf(buffer+i2,"#OUTPUT_DEBUG=%s\r\n\r\n", ProjectInfo.lpszOutput_Debug);2188 sprintf(buffer+i2,"#OUTPUT_DEBUG=%s\r\n\r\n",projectInfo.lpszOutput_Debug); 2189 2189 i2+=lstrlen(buffer+i2); 2190 sprintf(buffer+i2,"#MANIFEST=%s\r\n\r\n", ProjectInfo.szManifestPath);2190 sprintf(buffer+i2,"#MANIFEST=%s\r\n\r\n",projectInfo.szManifestPath); 2191 2191 i2+=lstrlen(buffer+i2); 2192 sprintf(buffer+i2,"#DEBUG_CMD_LINE=%s\r\n\r\n", ProjectInfo.szCmdLine);2192 sprintf(buffer+i2,"#DEBUG_CMD_LINE=%s\r\n\r\n",projectInfo.szCmdLine); 2193 2193 i2+=lstrlen(buffer+i2); 2194 sprintf(buffer+i2,"#DEBUG_EXE_PATH=%s\r\n\r\n", ProjectInfo.szExePath);2194 sprintf(buffer+i2,"#DEBUG_EXE_PATH=%s\r\n\r\n",projectInfo.szExePath); 2195 2195 i2+=lstrlen(buffer+i2); 2196 if( ProjectInfo.ResourceFileName[0]){2197 sprintf(buffer+i2,"#RESOURCE=%s\r\n\r\n", ProjectInfo.ResourceFileName);2196 if(projectInfo.ResourceFileName[0]){ 2197 sprintf(buffer+i2,"#RESOURCE=%s\r\n\r\n",projectInfo.ResourceFileName); 2198 2198 i2+=lstrlen(buffer+i2); 2199 2199 } … … 2204 2204 sprintf(buffer+i2,"#SOURCE\r\n"); 2205 2205 i2+=lstrlen(buffer+i2); 2206 for(i=0;i< ProjectInfo.pobj_DBFileInfo->iNum;i++){2207 sprintf(buffer+i2,"%s\r\n", ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->m_path);2206 for(i=0;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 2207 sprintf(buffer+i2,"%s\r\n",projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->m_path); 2208 2208 i2+=lstrlen(buffer+i2); 2209 2209 } 2210 2210 2211 2211 //保存 2212 sprintf(temporary,"%s%s.pj", ProjectInfo.dir,ProjectInfo.name);2212 sprintf(temporary,"%s%s.pj",projectInfo.dir,projectInfo.name); 2213 2213 WriteBuffer(temporary,buffer,i2); 2214 2214 … … 2216 2216 ////////////////////////////////// 2217 2217 // リソースファイル(*.rc、resource.ab)を作成 2218 if( ProjectInfo.ResourceFileName[0]){2218 if(projectInfo.ResourceFileName[0]){ 2219 2219 i2=0; 2220 2220 i3=101; 2221 for(i=0;i< ProjectInfo.res.NumberOfCursorRes;i++,i3++){2221 for(i=0;i<projectInfo.res.NumberOfCursorRes;i++,i3++){ 2222 2222 sprintf(buffer+i2,"Const %s=%d\r\n", 2223 ProjectInfo.res.pCursorResInfo[i].IdName,2223 projectInfo.res.pCursorResInfo[i].IdName, 2224 2224 i3); 2225 2225 i2+=lstrlen(buffer+i2); 2226 2226 } 2227 for(i=0;i< ProjectInfo.res.NumberOfBitmapRes;i++,i3++){2227 for(i=0;i<projectInfo.res.NumberOfBitmapRes;i++,i3++){ 2228 2228 sprintf(buffer+i2,"Const %s=%d\r\n", 2229 ProjectInfo.res.pBitmapResInfo[i].IdName,2229 projectInfo.res.pBitmapResInfo[i].IdName, 2230 2230 i3); 2231 2231 i2+=lstrlen(buffer+i2); 2232 2232 } 2233 for(i=0;i< ProjectInfo.res.NumberOfIconRes;i++,i3++){2233 for(i=0;i<projectInfo.res.NumberOfIconRes;i++,i3++){ 2234 2234 sprintf(buffer+i2,"Const %s=%d\r\n", 2235 ProjectInfo.res.pIconResInfo[i].IdName,2235 projectInfo.res.pIconResInfo[i].IdName, 2236 2236 i3); 2237 2237 i2+=lstrlen(buffer+i2); … … 2240 2240 //保存(resource.ab) 2241 2241 lstrcpy(temporary,"resource.ab"); 2242 GetFullPath(temporary, ProjectInfo.dir);2242 GetFullPath(temporary,projectInfo.dir); 2243 2243 WriteBuffer(temporary,buffer,i2); 2244 2244 2245 2245 i2=0; 2246 for(i=0;i< ProjectInfo.res.NumberOfCursorRes;i++){2246 for(i=0;i<projectInfo.res.NumberOfCursorRes;i++){ 2247 2247 sprintf(buffer+i2,"%s CURSOR \"%s\"\r\n", 2248 ProjectInfo.res.pCursorResInfo[i].IdName,2249 ProjectInfo.res.pCursorResInfo[i].path);2248 projectInfo.res.pCursorResInfo[i].IdName, 2249 projectInfo.res.pCursorResInfo[i].path); 2250 2250 i2+=lstrlen(buffer+i2); 2251 2251 } 2252 for(i=0;i< ProjectInfo.res.NumberOfBitmapRes;i++){2252 for(i=0;i<projectInfo.res.NumberOfBitmapRes;i++){ 2253 2253 sprintf(buffer+i2,"%s BITMAP \"%s\"\r\n", 2254 ProjectInfo.res.pBitmapResInfo[i].IdName,2255 ProjectInfo.res.pBitmapResInfo[i].path);2254 projectInfo.res.pBitmapResInfo[i].IdName, 2255 projectInfo.res.pBitmapResInfo[i].path); 2256 2256 i2+=lstrlen(buffer+i2); 2257 2257 } 2258 for(i=0;i< ProjectInfo.res.NumberOfIconRes;i++){2258 for(i=0;i<projectInfo.res.NumberOfIconRes;i++){ 2259 2259 sprintf(buffer+i2,"%s ICON \"%s\"\r\n", 2260 ProjectInfo.res.pIconResInfo[i].IdName,2261 ProjectInfo.res.pIconResInfo[i].path);2260 projectInfo.res.pIconResInfo[i].IdName, 2261 projectInfo.res.pIconResInfo[i].path); 2262 2262 i2+=lstrlen(buffer+i2); 2263 2263 } 2264 2264 2265 2265 //マニフェスト 2266 if( ProjectInfo.dwOption&PJ_OP_RC_MANIFEST){2266 if(projectInfo.dwOption&PJ_OP_RC_MANIFEST){ 2267 2267 sprintf(buffer+i2,"CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST \"%s\"\r\n", 2268 ProjectInfo.szManifestPath);2268 projectInfo.szManifestPath); 2269 2269 i2+=lstrlen(buffer+i2); 2270 2270 } 2271 2271 2272 2272 //保存 2273 lstrcpy(temporary, ProjectInfo.ResourceFileName);2274 GetFullPath(temporary, ProjectInfo.dir);2273 lstrcpy(temporary,projectInfo.ResourceFileName); 2274 GetFullPath(temporary,projectInfo.dir); 2275 2275 WriteBuffer(temporary,buffer,i2); 2276 2276 } … … 2282 2282 lstrcpy(buffer,"' インデックス プログラム\r\n"); 2283 2283 i2=lstrlen(buffer); 2284 if( ProjectInfo.dwOption&PJ_OP_SOURCE_MASK){2285 if( ProjectInfo.dwOption&PJ_OP_STRICT){2284 if(projectInfo.dwOption&PJ_OP_SOURCE_MASK){ 2285 if(projectInfo.dwOption&PJ_OP_STRICT){ 2286 2286 /* #strictディレクティブは今は使われていない 2287 2287 lstrcpy(buffer+i2,"\r\n"); … … 2297 2297 lstrcpy(buffer+i2,"'Win32APIの定義ファイル\r\n"); 2298 2298 i2+=lstrlen(buffer+i2); 2299 if( ProjectInfo.dwOption&PJ_OP_MMSYSTEM){2299 if(projectInfo.dwOption&PJ_OP_MMSYSTEM){ 2300 2300 lstrcpy(buffer+i2,"#include <api_mmsys.sbp>\r\n"); 2301 2301 i2+=lstrlen(buffer+i2); 2302 2302 } 2303 if( ProjectInfo.dwOption&PJ_OP_COMMCTRL){2303 if(projectInfo.dwOption&PJ_OP_COMMCTRL){ 2304 2304 lstrcpy(buffer+i2,"#include <api_commctrl.sbp>\r\n"); 2305 2305 i2+=lstrlen(buffer+i2); 2306 2306 } 2307 if( ProjectInfo.dwOption&PJ_OP_RICHEDIT){2307 if(projectInfo.dwOption&PJ_OP_RICHEDIT){ 2308 2308 lstrcpy(buffer+i2,"#include <api_richedit.sbp>\r\n"); 2309 2309 i2+=lstrlen(buffer+i2); 2310 2310 } 2311 if( ProjectInfo.dwOption&PJ_OP_WINSOCK){2311 if(projectInfo.dwOption&PJ_OP_WINSOCK){ 2312 2312 lstrcpy(buffer+i2,"#include <api_winsock2.sbp>\r\n"); 2313 2313 i2+=lstrlen(buffer+i2); 2314 2314 } 2315 2315 } 2316 if( ! ProjectInfo.windowInfos.empty() )2316 if( !projectInfo.windowInfos.empty() ) 2317 2317 { 2318 2318 lstrcpy(buffer+i2,"\r\n"); … … 2323 2323 i2+=lstrlen(buffer+i2); 2324 2324 } 2325 if( ProjectInfo.pobj_DBFileInfo->iNum>1){2325 if(projectInfo.pobj_DBFileInfo->iNum>1){ 2326 2326 lstrcpy(buffer+i2,"\r\n"); 2327 2327 i2+=lstrlen(buffer+i2); 2328 2328 lstrcpy(buffer+i2,"'プロジェクト内のプログラム ファイル\r\n"); 2329 2329 i2+=lstrlen(buffer+i2); 2330 for(i=1;i< ProjectInfo.pobj_DBFileInfo->iNum;i++){2330 for(i=1;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 2331 2331 //メインファイルは含まない 2332 sprintf(buffer+i2,"#include \"%s\"\r\n", ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->m_path);2332 sprintf(buffer+i2,"#include \"%s\"\r\n",projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->m_path); 2333 2333 i2+=lstrlen(buffer+i2); 2334 2334 lstrcpy(buffer+i2,"_ClearNamespaceImported\r\n"); … … 2336 2336 } 2337 2337 } 2338 if( ! ProjectInfo.windowInfos.empty() )2338 if( !projectInfo.windowInfos.empty() ) 2339 2339 { 2340 2340 lstrcpy(buffer+i2,"\r\n"); … … 2345 2345 i2+=lstrlen(buffer+i2); 2346 2346 } 2347 if( ProjectInfo.ResourceFileName[0]){2347 if(projectInfo.ResourceFileName[0]){ 2348 2348 //リソースファイルが含まれる場合 2349 2349 lstrcpy(buffer+i2,"\r\n"); … … 2353 2353 lstrcpy(buffer+i2,"#include \"resource.ab\"\r\n"); 2354 2354 i2+=lstrlen(buffer+i2); 2355 sprintf(buffer+i2,"#resource \"%s.rc\"\r\n", ProjectInfo.name);2355 sprintf(buffer+i2,"#resource \"%s.rc\"\r\n",projectInfo.name); 2356 2356 i2+=lstrlen(buffer+i2); 2357 2357 } 2358 2358 2359 2359 //保存 2360 sprintf(temporary,"%s%s.idx", ProjectInfo.dir,ProjectInfo.name);2360 sprintf(temporary,"%s%s.idx",projectInfo.dir,projectInfo.name); 2361 2361 WriteBuffer(temporary,buffer,i2); 2362 2362 2363 2363 2364 if( ! ProjectInfo.windowInfos.empty() )2364 if( !projectInfo.windowInfos.empty() ) 2365 2365 { 2366 2366 ///////////////////////////////////////////////////// 2367 2367 //ウィンドウ関連ファイル(*.wnd)を作成、保存 2368 if( ProjectInfo.ModifyOfMaterial){2369 sprintf(temporary,"%s%s.wnd", ProjectInfo.dir,ProjectInfo.name);2370 SaveWindowFile( temporary, ProjectInfo.windowInfos );2368 if(projectInfo.ModifyOfMaterial){ 2369 sprintf(temporary,"%s%s.wnd",projectInfo.dir,projectInfo.name); 2370 SaveWindowFile( temporary, projectInfo.windowInfos ); 2371 2371 } 2372 2372 … … 2380 2380 SetStatusText(""); 2381 2381 2382 ProjectInfo.modify=0;2383 ProjectInfo.ModifuOfResource=0;2382 projectInfo.modify=0; 2383 projectInfo.ModifuOfResource=0; 2384 2384 } 2385 2385 … … 2388 2388 WIN32_FIND_DATA wfd; 2389 2389 2390 if( ProjectInfo.pobj_DBFileInfo->iNum==0){2390 if(projectInfo.pobj_DBFileInfo->iNum==0){ 2391 2391 //"プログラム ファイルがプロジェクトに存在しません。" 2392 2392 MessageBox(hOwner,STRING_ERROR_NOFILE,STRING_ERROR,MB_OK|MB_ICONEXCLAMATION); … … 2404 2404 2405 2405 //プロジェクト構造のバージョンが違う時は、再保存する 2406 if( ProjectInfo.dwVersion<PROJECT_VERSION)2407 ProjectInfo.ModifyOfMaterial=1;2406 if(projectInfo.dwVersion<PROJECT_VERSION) 2407 projectInfo.ModifyOfMaterial=1; 2408 2408 2409 2409 //保存確認 … … 2419 2419 FILETIME SourceTime,ExeTime; 2420 2420 2421 if(bDebug) lstrcpy(temporary, ProjectInfo.lpszOutput_Debug);2422 else lstrcpy(temporary, ProjectInfo.lpszOutput_Release);2423 GetFullPath(temporary, ProjectInfo.dir);2421 if(bDebug) lstrcpy(temporary,projectInfo.lpszOutput_Debug); 2422 else lstrcpy(temporary,projectInfo.lpszOutput_Release); 2423 GetFullPath(temporary,projectInfo.dir); 2424 2424 2425 2425 hFind=FindFirstFile(temporary,&wfd); … … 2431 2431 CloseHandle(hFile); 2432 2432 2433 for(i2=0;i2< ProjectInfo.pobj_DBFileInfo->iNum;i2++){2434 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i2]->GetFullPath(temporary);2433 for(i2=0;i2<projectInfo.pobj_DBFileInfo->iNum;i2++){ 2434 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i2]->GetFullPath(temporary); 2435 2435 hFile=CreateFile(temporary,GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 2436 2436 GetFileTime(hFile,NULL,NULL,&SourceTime); … … 2441 2441 SourceTime.dwLowDateTime>ExeTime.dwLowDateTime) return 1; 2442 2442 } 2443 if( ! ProjectInfo.windowInfos.empty() )2443 if( !projectInfo.windowInfos.empty() ) 2444 2444 { 2445 2445 //CallBack.wbp 2446 2446 lstrcpy(temporary,"CallBack.wbp"); 2447 GetFullPath(temporary, ProjectInfo.dir);2447 GetFullPath(temporary,projectInfo.dir); 2448 2448 hFile=CreateFile(temporary,GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 2449 2449 GetFileTime(hFile,NULL,NULL,&SourceTime); … … 2455 2455 //MakeWindow.wbp 2456 2456 lstrcpy(temporary,"MakeWindow.wbp"); 2457 GetFullPath(temporary, ProjectInfo.dir);2457 GetFullPath(temporary,projectInfo.dir); 2458 2458 hFile=CreateFile(temporary,GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 2459 2459 GetFileTime(hFile,NULL,NULL,&SourceTime); -
trunk/ab5.0/abdev/abdev/RadProc.cpp
r617 r618 164 164 char temporary[MAX_PATH]; 165 165 166 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];166 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 167 167 168 168 CHILDINFO *pChildInfo = new CHILDINFO(); … … 269 269 extern MDIINFO MdiInfo[MAX_WNDNUM]; 270 270 271 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];271 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 272 272 273 273 //変更情報 … … 346 346 RECT rect; 347 347 348 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];348 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 349 349 350 350 hdc=GetDC(hwnd); … … 449 449 extern MDIINFO MdiInfo[MAX_WNDNUM]; 450 450 451 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];451 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 452 452 453 453 if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]==SELECT_WINDOW){ … … 546 546 SCROLLINFO ScrollInfo; 547 547 548 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];548 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 549 549 550 550 DestroyWindow(MdiInfo[WndNum].MdiRadInfo->hProp_Dlg); … … 607 607 int i; 608 608 609 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];609 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 610 610 611 611 for(i=pWindowInfo->childWindowInfos.size()-1;i>=0;i--){ … … 669 669 670 670 //サポートダイアログの内容をセット 671 SetSupportDlgData( WndNum, * ProjectInfo.windowInfos[WndInfoNum] );671 SetSupportDlgData( WndNum, *projectInfo.windowInfos[WndInfoNum] ); 672 672 } 673 673 void SetItemNumOnFrame(int WndNum,int WndInfoNum,RECT *pRect){ … … 676 676 RECT rect; 677 677 678 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];678 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 679 679 680 680 for(i=1;i<MAX_RAD_SELITEM;i++) MdiInfo[WndNum].MdiRadInfo->SelectingItem[i]=-1; … … 701 701 RECT rect; 702 702 703 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];703 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 704 704 705 705 if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[1]!=-1){ -
trunk/ab5.0/abdev/abdev/RadSupport.cpp
r617 r618 50 50 } 51 51 52 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];52 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 53 53 54 54 if(pWindowInfo->style&WS_CHILD){ … … 106 106 lstrcpy(temporary,pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path); 107 107 else{ 108 for(i3=0;i3< ProjectInfo.res.NumberOfIconRes;i3++){108 for(i3=0;i3<projectInfo.res.NumberOfIconRes;i3++){ 109 109 if(lstrcmp(pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path, 110 ProjectInfo.res.pIconResInfo[i3].IdName)==0) break;110 projectInfo.res.pIconResInfo[i3].IdName)==0) break; 111 111 } 112 if(i3== ProjectInfo.res.NumberOfIconRes) temporary[0]=0;113 else lstrcpy(temporary, ProjectInfo.res.pIconResInfo[i3].path);112 if(i3==projectInfo.res.NumberOfIconRes) temporary[0]=0; 113 else lstrcpy(temporary,projectInfo.res.pIconResInfo[i3].path); 114 114 } 115 115 if(temporary[0]){ 116 GetFullPath(temporary, ProjectInfo.dir);116 GetFullPath(temporary,projectInfo.dir); 117 117 lphImage[i2]=LoadImage(hInst,temporary,IMAGE_ICON,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE); 118 118 … … 124 124 lstrcpy(temporary,pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path); 125 125 else{ 126 for(i3=0;i3< ProjectInfo.res.NumberOfBitmapRes;i3++){126 for(i3=0;i3<projectInfo.res.NumberOfBitmapRes;i3++){ 127 127 if(lstrcmp(pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path, 128 ProjectInfo.res.pBitmapResInfo[i3].IdName)==0) break;128 projectInfo.res.pBitmapResInfo[i3].IdName)==0) break; 129 129 } 130 if(i3== ProjectInfo.res.NumberOfBitmapRes) temporary[0]=0;131 else lstrcpy(temporary, ProjectInfo.res.pBitmapResInfo[i3].path);130 if(i3==projectInfo.res.NumberOfBitmapRes) temporary[0]=0; 131 else lstrcpy(temporary,projectInfo.res.pBitmapResInfo[i3].path); 132 132 } 133 133 if(temporary[0]){ 134 GetFullPath(temporary, ProjectInfo.dir);134 GetFullPath(temporary,projectInfo.dir); 135 135 lphImage[i2]=LoadImage(hInst,temporary,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE); 136 136 -
trunk/ab5.0/abdev/abdev/RadToolsAndPropertyProc.cpp
r617 r618 564 564 SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_BGCOLOR2); 565 565 566 for(i3=0;i3< ProjectInfo.res.NumberOfBitmapRes;i3++)567 SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long) ProjectInfo.res.pBitmapResInfo[i3].IdName);566 for(i3=0;i3<projectInfo.res.NumberOfBitmapRes;i3++) 567 SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)projectInfo.res.pBitmapResInfo[i3].IdName); 568 568 if(pWindowInfo->type==WNDTYPE_MODALDLG|| 569 569 pWindowInfo->type==WNDTYPE_MODELESSDLG){ … … 594 594 SendDlgItemMessage(hwnd,IDC_WINDOWMENU,CB_ADDSTRING,0,(long)STRING_NONE_); 595 595 596 for(i3=0,i4=0;i3< ProjectInfo.NumberOfMenu;i3++){596 for(i3=0,i4=0;i3<projectInfo.NumberOfMenu;i3++){ 597 597 if(pWindowInfo->MenuID){ 598 if(lstrcmpi( ProjectInfo.pMenuInfo[i3].IdName,pWindowInfo->MenuID)==0)598 if(lstrcmpi(projectInfo.pMenuInfo[i3].IdName,pWindowInfo->MenuID)==0) 599 599 i4=i3+1; 600 600 } 601 SendDlgItemMessage(hwnd,IDC_WINDOWMENU,CB_ADDSTRING,0,(long) ProjectInfo.pMenuInfo[i3].IdName);601 SendDlgItemMessage(hwnd,IDC_WINDOWMENU,CB_ADDSTRING,0,(long)projectInfo.pMenuInfo[i3].IdName); 602 602 } 603 603 if(i4==0&&pWindowInfo->MenuID){ … … 617 617 SendDlgItemMessage(hwnd,IDC_ICONRES,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_ICONDEFAULT); 618 618 619 for(i3=0,i4=0;i3< ProjectInfo.res.NumberOfIconRes;i3++){620 SendDlgItemMessage(hwnd,IDC_ICONRES,CB_ADDSTRING,0,(long) ProjectInfo.res.pIconResInfo[i3].IdName);621 622 if(lstrcmp(pWindowInfo->IconResName, ProjectInfo.res.pIconResInfo[i3].IdName)==0)619 for(i3=0,i4=0;i3<projectInfo.res.NumberOfIconRes;i3++){ 620 SendDlgItemMessage(hwnd,IDC_ICONRES,CB_ADDSTRING,0,(long)projectInfo.res.pIconResInfo[i3].IdName); 621 622 if(lstrcmp(pWindowInfo->IconResName,projectInfo.res.pIconResInfo[i3].IdName)==0) 623 623 i4=i3+1; 624 624 } … … 1299 1299 extern MDIINFO MdiInfo[MAX_WNDNUM]; 1300 1300 1301 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];1301 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 1302 1302 1303 1303 switch(LOWORD(wParam)){ … … 1505 1505 if(i==-1) return 1; 1506 1506 i2=GetWndInfoNum(MdiInfo[i].path); 1507 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[i2];1507 WindowInfo *pWindowInfo = projectInfo.windowInfos[i2]; 1508 1508 1509 1509 //共通スタイル … … 1732 1732 if(i==-1) return 1; 1733 1733 i2=GetWndInfoNum(MdiInfo[i].path); 1734 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[i2];1734 WindowInfo *pWindowInfo = projectInfo.windowInfos[i2]; 1735 1735 1736 1736 //共通スタイル … … 2014 2014 if(i==-1) return 1; 2015 2015 i2=GetWndInfoNum(MdiInfo[i].path); 2016 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[i2];2016 WindowInfo *pWindowInfo = projectInfo.windowInfos[i2]; 2017 2017 2018 2018 //共通スタイル … … 2727 2727 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){ 2728 2728 //アイコンリソースをコンボボックスに挿入 2729 for(i3=0;i3< ProjectInfo.res.NumberOfIconRes;i3++)2730 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long) ProjectInfo.res.pIconResInfo[i3].IdName);2729 for(i3=0;i3<projectInfo.res.NumberOfIconRes;i3++) 2730 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.res.pIconResInfo[i3].IdName); 2731 2731 } 2732 2732 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){ 2733 2733 //ビットマップリソースをコンボボックスに挿入 2734 for(i3=0;i3< ProjectInfo.res.NumberOfBitmapRes;i3++)2735 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long) ProjectInfo.res.pBitmapResInfo[i3].IdName);2734 for(i3=0;i3<projectInfo.res.NumberOfBitmapRes;i3++) 2735 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.res.pBitmapResInfo[i3].IdName); 2736 2736 } 2737 2737 … … 2816 2816 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){ 2817 2817 //アイコンリソースをコンボボックスに挿入 2818 for(i3=0;i3< ProjectInfo.res.NumberOfIconRes;i3++){2819 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long) ProjectInfo.res.pIconResInfo[i3].IdName);2820 2821 if(lstrcmp(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path, ProjectInfo.res.pIconResInfo[i3].IdName)==0)2818 for(i3=0;i3<projectInfo.res.NumberOfIconRes;i3++){ 2819 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.res.pIconResInfo[i3].IdName); 2820 2821 if(lstrcmp(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path,projectInfo.res.pIconResInfo[i3].IdName)==0) 2822 2822 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); 2823 2823 } … … 2825 2825 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){ 2826 2826 //ビットマップリソースをコンボボックスに挿入 2827 for(i3=0;i3< ProjectInfo.res.NumberOfBitmapRes;i3++){2828 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long) ProjectInfo.res.pBitmapResInfo[i3].IdName);2829 2830 if(lstrcmp(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path, ProjectInfo.res.pBitmapResInfo[i3].IdName)==0)2827 for(i3=0;i3<projectInfo.res.NumberOfBitmapRes;i3++){ 2828 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.res.pBitmapResInfo[i3].IdName); 2829 2830 if(lstrcmp(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path,projectInfo.res.pBitmapResInfo[i3].IdName)==0) 2831 2831 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0); 2832 2832 } … … 2910 2910 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){ 2911 2911 //アイコンリソースをコンボボックスに挿入 2912 for(i3=0;i3< ProjectInfo.res.NumberOfIconRes;i3++)2913 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long) ProjectInfo.res.pIconResInfo[i3].IdName);2912 for(i3=0;i3<projectInfo.res.NumberOfIconRes;i3++) 2913 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.res.pIconResInfo[i3].IdName); 2914 2914 } 2915 2915 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){ 2916 2916 //ビットマップリソースをコンボボックスに挿入 2917 for(i3=0;i3< ProjectInfo.res.NumberOfBitmapRes;i3++)2918 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long) ProjectInfo.res.pBitmapResInfo[i3].IdName);2917 for(i3=0;i3<projectInfo.res.NumberOfBitmapRes;i3++) 2918 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.res.pBitmapResInfo[i3].IdName); 2919 2919 } 2920 2920 break; … … 2953 2953 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo); 2954 2954 2955 GetRelationalPath(temporary, ProjectInfo.dir);2955 GetRelationalPath(temporary,projectInfo.dir); 2956 2956 HeapDefaultFree(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path); 2957 2957 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); -
trunk/ab5.0/abdev/abdev/Rad_UndoRedo.cpp
r617 r618 187 187 } 188 188 189 ProjectInfo.ModifyOfMaterial=1;189 projectInfo.ModifyOfMaterial=1; 190 190 191 191 ResetState_UndoMenu(); … … 374 374 if(pUndoState->NowPos==MAX_UNDONUM) pUndoState->NowPos=0; 375 375 376 ProjectInfo.ModifyOfMaterial=1;376 projectInfo.ModifyOfMaterial=1; 377 377 378 378 ResetState_UndoMenu(); … … 548 548 } 549 549 550 ProjectInfo.ModifyOfMaterial=1;550 projectInfo.ModifyOfMaterial=1; 551 551 552 552 ResetState_UndoMenu(); -
trunk/ab5.0/abdev/abdev/Replace.cpp
r475 r618 114 114 115 115 //ブレークポイントのオフセット分を計算 116 if( ProjectInfo.name[0]){117 ProjectInfo.pobj_DBBreakPoint->replace(116 if(projectInfo.name[0]){ 117 projectInfo.pobj_DBBreakPoint->replace( 118 118 MdiInfo[WndNum].path, 119 119 MdiInfo[WndNum].pMdiTextEdit->buffer, … … 180 180 181 181 182 //if( ProjectInfo.name[0]){182 //if(projectInfo.name[0]){ 183 183 //プロジェクトが開かれているとき 184 184 if(MdiInfo[WndNum].DocType==WNDTYPE_BASIC){ -
trunk/ab5.0/abdev/abdev/Resource.cpp
r613 r618 17 17 HANDLE hFile; 18 18 19 lstrcpy(temporary, ProjectInfo.ResourceFileName);20 GetFullPath(temporary, ProjectInfo.dir);19 lstrcpy(temporary,projectInfo.ResourceFileName); 20 GetFullPath(temporary,projectInfo.dir); 21 21 22 22 hFile=CreateFile(temporary,GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); … … 67 67 68 68 if(lstrcmpi(temporary,"CURSOR")==0){ 69 ProjectInfo.res.pCursorResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,ProjectInfo.res.pCursorResInfo,(ProjectInfo.res.NumberOfCursorRes+1)*sizeof(RESITEMINFO));70 71 ProjectInfo.res.pCursorResInfo[ProjectInfo.res.NumberOfCursorRes].IdName=69 projectInfo.res.pCursorResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,projectInfo.res.pCursorResInfo,(projectInfo.res.NumberOfCursorRes+1)*sizeof(RESITEMINFO)); 70 71 projectInfo.res.pCursorResInfo[projectInfo.res.NumberOfCursorRes].IdName= 72 72 (char *)HeapAlloc(hHeap,0,lstrlen(temp3)+1); 73 lstrcpy( ProjectInfo.res.pCursorResInfo[ProjectInfo.res.NumberOfCursorRes].IdName,temp3);74 75 ProjectInfo.res.pCursorResInfo[ProjectInfo.res.NumberOfCursorRes].path=73 lstrcpy(projectInfo.res.pCursorResInfo[projectInfo.res.NumberOfCursorRes].IdName,temp3); 74 75 projectInfo.res.pCursorResInfo[projectInfo.res.NumberOfCursorRes].path= 76 76 (char *)HeapAlloc(hHeap,0,lstrlen(temp2)+1); 77 lstrcpy( ProjectInfo.res.pCursorResInfo[ProjectInfo.res.NumberOfCursorRes].path,temp2);78 79 ProjectInfo.res.NumberOfCursorRes++;77 lstrcpy(projectInfo.res.pCursorResInfo[projectInfo.res.NumberOfCursorRes].path,temp2); 78 79 projectInfo.res.NumberOfCursorRes++; 80 80 } 81 81 else if(lstrcmpi(temporary,"BITMAP")==0){ 82 ProjectInfo.res.pBitmapResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,ProjectInfo.res.pBitmapResInfo,(ProjectInfo.res.NumberOfBitmapRes+1)*sizeof(RESITEMINFO));83 84 ProjectInfo.res.pBitmapResInfo[ProjectInfo.res.NumberOfBitmapRes].IdName=82 projectInfo.res.pBitmapResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,projectInfo.res.pBitmapResInfo,(projectInfo.res.NumberOfBitmapRes+1)*sizeof(RESITEMINFO)); 83 84 projectInfo.res.pBitmapResInfo[projectInfo.res.NumberOfBitmapRes].IdName= 85 85 (char *)HeapAlloc(hHeap,0,lstrlen(temp3)+1); 86 lstrcpy( ProjectInfo.res.pBitmapResInfo[ProjectInfo.res.NumberOfBitmapRes].IdName,temp3);87 88 ProjectInfo.res.pBitmapResInfo[ProjectInfo.res.NumberOfBitmapRes].path=86 lstrcpy(projectInfo.res.pBitmapResInfo[projectInfo.res.NumberOfBitmapRes].IdName,temp3); 87 88 projectInfo.res.pBitmapResInfo[projectInfo.res.NumberOfBitmapRes].path= 89 89 (char *)HeapAlloc(hHeap,0,lstrlen(temp2)+1); 90 lstrcpy( ProjectInfo.res.pBitmapResInfo[ProjectInfo.res.NumberOfBitmapRes].path,temp2);91 92 ProjectInfo.res.NumberOfBitmapRes++;90 lstrcpy(projectInfo.res.pBitmapResInfo[projectInfo.res.NumberOfBitmapRes].path,temp2); 91 92 projectInfo.res.NumberOfBitmapRes++; 93 93 } 94 94 else if(lstrcmpi(temporary,"ICON")==0){ 95 ProjectInfo.res.pIconResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,ProjectInfo.res.pIconResInfo,(ProjectInfo.res.NumberOfIconRes+1)*sizeof(RESITEMINFO));96 97 ProjectInfo.res.pIconResInfo[ProjectInfo.res.NumberOfIconRes].IdName=95 projectInfo.res.pIconResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,projectInfo.res.pIconResInfo,(projectInfo.res.NumberOfIconRes+1)*sizeof(RESITEMINFO)); 96 97 projectInfo.res.pIconResInfo[projectInfo.res.NumberOfIconRes].IdName= 98 98 (char *)HeapAlloc(hHeap,0,lstrlen(temp3)+1); 99 lstrcpy( ProjectInfo.res.pIconResInfo[ProjectInfo.res.NumberOfIconRes].IdName,temp3);100 101 ProjectInfo.res.pIconResInfo[ProjectInfo.res.NumberOfIconRes].path=99 lstrcpy(projectInfo.res.pIconResInfo[projectInfo.res.NumberOfIconRes].IdName,temp3); 100 101 projectInfo.res.pIconResInfo[projectInfo.res.NumberOfIconRes].path= 102 102 (char *)HeapAlloc(hHeap,0,lstrlen(temp2)+1); 103 lstrcpy( ProjectInfo.res.pIconResInfo[ProjectInfo.res.NumberOfIconRes].path,temp2);104 105 ProjectInfo.res.NumberOfIconRes++;103 lstrcpy(projectInfo.res.pIconResInfo[projectInfo.res.NumberOfIconRes].path,temp2); 104 105 projectInfo.res.NumberOfIconRes++; 106 106 } 107 107 else if(lstrcmpi(temporary,"RT_MANIFEST")==0){ … … 124 124 125 125 //リソースが空の場合 126 if( ProjectInfo.res.NumberOfCursorRes==0&&127 ProjectInfo.res.NumberOfBitmapRes==0&&128 ProjectInfo.res.NumberOfIconRes==0)129 ProjectInfo.ResourceFileName[0]=0;126 if(projectInfo.res.NumberOfCursorRes==0&& 127 projectInfo.res.NumberOfBitmapRes==0&& 128 projectInfo.res.NumberOfIconRes==0) 129 projectInfo.ResourceFileName[0]=0; 130 130 131 131 HeapDefaultFree(buffer); … … 138 138 char temporary[MAX_PATH]; 139 139 140 if(! ProjectInfo.ResourceFileName[0])141 sprintf( ProjectInfo.ResourceFileName,"%s.rc",ProjectInfo.name);140 if(!projectInfo.ResourceFileName[0]) 141 sprintf(projectInfo.ResourceFileName,"%s.rc",projectInfo.name); 142 142 143 143 //"カーソル ファイルを指定してください" 144 144 if(!GetFilePathDialog(hOwner,temporary,CursorFileFilter,STRING_FILEOPENTITLE_CURSOR,TRUE)) return; 145 145 146 GetRelationalPath(temporary, ProjectInfo.dir);147 148 ProjectInfo.res.pCursorResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,ProjectInfo.res.pCursorResInfo,(ProjectInfo.res.NumberOfCursorRes+1)*sizeof(RESITEMINFO));149 150 ProjectInfo.res.pCursorResInfo[ProjectInfo.res.NumberOfCursorRes].path=146 GetRelationalPath(temporary,projectInfo.dir); 147 148 projectInfo.res.pCursorResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,projectInfo.res.pCursorResInfo,(projectInfo.res.NumberOfCursorRes+1)*sizeof(RESITEMINFO)); 149 150 projectInfo.res.pCursorResInfo[projectInfo.res.NumberOfCursorRes].path= 151 151 (char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 152 lstrcpy( ProjectInfo.res.pCursorResInfo[ProjectInfo.res.NumberOfCursorRes].path,temporary);152 lstrcpy(projectInfo.res.pCursorResInfo[projectInfo.res.NumberOfCursorRes].path,temporary); 153 153 154 154 for(i3=1;;i3++){ 155 155 sprintf(temporary,"IDC_CURSOR%d",i3); 156 for(i2=0;i2< ProjectInfo.res.NumberOfCursorRes;i2++){157 if(lstrcmp(temporary, ProjectInfo.res.pCursorResInfo[i2].IdName)==0) break;158 } 159 if(i2== ProjectInfo.res.NumberOfCursorRes) break;160 } 161 162 ProjectInfo.res.pCursorResInfo[ProjectInfo.res.NumberOfCursorRes].IdName=156 for(i2=0;i2<projectInfo.res.NumberOfCursorRes;i2++){ 157 if(lstrcmp(temporary,projectInfo.res.pCursorResInfo[i2].IdName)==0) break; 158 } 159 if(i2==projectInfo.res.NumberOfCursorRes) break; 160 } 161 162 projectInfo.res.pCursorResInfo[projectInfo.res.NumberOfCursorRes].IdName= 163 163 (char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 164 lstrcpy( ProjectInfo.res.pCursorResInfo[ProjectInfo.res.NumberOfCursorRes].IdName,temporary);164 lstrcpy(projectInfo.res.pCursorResInfo[projectInfo.res.NumberOfCursorRes].IdName,temporary); 165 165 166 166 //ツリービューに追加 … … 171 171 tv.item.iImage=6; 172 172 tv.item.iSelectedImage=6; 173 tv.hParent= ProjectInfo.res.hCursorTreeItem;173 tv.hParent=projectInfo.res.hCursorTreeItem; 174 174 tv.item.pszText=temporary; 175 175 176 ProjectInfo.res.pCursorResInfo[ProjectInfo.res.NumberOfCursorRes].hTreeItem=176 projectInfo.res.pCursorResInfo[projectInfo.res.NumberOfCursorRes].hTreeItem= 177 177 TreeView_InsertItem(hMaterialTreeView,&tv); 178 178 179 TreeView_SelectItem(hMaterialTreeView, ProjectInfo.res.pCursorResInfo[ProjectInfo.res.NumberOfCursorRes].hTreeItem);180 181 ProjectInfo.res.NumberOfCursorRes++;182 ProjectInfo.ModifuOfResource=1;179 TreeView_SelectItem(hMaterialTreeView,projectInfo.res.pCursorResInfo[projectInfo.res.NumberOfCursorRes].hTreeItem); 180 181 projectInfo.res.NumberOfCursorRes++; 182 projectInfo.ModifuOfResource=1; 183 183 } 184 184 void Project_Cursor_Delete(int CursorInfoNum){ … … 187 187 //ツリービューから削除 188 188 extern HWND hMaterialTreeView; 189 TreeView_DeleteItem(hMaterialTreeView, ProjectInfo.res.pCursorResInfo[CursorInfoNum].hTreeItem);190 191 // ProjectInfo.pCursorInfo構造体から削除192 HeapDefaultFree( ProjectInfo.res.pCursorResInfo[CursorInfoNum].IdName);193 HeapDefaultFree( ProjectInfo.res.pCursorResInfo[CursorInfoNum].path);194 ProjectInfo.res.NumberOfCursorRes--;195 for(i=CursorInfoNum;i< ProjectInfo.res.NumberOfCursorRes;i++)196 ProjectInfo.res.pCursorResInfo[i]=ProjectInfo.res.pCursorResInfo[i+1];197 198 ProjectInfo.ModifuOfResource=1;189 TreeView_DeleteItem(hMaterialTreeView,projectInfo.res.pCursorResInfo[CursorInfoNum].hTreeItem); 190 191 //projectInfo.pCursorInfo構造体から削除 192 HeapDefaultFree(projectInfo.res.pCursorResInfo[CursorInfoNum].IdName); 193 HeapDefaultFree(projectInfo.res.pCursorResInfo[CursorInfoNum].path); 194 projectInfo.res.NumberOfCursorRes--; 195 for(i=CursorInfoNum;i<projectInfo.res.NumberOfCursorRes;i++) 196 projectInfo.res.pCursorResInfo[i]=projectInfo.res.pCursorResInfo[i+1]; 197 198 projectInfo.ModifuOfResource=1; 199 199 } 200 200 void Project_Cursor_RenameID(int CursorInfoNum){ … … 206 206 TVITEM tvItem; 207 207 208 if(!DialogBoxParam(hResInst,MAKEINTRESOURCE(IDD_INPUTID),hOwner,(DLGPROC)DlgProject_ResourceID_Input,(long) ProjectInfo.res.pCursorResInfo[CursorInfoNum].IdName)) return;208 if(!DialogBoxParam(hResInst,MAKEINTRESOURCE(IDD_INPUTID),hOwner,(DLGPROC)DlgProject_ResourceID_Input,(long)projectInfo.res.pCursorResInfo[CursorInfoNum].IdName)) return; 209 209 210 210 //重複チェック 211 for(i2=0;i2< ProjectInfo.res.NumberOfCursorRes;i2++){211 for(i2=0;i2<projectInfo.res.NumberOfCursorRes;i2++){ 212 212 if(i2==CursorInfoNum) continue; 213 if(lstrcmp(NewIdName, ProjectInfo.res.pCursorResInfo[i2].IdName)==0){213 if(lstrcmp(NewIdName,projectInfo.res.pCursorResInfo[i2].IdName)==0){ 214 214 //"ID \"%s\" は既にプロジェクト内に存在します。" 215 215 sprintf(temporary,STRING_DUPLICATIONERROR_ID_IN_PROJECT,NewIdName); … … 219 219 } 220 220 221 HeapDefaultFree( ProjectInfo.res.pCursorResInfo[CursorInfoNum].IdName);222 ProjectInfo.res.pCursorResInfo[CursorInfoNum].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(NewIdName)+1);223 lstrcpy( ProjectInfo.res.pCursorResInfo[CursorInfoNum].IdName,NewIdName);224 225 tvItem.hItem= ProjectInfo.res.pCursorResInfo[CursorInfoNum].hTreeItem;221 HeapDefaultFree(projectInfo.res.pCursorResInfo[CursorInfoNum].IdName); 222 projectInfo.res.pCursorResInfo[CursorInfoNum].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(NewIdName)+1); 223 lstrcpy(projectInfo.res.pCursorResInfo[CursorInfoNum].IdName,NewIdName); 224 225 tvItem.hItem=projectInfo.res.pCursorResInfo[CursorInfoNum].hTreeItem; 226 226 tvItem.mask=TVIF_TEXT; 227 tvItem.pszText= ProjectInfo.res.pCursorResInfo[CursorInfoNum].IdName;228 tvItem.cchTextMax=lstrlen( ProjectInfo.res.pCursorResInfo[CursorInfoNum].IdName)+1;227 tvItem.pszText=projectInfo.res.pCursorResInfo[CursorInfoNum].IdName; 228 tvItem.cchTextMax=lstrlen(projectInfo.res.pCursorResInfo[CursorInfoNum].IdName)+1; 229 229 TreeView_SetItem(hMaterialTreeView,&tvItem); 230 230 231 ProjectInfo.ModifuOfResource=1;231 projectInfo.ModifuOfResource=1; 232 232 233 233 TreeView_SortChildren(hMaterialTreeView, 234 TreeView_GetParent(hMaterialTreeView, ProjectInfo.res.pCursorResInfo[CursorInfoNum].hTreeItem),234 TreeView_GetParent(hMaterialTreeView,projectInfo.res.pCursorResInfo[CursorInfoNum].hTreeItem), 235 235 0); 236 236 } … … 242 242 char temporary[MAX_PATH]; 243 243 244 if(! ProjectInfo.ResourceFileName[0])245 sprintf( ProjectInfo.ResourceFileName,"%s.rc",ProjectInfo.name);244 if(!projectInfo.ResourceFileName[0]) 245 sprintf(projectInfo.ResourceFileName,"%s.rc",projectInfo.name); 246 246 247 247 //"ビットマップ ファイルを指定してください" 248 248 if(!GetFilePathDialog(hOwner,temporary,BitmapFileFilter,STRING_FILEOPENTITLE_BITMAP,TRUE)) return; 249 249 250 GetRelationalPath(temporary, ProjectInfo.dir);251 252 ProjectInfo.res.pBitmapResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,ProjectInfo.res.pBitmapResInfo,(ProjectInfo.res.NumberOfBitmapRes+1)*sizeof(RESITEMINFO));253 254 ProjectInfo.res.pBitmapResInfo[ProjectInfo.res.NumberOfBitmapRes].path=250 GetRelationalPath(temporary,projectInfo.dir); 251 252 projectInfo.res.pBitmapResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,projectInfo.res.pBitmapResInfo,(projectInfo.res.NumberOfBitmapRes+1)*sizeof(RESITEMINFO)); 253 254 projectInfo.res.pBitmapResInfo[projectInfo.res.NumberOfBitmapRes].path= 255 255 (char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 256 lstrcpy( ProjectInfo.res.pBitmapResInfo[ProjectInfo.res.NumberOfBitmapRes].path,temporary);256 lstrcpy(projectInfo.res.pBitmapResInfo[projectInfo.res.NumberOfBitmapRes].path,temporary); 257 257 258 258 for(i3=1;;i3++){ 259 259 sprintf(temporary,"IDB_BITMAP%d",i3); 260 for(i2=0;i2< ProjectInfo.res.NumberOfBitmapRes;i2++){261 if(lstrcmp(temporary, ProjectInfo.res.pBitmapResInfo[i2].IdName)==0) break;262 } 263 if(i2== ProjectInfo.res.NumberOfBitmapRes) break;264 } 265 266 ProjectInfo.res.pBitmapResInfo[ProjectInfo.res.NumberOfBitmapRes].IdName=260 for(i2=0;i2<projectInfo.res.NumberOfBitmapRes;i2++){ 261 if(lstrcmp(temporary,projectInfo.res.pBitmapResInfo[i2].IdName)==0) break; 262 } 263 if(i2==projectInfo.res.NumberOfBitmapRes) break; 264 } 265 266 projectInfo.res.pBitmapResInfo[projectInfo.res.NumberOfBitmapRes].IdName= 267 267 (char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 268 lstrcpy( ProjectInfo.res.pBitmapResInfo[ProjectInfo.res.NumberOfBitmapRes].IdName,temporary);268 lstrcpy(projectInfo.res.pBitmapResInfo[projectInfo.res.NumberOfBitmapRes].IdName,temporary); 269 269 270 270 //ツリービューに追加 … … 275 275 tv.item.iImage=5; 276 276 tv.item.iSelectedImage=5; 277 tv.hParent= ProjectInfo.res.hBitmapTreeItem;277 tv.hParent=projectInfo.res.hBitmapTreeItem; 278 278 tv.item.pszText=temporary; 279 279 280 ProjectInfo.res.pBitmapResInfo[ProjectInfo.res.NumberOfBitmapRes].hTreeItem=280 projectInfo.res.pBitmapResInfo[projectInfo.res.NumberOfBitmapRes].hTreeItem= 281 281 TreeView_InsertItem(hMaterialTreeView,&tv); 282 282 283 TreeView_SelectItem(hMaterialTreeView, ProjectInfo.res.pBitmapResInfo[ProjectInfo.res.NumberOfBitmapRes].hTreeItem);284 285 ProjectInfo.res.NumberOfBitmapRes++;286 ProjectInfo.ModifuOfResource=1;283 TreeView_SelectItem(hMaterialTreeView,projectInfo.res.pBitmapResInfo[projectInfo.res.NumberOfBitmapRes].hTreeItem); 284 285 projectInfo.res.NumberOfBitmapRes++; 286 projectInfo.ModifuOfResource=1; 287 287 288 288 … … 302 302 //ツリービューから削除 303 303 extern HWND hMaterialTreeView; 304 TreeView_DeleteItem(hMaterialTreeView, ProjectInfo.res.pBitmapResInfo[BitmapInfoNum].hTreeItem);305 306 // ProjectInfo.pBitmapInfo構造体から削除307 HeapDefaultFree( ProjectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName);308 HeapDefaultFree( ProjectInfo.res.pBitmapResInfo[BitmapInfoNum].path);309 ProjectInfo.res.NumberOfBitmapRes--;310 for(i=BitmapInfoNum;i< ProjectInfo.res.NumberOfBitmapRes;i++)311 ProjectInfo.res.pBitmapResInfo[i]=ProjectInfo.res.pBitmapResInfo[i+1];312 313 ProjectInfo.ModifuOfResource=1;304 TreeView_DeleteItem(hMaterialTreeView,projectInfo.res.pBitmapResInfo[BitmapInfoNum].hTreeItem); 305 306 //projectInfo.pBitmapInfo構造体から削除 307 HeapDefaultFree(projectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName); 308 HeapDefaultFree(projectInfo.res.pBitmapResInfo[BitmapInfoNum].path); 309 projectInfo.res.NumberOfBitmapRes--; 310 for(i=BitmapInfoNum;i<projectInfo.res.NumberOfBitmapRes;i++) 311 projectInfo.res.pBitmapResInfo[i]=projectInfo.res.pBitmapResInfo[i+1]; 312 313 projectInfo.ModifuOfResource=1; 314 314 } 315 315 void Project_Bitmap_RenameID(int BitmapInfoNum){ … … 321 321 TVITEM tvItem; 322 322 323 if(!DialogBoxParam(hResInst,MAKEINTRESOURCE(IDD_INPUTID),hOwner,(DLGPROC)DlgProject_ResourceID_Input,(long) ProjectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName)) return;323 if(!DialogBoxParam(hResInst,MAKEINTRESOURCE(IDD_INPUTID),hOwner,(DLGPROC)DlgProject_ResourceID_Input,(long)projectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName)) return; 324 324 325 325 //重複チェック 326 for(i2=0;i2< ProjectInfo.res.NumberOfBitmapRes;i2++){326 for(i2=0;i2<projectInfo.res.NumberOfBitmapRes;i2++){ 327 327 if(i2==BitmapInfoNum) continue; 328 if(lstrcmp(NewIdName, ProjectInfo.res.pBitmapResInfo[i2].IdName)==0){328 if(lstrcmp(NewIdName,projectInfo.res.pBitmapResInfo[i2].IdName)==0){ 329 329 //"ID \"%s\" は既にプロジェクト内に存在します。" 330 330 sprintf(temporary,STRING_DUPLICATIONERROR_ID_IN_PROJECT,NewIdName); … … 334 334 } 335 335 336 HeapDefaultFree( ProjectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName);337 ProjectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(NewIdName)+1);338 lstrcpy( ProjectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName,NewIdName);339 340 tvItem.hItem= ProjectInfo.res.pBitmapResInfo[BitmapInfoNum].hTreeItem;336 HeapDefaultFree(projectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName); 337 projectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(NewIdName)+1); 338 lstrcpy(projectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName,NewIdName); 339 340 tvItem.hItem=projectInfo.res.pBitmapResInfo[BitmapInfoNum].hTreeItem; 341 341 tvItem.mask=TVIF_TEXT; 342 tvItem.pszText= ProjectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName;343 tvItem.cchTextMax=lstrlen( ProjectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName)+1;342 tvItem.pszText=projectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName; 343 tvItem.cchTextMax=lstrlen(projectInfo.res.pBitmapResInfo[BitmapInfoNum].IdName)+1; 344 344 TreeView_SetItem(hMaterialTreeView,&tvItem); 345 345 346 ProjectInfo.ModifuOfResource=1;346 projectInfo.ModifuOfResource=1; 347 347 348 348 TreeView_SortChildren(hMaterialTreeView, 349 TreeView_GetParent(hMaterialTreeView, ProjectInfo.res.pBitmapResInfo[BitmapInfoNum].hTreeItem),349 TreeView_GetParent(hMaterialTreeView,projectInfo.res.pBitmapResInfo[BitmapInfoNum].hTreeItem), 350 350 0); 351 351 } … … 356 356 char temporary[MAX_PATH]; 357 357 358 if(! ProjectInfo.ResourceFileName[0])359 sprintf( ProjectInfo.ResourceFileName,"%s.rc",ProjectInfo.name);358 if(!projectInfo.ResourceFileName[0]) 359 sprintf(projectInfo.ResourceFileName,"%s.rc",projectInfo.name); 360 360 361 361 //"アイコン ファイルを指定してください" 362 362 if(!GetFilePathDialog(hOwner,temporary,IconFileFilter,STRING_FILEOPENTITLE_ICON,TRUE)) return; 363 363 364 GetRelationalPath(temporary, ProjectInfo.dir);365 366 ProjectInfo.res.pIconResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,ProjectInfo.res.pIconResInfo,(ProjectInfo.res.NumberOfIconRes+1)*sizeof(RESITEMINFO));367 368 ProjectInfo.res.pIconResInfo[ProjectInfo.res.NumberOfIconRes].path=364 GetRelationalPath(temporary,projectInfo.dir); 365 366 projectInfo.res.pIconResInfo=(RESITEMINFO *)HeapReAlloc(hHeap,0,projectInfo.res.pIconResInfo,(projectInfo.res.NumberOfIconRes+1)*sizeof(RESITEMINFO)); 367 368 projectInfo.res.pIconResInfo[projectInfo.res.NumberOfIconRes].path= 369 369 (char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 370 lstrcpy( ProjectInfo.res.pIconResInfo[ProjectInfo.res.NumberOfIconRes].path,temporary);370 lstrcpy(projectInfo.res.pIconResInfo[projectInfo.res.NumberOfIconRes].path,temporary); 371 371 372 372 for(i3=1;;i3++){ 373 373 sprintf(temporary,"IDI_ICON%d",i3); 374 for(i2=0;i2< ProjectInfo.res.NumberOfIconRes;i2++){375 if(lstrcmp(temporary, ProjectInfo.res.pIconResInfo[i2].IdName)==0) break;376 } 377 if(i2== ProjectInfo.res.NumberOfIconRes) break;378 } 379 380 ProjectInfo.res.pIconResInfo[ProjectInfo.res.NumberOfIconRes].IdName=374 for(i2=0;i2<projectInfo.res.NumberOfIconRes;i2++){ 375 if(lstrcmp(temporary,projectInfo.res.pIconResInfo[i2].IdName)==0) break; 376 } 377 if(i2==projectInfo.res.NumberOfIconRes) break; 378 } 379 380 projectInfo.res.pIconResInfo[projectInfo.res.NumberOfIconRes].IdName= 381 381 (char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 382 lstrcpy( ProjectInfo.res.pIconResInfo[ProjectInfo.res.NumberOfIconRes].IdName,temporary);382 lstrcpy(projectInfo.res.pIconResInfo[projectInfo.res.NumberOfIconRes].IdName,temporary); 383 383 384 384 //ツリービューに追加 … … 389 389 tv.item.iImage=4; 390 390 tv.item.iSelectedImage=4; 391 tv.hParent= ProjectInfo.res.hIconTreeItem;392 if( ProjectInfo.res.NumberOfIconRes==0) lstrcat(temporary," (Main)");391 tv.hParent=projectInfo.res.hIconTreeItem; 392 if(projectInfo.res.NumberOfIconRes==0) lstrcat(temporary," (Main)"); 393 393 tv.item.pszText=temporary; 394 394 395 ProjectInfo.res.pIconResInfo[ProjectInfo.res.NumberOfIconRes].hTreeItem=395 projectInfo.res.pIconResInfo[projectInfo.res.NumberOfIconRes].hTreeItem= 396 396 TreeView_InsertItem(hMaterialTreeView,&tv); 397 397 398 TreeView_SelectItem(hMaterialTreeView, ProjectInfo.res.pIconResInfo[ProjectInfo.res.NumberOfIconRes].hTreeItem);399 400 ProjectInfo.res.NumberOfIconRes++;401 ProjectInfo.ModifuOfResource=1;398 TreeView_SelectItem(hMaterialTreeView,projectInfo.res.pIconResInfo[projectInfo.res.NumberOfIconRes].hTreeItem); 399 400 projectInfo.res.NumberOfIconRes++; 401 projectInfo.ModifuOfResource=1; 402 402 403 403 //////////////////////////////// … … 419 419 //ツリービューから削除 420 420 extern HWND hMaterialTreeView; 421 TreeView_DeleteItem(hMaterialTreeView, ProjectInfo.res.pIconResInfo[IconInfoNum].hTreeItem);422 423 // ProjectInfo.pIconInfo構造体から削除424 HeapDefaultFree( ProjectInfo.res.pIconResInfo[IconInfoNum].IdName);425 HeapDefaultFree( ProjectInfo.res.pIconResInfo[IconInfoNum].path);426 ProjectInfo.res.NumberOfIconRes--;427 for(i2=IconInfoNum;i2< ProjectInfo.res.NumberOfIconRes;i2++) ProjectInfo.res.pIconResInfo[i2]=ProjectInfo.res.pIconResInfo[i2+1];428 429 if(IconInfoNum==0&& ProjectInfo.res.NumberOfIconRes){421 TreeView_DeleteItem(hMaterialTreeView,projectInfo.res.pIconResInfo[IconInfoNum].hTreeItem); 422 423 //projectInfo.pIconInfo構造体から削除 424 HeapDefaultFree(projectInfo.res.pIconResInfo[IconInfoNum].IdName); 425 HeapDefaultFree(projectInfo.res.pIconResInfo[IconInfoNum].path); 426 projectInfo.res.NumberOfIconRes--; 427 for(i2=IconInfoNum;i2<projectInfo.res.NumberOfIconRes;i2++) projectInfo.res.pIconResInfo[i2]=projectInfo.res.pIconResInfo[i2+1]; 428 429 if(IconInfoNum==0&&projectInfo.res.NumberOfIconRes){ 430 430 tv.mask=TVIF_TEXT|TVIF_HANDLE; 431 431 tv.pszText=temporary; 432 432 tv.cchTextMax=MAX_PATH; 433 tv.hItem= ProjectInfo.res.pIconResInfo[0].hTreeItem;433 tv.hItem=projectInfo.res.pIconResInfo[0].hTreeItem; 434 434 TreeView_GetItem(hMaterialTreeView,&tv); 435 435 lstrcat(tv.pszText," (Main)"); … … 437 437 } 438 438 439 ProjectInfo.ModifuOfResource=1;439 projectInfo.ModifuOfResource=1; 440 440 441 441 //////////////////////////////// … … 457 457 TVITEM tvItem; 458 458 459 if(!DialogBoxParam(hResInst,MAKEINTRESOURCE(IDD_INPUTID),hOwner,(DLGPROC)DlgProject_ResourceID_Input,(long) ProjectInfo.res.pIconResInfo[IconInfoNum].IdName)) return;459 if(!DialogBoxParam(hResInst,MAKEINTRESOURCE(IDD_INPUTID),hOwner,(DLGPROC)DlgProject_ResourceID_Input,(long)projectInfo.res.pIconResInfo[IconInfoNum].IdName)) return; 460 460 461 461 //重複チェック 462 for(i2=0;i2< ProjectInfo.res.NumberOfIconRes;i2++){462 for(i2=0;i2<projectInfo.res.NumberOfIconRes;i2++){ 463 463 if(i2==IconInfoNum) continue; 464 if(lstrcmp(NewIdName, ProjectInfo.res.pIconResInfo[i2].IdName)==0){464 if(lstrcmp(NewIdName,projectInfo.res.pIconResInfo[i2].IdName)==0){ 465 465 //"ID \"%s\" は既にプロジェクト内に存在します。" 466 466 sprintf(temporary,STRING_DUPLICATIONERROR_ID_IN_PROJECT,NewIdName); … … 470 470 } 471 471 472 HeapDefaultFree( ProjectInfo.res.pIconResInfo[IconInfoNum].IdName);473 ProjectInfo.res.pIconResInfo[IconInfoNum].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(NewIdName)+1);474 lstrcpy( ProjectInfo.res.pIconResInfo[IconInfoNum].IdName,NewIdName);475 476 tvItem.hItem= ProjectInfo.res.pIconResInfo[IconInfoNum].hTreeItem;472 HeapDefaultFree(projectInfo.res.pIconResInfo[IconInfoNum].IdName); 473 projectInfo.res.pIconResInfo[IconInfoNum].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(NewIdName)+1); 474 lstrcpy(projectInfo.res.pIconResInfo[IconInfoNum].IdName,NewIdName); 475 476 tvItem.hItem=projectInfo.res.pIconResInfo[IconInfoNum].hTreeItem; 477 477 tvItem.mask=TVIF_TEXT; 478 478 if(IconInfoNum==0){ 479 sprintf(temporary,"%s (Main)", ProjectInfo.res.pIconResInfo[IconInfoNum].IdName);479 sprintf(temporary,"%s (Main)",projectInfo.res.pIconResInfo[IconInfoNum].IdName); 480 480 tvItem.pszText=temporary; 481 481 } 482 else tvItem.pszText= ProjectInfo.res.pIconResInfo[IconInfoNum].IdName;483 tvItem.cchTextMax=lstrlen( ProjectInfo.res.pIconResInfo[IconInfoNum].IdName)+1;482 else tvItem.pszText=projectInfo.res.pIconResInfo[IconInfoNum].IdName; 483 tvItem.cchTextMax=lstrlen(projectInfo.res.pIconResInfo[IconInfoNum].IdName)+1; 484 484 TreeView_SetItem(hMaterialTreeView,&tvItem); 485 485 486 ProjectInfo.ModifuOfResource=1;486 projectInfo.ModifuOfResource=1; 487 487 488 488 TreeView_SortChildren(hMaterialTreeView, 489 TreeView_GetParent(hMaterialTreeView, ProjectInfo.res.pIconResInfo[IconInfoNum].hTreeItem),489 TreeView_GetParent(hMaterialTreeView,projectInfo.res.pIconResInfo[IconInfoNum].hTreeItem), 490 490 0); 491 491 } -
trunk/ab5.0/abdev/abdev/WindowControl.cpp
r617 r618 14 14 15 15 int GetWndInfoNum(char *name){ 16 for( int i=0;i<static_cast<int>( ProjectInfo.windowInfos.size());i++){17 if(lstrcmpi(name, ProjectInfo.windowInfos[i]->GetName().c_str())==0) return i;16 for( int i=0;i<static_cast<int>(projectInfo.windowInfos.size());i++){ 17 if(lstrcmpi(name,projectInfo.windowInfos[i]->GetName().c_str())==0) return i; 18 18 } 19 19 return -1; … … 21 21 WindowInfo *GetWndInfo( char *name ) 22 22 { 23 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )23 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 24 24 { 25 25 if(lstrcmpi(name,pWindowInfo->GetName().c_str())==0) return pWindowInfo; … … 85 85 86 86 for(i3--;i3>=0;i3--){ 87 CHILDINFO *pChildInfo = ProjectInfo.windowInfos[WndInfoNum]->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3]];87 CHILDINFO *pChildInfo = projectInfo.windowInfos[WndInfoNum]->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3]]; 88 88 89 89 MemSize+=lstrlen(pChildInfo->IdName)+1+ … … 526 526 char temporary[MAX_PATH],*temp2; 527 527 528 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];528 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 529 529 530 530 Command[0]=0; … … 550 550 if(pWindowInfo->MenuID){ 551 551 //メニュー作成 552 for(i2=0;i2< ProjectInfo.NumberOfMenu;i2++){553 if(lstrcmpi( ProjectInfo.pMenuInfo[i2].IdName,pWindowInfo->MenuID)==0) break;554 } 555 if(i2!= ProjectInfo.NumberOfMenu){556 sprintf(Command+i,"%s\tSetMenu(hWnd,hMenu_%s)\r\n",spaces, ProjectInfo.pMenuInfo[i2].IdName);552 for(i2=0;i2<projectInfo.NumberOfMenu;i2++){ 553 if(lstrcmpi(projectInfo.pMenuInfo[i2].IdName,pWindowInfo->MenuID)==0) break; 554 } 555 if(i2!=projectInfo.NumberOfMenu){ 556 sprintf(Command+i,"%s\tSetMenu(hWnd,hMenu_%s)\r\n",spaces,projectInfo.pMenuInfo[i2].IdName); 557 557 i+=lstrlen(Command+i); 558 558 } … … 726 726 if(pWindowInfo->MenuID){ 727 727 //メニューを解放 728 for(i2=0;i2< ProjectInfo.NumberOfMenu;i2++){729 if(lstrcmpi( ProjectInfo.pMenuInfo[i2].IdName,pWindowInfo->MenuID)==0) break;730 } 731 if(i2!= ProjectInfo.NumberOfMenu){728 for(i2=0;i2<projectInfo.NumberOfMenu;i2++){ 729 if(lstrcmpi(projectInfo.pMenuInfo[i2].IdName,pWindowInfo->MenuID)==0) break; 730 } 731 if(i2!=projectInfo.NumberOfMenu){ 732 732 sprintf(Command+i,"%s\tSetMenu(hWnd,NULL)\r\n",spaces); 733 733 i+=lstrlen(Command+i); … … 990 990 i2=lstrlen(buffer); 991 991 992 if( ProjectInfo.dwOption&PJ_OP_COMMCTRL){992 if(projectInfo.dwOption&PJ_OP_COMMCTRL){ 993 993 //コマンコントロールを初期化 994 994 lstrcpy(buffer+i2,"Dim _RadSys_InitCtrls As INITCOMMONCONTROLSEX\r\n"); … … 1009 1009 i4=1000; 1010 1010 i5=0; 1011 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1011 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1012 1012 { 1013 1013 BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos ) … … 1038 1038 1039 1039 //メニューのIDを定義 1040 ppNames=GetMenuItemConstData( ProjectInfo.pMenuInfo,ProjectInfo.NumberOfMenu,&i4,ppNames,&i5,buffer,&i2);1040 ppNames=GetMenuItemConstData(projectInfo.pMenuInfo,projectInfo.NumberOfMenu,&i4,ppNames,&i5,buffer,&i2); 1041 1041 1042 1042 HeapDefaultFree(ppNames); … … 1046 1046 1047 1047 //ハンドル変数を定義 1048 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1048 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1049 1049 { 1050 1050 sprintf(buffer+i2,"Dim %s As HWND\r\n",pWindowInfo->GetHandleName().c_str()); … … 1082 1082 i2+=lstrlen(buffer+i2); 1083 1083 i=0; 1084 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1084 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1085 1085 { 1086 1086 if(pWindowInfo->bgColor<=0&& … … 1097 1097 sprintf(buffer+i2,"_RadSys_hBackBrush%d=CreatePatternBrush(LoadImage(GetModuleHandle(0),%s,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE or LR_SHARED))\r\n", 1098 1098 i, 1099 ProjectInfo.res.pBitmapResInfo[pWindowInfo->bgColor-0x1000].IdName);1099 projectInfo.res.pBitmapResInfo[pWindowInfo->bgColor-0x1000].IdName); 1100 1100 i2+=lstrlen(buffer+i2); 1101 1101 } … … 1108 1108 1109 1109 //イメージ ボックス用の変数を定義 1110 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1110 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1111 1111 { 1112 1112 BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos ) … … 1131 1131 1132 1132 //メニュー作成 1133 for(i=0;i< ProjectInfo.NumberOfMenu;i++){1134 sprintf(temporary,"hMenu_%s", ProjectInfo.pMenuInfo[i].IdName);1133 for(i=0;i<projectInfo.NumberOfMenu;i++){ 1134 sprintf(temporary,"hMenu_%s",projectInfo.pMenuInfo[i].IdName); 1135 1135 1136 1136 //InsertMenuItem郡 1137 i2+=GetMakeMenuCommand( ProjectInfo.pMenuInfo[i].pMenuInfo,ProjectInfo.pMenuInfo[i].NumberOfMenu,temporary,buffer+i2,1);1137 i2+=GetMakeMenuCommand(projectInfo.pMenuInfo[i].pMenuInfo,projectInfo.pMenuInfo[i].NumberOfMenu,temporary,buffer+i2,1); 1138 1138 1139 1139 lstrcpy(buffer+i2,"\r\n"); … … 1149 1149 ////////////////////////// 1150 1150 //オブジェクトの解放処理 1151 sprintf(buffer+i2,"Sub %s_DestroyObjects()\r\n", ProjectInfo.name);1151 sprintf(buffer+i2,"Sub %s_DestroyObjects()\r\n",projectInfo.name); 1152 1152 i2+=lstrlen(buffer+i2); 1153 1153 1154 1154 //メニュー解放 1155 for(i=0;i< ProjectInfo.NumberOfMenu;i++){1156 sprintf(temporary,"hMenu_%s", ProjectInfo.pMenuInfo[i].IdName);1157 i2+=GetDestroyMenuCommand( ProjectInfo.pMenuInfo[i].pMenuInfo,ProjectInfo.pMenuInfo[i].NumberOfMenu,temporary,buffer+i2);1155 for(i=0;i<projectInfo.NumberOfMenu;i++){ 1156 sprintf(temporary,"hMenu_%s",projectInfo.pMenuInfo[i].IdName); 1157 i2+=GetDestroyMenuCommand(projectInfo.pMenuInfo[i].pMenuInfo,projectInfo.pMenuInfo[i].NumberOfMenu,temporary,buffer+i2); 1158 1158 1159 1159 while(i2>65535*(size-1)){ … … 1163 1163 } 1164 1164 1165 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1165 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1166 1166 { 1167 1167 //フォントハンドル解放 … … 1179 1179 i2+=lstrlen(buffer+i2); 1180 1180 i=0; 1181 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1181 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1182 1182 { 1183 1183 if(pWindowInfo->bgColor<=0&& … … 1198 1198 1199 1199 i=0; 1200 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1200 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1201 1201 { 1202 1202 if(i!=0){ … … 1363 1363 sw1=0; 1364 1364 i=0; 1365 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1365 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1366 1366 { 1367 1367 if(pWindowInfo->type==WNDTYPE_MODALDLG){ … … 1462 1462 i2+=lstrlen(buffer+i2); 1463 1463 i=0; 1464 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1464 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1465 1465 { 1466 1466 if(pWindowInfo->type==WNDTYPE_MODELESSDLG){ … … 1513 1513 /////////////////////// 1514 1514 // 保存(Callback.wbp) 1515 sprintf(temporary,"%sCallback.wbp", ProjectInfo.dir);1515 sprintf(temporary,"%sCallback.wbp",projectInfo.dir); 1516 1516 WriteBuffer(temporary,buffer,i2); 1517 1517 … … 1535 1535 1536 1536 i=0; 1537 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1537 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1538 1538 { 1539 1539 if(pWindowInfo->type==WNDTYPE_DEFAULT){ … … 1600 1600 ///////////////////////// 1601 1601 // 保存(MakeWindow.wbp) 1602 sprintf(temporary,"%sMakeWindow.wbp", ProjectInfo.dir);1602 sprintf(temporary,"%sMakeWindow.wbp",projectInfo.dir); 1603 1603 WriteBuffer(temporary,buffer,i2); 1604 1604 HeapDefaultFree(buffer); … … 1640 1640 buffer=(char *)HeapAlloc(hHeap,0,GENERAL_SIZE*size); 1641 1641 i2=0; 1642 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )1642 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1643 1643 { 1644 1644 sprintf(buffer+i2,"WINDOW:%s\r\n",pWindowInfo->GetName().c_str()); … … 1724 1724 } 1725 1725 } 1726 for(i=0;i< ProjectInfo.NumberOfMenu;i++){1727 sprintf(buffer+i2,"MENU:%s\r\n", ProjectInfo.pMenuInfo[i].IdName);1728 i2+=lstrlen(buffer+i2); 1729 i2+=GetSaveMenuData(buffer+i2,1, ProjectInfo.pMenuInfo[i].pMenuInfo,ProjectInfo.pMenuInfo[i].NumberOfMenu);1726 for(i=0;i<projectInfo.NumberOfMenu;i++){ 1727 sprintf(buffer+i2,"MENU:%s\r\n",projectInfo.pMenuInfo[i].IdName); 1728 i2+=lstrlen(buffer+i2); 1729 i2+=GetSaveMenuData(buffer+i2,1,projectInfo.pMenuInfo[i].pMenuInfo,projectInfo.pMenuInfo[i].NumberOfMenu); 1730 1730 sprintf(buffer+i2,"END\r\n",windowInfos[i]->GetName().c_str()); 1731 1731 i2+=lstrlen(buffer+i2); … … 1738 1738 HeapDefaultFree(buffer); 1739 1739 1740 ProjectInfo.ModifyOfMaterial=0;1740 projectInfo.ModifyOfMaterial=0; 1741 1741 } 1742 1742 … … 1845 1845 //temp2はこの後の処理の一時保存バッファにも利用するので解放しない 1846 1846 1847 ProjectInfo.NumberOfMenu=0;1848 ProjectInfo.pMenuInfo=(MENU_INFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1);1849 1850 ProjectInfo.windowInfos.Clear();1847 projectInfo.NumberOfMenu=0; 1848 projectInfo.pMenuInfo=(MENU_INFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1); 1849 1850 projectInfo.windowInfos.Clear(); 1851 1851 1852 1852 for(i=0,i3=0;;i++){ … … 1883 1883 //ウィンドウ 1884 1884 if(lstrcmpi(temporary,"WINDOW")==0&&i3==0){ 1885 ProjectInfo.windowInfos.push_back( new WindowInfo() );1885 projectInfo.windowInfos.push_back( new WindowInfo() ); 1886 1886 i3=1; 1887 1887 1888 ProjectInfo.windowInfos.back()->SetName( temp2 );1888 projectInfo.windowInfos.back()->SetName( temp2 ); 1889 1889 } 1890 1890 else if(lstrcmpi(temporary,"HANDLE")==0&&i3==1){ 1891 ProjectInfo.windowInfos.back()->SetHandleName( temp2 );1891 projectInfo.windowInfos.back()->SetHandleName( temp2 ); 1892 1892 } 1893 1893 else if(lstrcmpi(temporary,"POINT")==0&&i3==1){ 1894 1894 sscanf(temp2,"%d,%d", 1895 & ProjectInfo.windowInfos.back()->pos.x,1896 & ProjectInfo.windowInfos.back()->pos.y);1897 if( ProjectInfo.windowInfos.back()->pos.x==-1) ProjectInfo.windowInfos.back()->pos.x=CW_USEDEFAULT;1898 if( ProjectInfo.windowInfos.back()->pos.y==-1) ProjectInfo.windowInfos.back()->pos.y=CW_USEDEFAULT;1895 &projectInfo.windowInfos.back()->pos.x, 1896 &projectInfo.windowInfos.back()->pos.y); 1897 if(projectInfo.windowInfos.back()->pos.x==-1) projectInfo.windowInfos.back()->pos.x=CW_USEDEFAULT; 1898 if(projectInfo.windowInfos.back()->pos.y==-1) projectInfo.windowInfos.back()->pos.y=CW_USEDEFAULT; 1899 1899 } 1900 1900 else if(lstrcmpi(temporary,"SIZE")==0&&i3==1){ 1901 1901 sscanf(temp2,"%d,%d", 1902 & ProjectInfo.windowInfos.back()->size.cx,1903 & ProjectInfo.windowInfos.back()->size.cy);1902 &projectInfo.windowInfos.back()->size.cx, 1903 &projectInfo.windowInfos.back()->size.cy); 1904 1904 } 1905 1905 else if(lstrcmpi(temporary,"CAPTION")==0&&i3==1){ 1906 1906 if(temp2[0]=='\"'&&temp2[lstrlen(temp2)-1]=='\"'){ 1907 1907 temp2[lstrlen(temp2)-1]=0; 1908 ProjectInfo.windowInfos.back()->caption=(char *)HeapAlloc(hHeap,0,i2+1);1909 lstrcpy( ProjectInfo.windowInfos.back()->caption,temp2+1);1908 projectInfo.windowInfos.back()->caption=(char *)HeapAlloc(hHeap,0,i2+1); 1909 lstrcpy(projectInfo.windowInfos.back()->caption,temp2+1); 1910 1910 } 1911 1911 } 1912 else if(lstrcmpi(temporary,"STYLE")==0&&i3==1) ProjectInfo.windowInfos.back()->style=GetValue(temp2);1913 else if(lstrcmpi(temporary,"EXSTYLE")==0&&i3==1) ProjectInfo.windowInfos.back()->ExStyle=GetValue(temp2);1912 else if(lstrcmpi(temporary,"STYLE")==0&&i3==1) projectInfo.windowInfos.back()->style=GetValue(temp2); 1913 else if(lstrcmpi(temporary,"EXSTYLE")==0&&i3==1) projectInfo.windowInfos.back()->ExStyle=GetValue(temp2); 1914 1914 else if(lstrcmpi(temporary,"MENUID")==0&&i3==1){ 1915 ProjectInfo.windowInfos.back()->MenuID=(char *)HeapAlloc(hHeap,0,i2+1);1916 lstrcpy( ProjectInfo.windowInfos.back()->MenuID,temp2);1917 } 1918 else if(lstrcmpi(temporary,"ID")==0&&i3==1) ProjectInfo.windowInfos.back()->id=GetValue(temp2);1915 projectInfo.windowInfos.back()->MenuID=(char *)HeapAlloc(hHeap,0,i2+1); 1916 lstrcpy(projectInfo.windowInfos.back()->MenuID,temp2); 1917 } 1918 else if(lstrcmpi(temporary,"ID")==0&&i3==1) projectInfo.windowInfos.back()->id=GetValue(temp2); 1919 1919 else if(lstrcmpi(temporary,"BGCOLOR")==0&&i3==1){ 1920 ProjectInfo.windowInfos.back()->bgColor=GetValue(temp2);1921 if( ProjectInfo.dwVersion<=3){1920 projectInfo.windowInfos.back()->bgColor=GetValue(temp2); 1921 if(projectInfo.dwVersion<=3){ 1922 1922 //プロジェクトバージョンが3以前のときは新値に変換する 1923 if( ProjectInfo.windowInfos.back()->bgColor==-1)1924 ProjectInfo.windowInfos.back()->bgColor=-(int)RGB(255,255,255);1923 if(projectInfo.windowInfos.back()->bgColor==-1) 1924 projectInfo.windowInfos.back()->bgColor=-(int)RGB(255,255,255); 1925 1925 } 1926 1926 } 1927 1927 else if(lstrcmpi(temporary,"FONT")==0&&i3==1){ 1928 1928 i5=GetOneParameter(temp2,0,temp3); 1929 ProjectInfo.windowInfos.back()->LogFont.lfHeight=GetValue(temp3);1929 projectInfo.windowInfos.back()->LogFont.lfHeight=GetValue(temp3); 1930 1930 1931 1931 i5=GetOneParameter(temp2,i5,temp3); 1932 ProjectInfo.windowInfos.back()->LogFont.lfWidth=GetValue(temp3);1932 projectInfo.windowInfos.back()->LogFont.lfWidth=GetValue(temp3); 1933 1933 1934 1934 i5=GetOneParameter(temp2,i5,temp3); 1935 ProjectInfo.windowInfos.back()->LogFont.lfEscapement=GetValue(temp3);1935 projectInfo.windowInfos.back()->LogFont.lfEscapement=GetValue(temp3); 1936 1936 1937 1937 i5=GetOneParameter(temp2,i5,temp3); 1938 ProjectInfo.windowInfos.back()->LogFont.lfOrientation=GetValue(temp3);1938 projectInfo.windowInfos.back()->LogFont.lfOrientation=GetValue(temp3); 1939 1939 1940 1940 i5=GetOneParameter(temp2,i5,temp3); 1941 ProjectInfo.windowInfos.back()->LogFont.lfWeight=GetValue(temp3);1941 projectInfo.windowInfos.back()->LogFont.lfWeight=GetValue(temp3); 1942 1942 1943 1943 i5=GetOneParameter(temp2,i5,temp3); 1944 ProjectInfo.windowInfos.back()->LogFont.lfItalic=(BYTE)GetValue(temp3);1944 projectInfo.windowInfos.back()->LogFont.lfItalic=(BYTE)GetValue(temp3); 1945 1945 1946 1946 i5=GetOneParameter(temp2,i5,temp3); 1947 ProjectInfo.windowInfos.back()->LogFont.lfUnderline=(BYTE)GetValue(temp3);1947 projectInfo.windowInfos.back()->LogFont.lfUnderline=(BYTE)GetValue(temp3); 1948 1948 1949 1949 i5=GetOneParameter(temp2,i5,temp3); 1950 ProjectInfo.windowInfos.back()->LogFont.lfStrikeOut=(BYTE)GetValue(temp3);1950 projectInfo.windowInfos.back()->LogFont.lfStrikeOut=(BYTE)GetValue(temp3); 1951 1951 1952 1952 i5=GetOneParameter(temp2,i5,temp3); 1953 ProjectInfo.windowInfos.back()->LogFont.lfCharSet=(BYTE)GetValue(temp3);1953 projectInfo.windowInfos.back()->LogFont.lfCharSet=(BYTE)GetValue(temp3); 1954 1954 1955 1955 i5=GetOneParameter(temp2,i5,temp3); 1956 ProjectInfo.windowInfos.back()->LogFont.lfOutPrecision=(BYTE)GetValue(temp3);1956 projectInfo.windowInfos.back()->LogFont.lfOutPrecision=(BYTE)GetValue(temp3); 1957 1957 1958 1958 i5=GetOneParameter(temp2,i5,temp3); 1959 ProjectInfo.windowInfos.back()->LogFont.lfClipPrecision=(BYTE)GetValue(temp3);1959 projectInfo.windowInfos.back()->LogFont.lfClipPrecision=(BYTE)GetValue(temp3); 1960 1960 1961 1961 i5=GetOneParameter(temp2,i5,temp3); 1962 ProjectInfo.windowInfos.back()->LogFont.lfQuality=(BYTE)GetValue(temp3);1962 projectInfo.windowInfos.back()->LogFont.lfQuality=(BYTE)GetValue(temp3); 1963 1963 1964 1964 i5=GetOneParameter(temp2,i5,temp3); 1965 ProjectInfo.windowInfos.back()->LogFont.lfPitchAndFamily=(BYTE)GetValue(temp3);1965 projectInfo.windowInfos.back()->LogFont.lfPitchAndFamily=(BYTE)GetValue(temp3); 1966 1966 1967 1967 i5=GetOneParameter(temp2,i5,temp3); 1968 1968 RemoveStringQuotes(temp3); 1969 lstrcpy( ProjectInfo.windowInfos.back()->LogFont.lfFaceName,temp3);1969 lstrcpy(projectInfo.windowInfos.back()->LogFont.lfFaceName,temp3); 1970 1970 } 1971 1971 else if(lstrcmpi(temporary,"ICONID")==0&&i3==1){ 1972 ProjectInfo.windowInfos.back()->IconResName=(char *)HeapAlloc(hHeap,0,i2+1);1973 lstrcpy( ProjectInfo.windowInfos.back()->IconResName,temp2);1972 projectInfo.windowInfos.back()->IconResName=(char *)HeapAlloc(hHeap,0,i2+1); 1973 lstrcpy(projectInfo.windowInfos.back()->IconResName,temp2); 1974 1974 } 1975 1975 else if(lstrcmpi(temporary,"CLASS")==0&&i3==1){ 1976 1976 if(temp2[0]=='\"'&&temp2[lstrlen(temp2)-1]=='\"'){ 1977 1977 temp2[lstrlen(temp2)-1]=0; 1978 ProjectInfo.windowInfos.back()->ClassName=(char *)HeapAlloc(hHeap,0,i2+1);1979 lstrcpy( ProjectInfo.windowInfos.back()->ClassName,temp2+1);1978 projectInfo.windowInfos.back()->ClassName=(char *)HeapAlloc(hHeap,0,i2+1); 1979 lstrcpy(projectInfo.windowInfos.back()->ClassName,temp2+1); 1980 1980 } 1981 1981 } 1982 1982 else if(lstrcmpi(temporary,"CALLBACK")==0&&i3==1){ 1983 ProjectInfo.windowInfos.back()->CallBackName=(char *)HeapAlloc(hHeap,0,i2+1);1984 lstrcpy( ProjectInfo.windowInfos.back()->CallBackName,temp2);1983 projectInfo.windowInfos.back()->CallBackName=(char *)HeapAlloc(hHeap,0,i2+1); 1984 lstrcpy(projectInfo.windowInfos.back()->CallBackName,temp2); 1985 1985 } 1986 1986 1987 1987 //以前のバージョンとの互換用 1988 else if(lstrcmpi(temporary,"DLGTMP")==0&&i3==1) ProjectInfo.windowInfos.back()->type=GetValue(temp2);1989 1990 else if(lstrcmpi(temporary,"TYPE")==0&&i3==1) ProjectInfo.windowInfos.back()->type=GetValue(temp2);1988 else if(lstrcmpi(temporary,"DLGTMP")==0&&i3==1) projectInfo.windowInfos.back()->type=GetValue(temp2); 1989 1990 else if(lstrcmpi(temporary,"TYPE")==0&&i3==1) projectInfo.windowInfos.back()->type=GetValue(temp2); 1991 1991 else if(lstrcmpi(temporary,"FILEPATH")==0&&i3==1){ 1992 ProjectInfo.windowInfos.back()->filepath=(char *)HeapAlloc(hHeap,0,i2+1);1993 lstrcpy( ProjectInfo.windowInfos.back()->filepath,temp2);1992 projectInfo.windowInfos.back()->filepath=(char *)HeapAlloc(hHeap,0,i2+1); 1993 lstrcpy(projectInfo.windowInfos.back()->filepath,temp2); 1994 1994 } 1995 1995 else if(lstrcmpi(temporary,"ITEM")==0&&i3==1){ … … 2040 2040 } 2041 2041 2042 ProjectInfo.windowInfos.back()->childWindowInfos.push_back( pChildInfo );2042 projectInfo.windowInfos.back()->childWindowInfos.push_back( pChildInfo ); 2043 2043 } 2044 2044 … … 2047 2047 //メニュー 2048 2048 else if(lstrcmpi(temporary,"MENU")==0&&i3==0){ 2049 ProjectInfo.NumberOfMenu++;2050 ProjectInfo.pMenuInfo=(MENU_INFO *)HeapReAlloc(hHeap,HEAP_ZERO_MEMORY,ProjectInfo.pMenuInfo,ProjectInfo.NumberOfMenu*sizeof(MENU_INFO));2051 i4= ProjectInfo.NumberOfMenu-1;2049 projectInfo.NumberOfMenu++; 2050 projectInfo.pMenuInfo=(MENU_INFO *)HeapReAlloc(hHeap,HEAP_ZERO_MEMORY,projectInfo.pMenuInfo,projectInfo.NumberOfMenu*sizeof(MENU_INFO)); 2051 i4=projectInfo.NumberOfMenu-1; 2052 2052 2053 2053 //ID名 2054 ProjectInfo.pMenuInfo[i4].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(temp2)+1);2055 lstrcpy( ProjectInfo.pMenuInfo[i4].IdName,temp2);2056 ProjectInfo.pMenuInfo[i4].pMenuInfo=GetMenuData(buffer,&i,&ProjectInfo.pMenuInfo[i4].NumberOfMenu);2057 if(! ProjectInfo.pMenuInfo[i4].pMenuInfo){2054 projectInfo.pMenuInfo[i4].IdName=(char *)HeapAlloc(hHeap,0,lstrlen(temp2)+1); 2055 lstrcpy(projectInfo.pMenuInfo[i4].IdName,temp2); 2056 projectInfo.pMenuInfo[i4].pMenuInfo=GetMenuData(buffer,&i,&projectInfo.pMenuInfo[i4].NumberOfMenu); 2057 if(!projectInfo.pMenuInfo[i4].pMenuInfo){ 2058 2058 //"ウィンドウ定義ファイルが壊れています。\n\n%s" 2059 2059 sprintf(temporary,STRING_ERROR_BROKEN_WNDFILE,path); … … 2172 2172 //重複チェック 2173 2173 sprintf(temporary,"%s.sbp",NewWindow.name); 2174 if( ProjectInfo.pobj_DBFileInfo->dupli_check(temporary)){2174 if(projectInfo.pobj_DBFileInfo->dupli_check(temporary)){ 2175 2175 sprintf(temp2,"\"%s\" ファイルは既にプロジェクト内に存在します。",temporary); 2176 2176 MessageBox(hOwner,temp2,APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); 2177 2177 return; 2178 2178 } 2179 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos )2179 BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos ) 2180 2180 { 2181 2181 if(lstrcmpi(NewWindow.name,pWindowInfo->GetName().c_str())==0){ … … 2199 2199 } 2200 2200 2201 // ProjectInfo.windowInfos構造体コレクションに追加2202 ProjectInfo.windowInfos.push_back( new WindowInfo() );2201 //projectInfo.windowInfos構造体コレクションに追加 2202 projectInfo.windowInfos.push_back( new WindowInfo() ); 2203 2203 2204 2204 2205 2205 /////////////////////////////////////// 2206 // ProjectInfo.windowInfos構造体を設定2206 //projectInfo.windowInfos構造体を設定 2207 2207 2208 2208 //ウィンドウ名 2209 ProjectInfo.windowInfos.back()->SetName( NewWindow.name );2209 projectInfo.windowInfos.back()->SetName( NewWindow.name ); 2210 2210 2211 2211 //ハンドル名 2212 ProjectInfo.windowInfos.back()->SetHandleName( NewWindow.HandleName );2212 projectInfo.windowInfos.back()->SetHandleName( NewWindow.HandleName ); 2213 2213 2214 2214 //位置情報 2215 ProjectInfo.windowInfos.back()->pos.x=-1;2216 ProjectInfo.windowInfos.back()->pos.y=-1;2217 ProjectInfo.windowInfos.back()->size.cx=480;2218 ProjectInfo.windowInfos.back()->size.cy=360;2215 projectInfo.windowInfos.back()->pos.x=-1; 2216 projectInfo.windowInfos.back()->pos.y=-1; 2217 projectInfo.windowInfos.back()->size.cx=480; 2218 projectInfo.windowInfos.back()->size.cy=360; 2219 2219 2220 2220 //ウィンドウテキスト 2221 ProjectInfo.windowInfos.back()->caption=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.name)+1);2222 lstrcpy( ProjectInfo.windowInfos.back()->caption,NewWindow.name);2221 projectInfo.windowInfos.back()->caption=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.name)+1); 2222 lstrcpy(projectInfo.windowInfos.back()->caption,NewWindow.name); 2223 2223 2224 2224 //スタイル … … 2226 2226 case WNDTYPE_DEFAULT: 2227 2227 //通常ウィンドウ 2228 ProjectInfo.windowInfos.back()->style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX;2228 projectInfo.windowInfos.back()->style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX; 2229 2229 break; 2230 2230 case WNDTYPE_MODALDLG: 2231 2231 case WNDTYPE_MODELESSDLG: 2232 2232 //ダイアログ テンプレート(最大化、最小化ボタンをなくして、細枠にする) 2233 ProjectInfo.windowInfos.back()->style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU;2233 projectInfo.windowInfos.back()->style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU; 2234 2234 break; 2235 2235 } 2236 2236 2237 2237 //拡張スタイル 2238 ProjectInfo.windowInfos.back()->ExStyle=0;2238 projectInfo.windowInfos.back()->ExStyle=0; 2239 2239 2240 2240 //メニュー 2241 ProjectInfo.windowInfos.back()->MenuID=0;2241 projectInfo.windowInfos.back()->MenuID=0; 2242 2242 2243 2243 //ID 2244 ProjectInfo.windowInfos.back()->id=0;2244 projectInfo.windowInfos.back()->id=0; 2245 2245 2246 2246 //背景色 2247 ProjectInfo.windowInfos.back()->bgColor=COLOR_3DFACE;2247 projectInfo.windowInfos.back()->bgColor=COLOR_3DFACE; 2248 2248 2249 2249 //フォント 2250 GetDefaultWindowFont(& ProjectInfo.windowInfos.back()->LogFont);2250 GetDefaultWindowFont(&projectInfo.windowInfos.back()->LogFont); 2251 2251 2252 2252 //アイコン 2253 ProjectInfo.windowInfos.back()->IconResName=0;2253 projectInfo.windowInfos.back()->IconResName=0; 2254 2254 2255 2255 //クラス名 2256 2256 lstrcpy(temporary,"NORMAL"); 2257 ProjectInfo.windowInfos.back()->ClassName=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);2258 lstrcpy( ProjectInfo.windowInfos.back()->ClassName,temporary);2257 projectInfo.windowInfos.back()->ClassName=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 2258 lstrcpy(projectInfo.windowInfos.back()->ClassName,temporary); 2259 2259 2260 2260 //コールバック関数名 2261 ProjectInfo.windowInfos.back()->CallBackName=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.CallBackName)+1);2262 lstrcpy( ProjectInfo.windowInfos.back()->CallBackName,NewWindow.CallBackName);2261 projectInfo.windowInfos.back()->CallBackName=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.CallBackName)+1); 2262 lstrcpy(projectInfo.windowInfos.back()->CallBackName,NewWindow.CallBackName); 2263 2263 2264 2264 //タイプ識別 2265 ProjectInfo.windowInfos.back()->type=NewWindow.type;2265 projectInfo.windowInfos.back()->type=NewWindow.type; 2266 2266 2267 2267 2268 2268 //メッセージ処理ファイル名 2269 sprintf(temporary,"%s.ab", ProjectInfo.windowInfos.back()->GetName().c_str());2270 ProjectInfo.windowInfos.back()->filepath=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);2271 lstrcpy( ProjectInfo.windowInfos.back()->filepath,temporary);2269 sprintf(temporary,"%s.ab",projectInfo.windowInfos.back()->GetName().c_str()); 2270 projectInfo.windowInfos.back()->filepath=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 2271 lstrcpy(projectInfo.windowInfos.back()->filepath,temporary); 2272 2272 2273 2273 … … 2282 2282 //#name#をプロジェクト名に置換 2283 2283 pTemp=PermutationWndPgmTemplate(pTemp, 2284 ProjectInfo.name,2284 projectInfo.name, 2285 2285 NewWindow.name, 2286 2286 NewWindow.HandleName, 2287 2287 NewWindow.CallBackName); 2288 2288 2289 sprintf(temporary,"%s%s.ab", ProjectInfo.dir,ProjectInfo.windowInfos.back()->GetName().c_str());2289 sprintf(temporary,"%s%s.ab",projectInfo.dir,projectInfo.windowInfos.back()->GetName().c_str()); 2290 2290 2291 2291 //書き込み … … 2305 2305 tv.item.iImage=2; 2306 2306 tv.item.iSelectedImage=2; 2307 tv.hParent= ProjectInfo.hWindowTreeItem;2308 lstrcpy( temp2, ProjectInfo.windowInfos.back()->GetName().c_str() );2307 tv.hParent=projectInfo.hWindowTreeItem; 2308 lstrcpy( temp2, projectInfo.windowInfos.back()->GetName().c_str() ); 2309 2309 tv.item.pszText = temp2; 2310 2310 2311 ProjectInfo.windowInfos.back()->hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv);2312 2313 TreeView_SelectItem(hMaterialTreeView, ProjectInfo.windowInfos.back()->hTreeItem);2314 2315 2316 ProjectInfo.ModifyOfMaterial=1;2317 2318 NewRadWindow( * ProjectInfo.windowInfos.back() );2311 projectInfo.windowInfos.back()->hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv); 2312 2313 TreeView_SelectItem(hMaterialTreeView,projectInfo.windowInfos.back()->hTreeItem); 2314 2315 2316 projectInfo.ModifyOfMaterial=1; 2317 2318 NewRadWindow( *projectInfo.windowInfos.back() ); 2319 2319 } 2320 2320 void Project_Window_Delete(int WndInfoNum){ … … 2323 2323 int i; 2324 2324 2325 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum];2325 WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum]; 2326 2326 2327 2327 //ウィンドウが開かれている場合は閉じる … … 2351 2351 TreeView_DeleteItem(hMaterialTreeView,pWindowInfo->hTreeItem); 2352 2352 2353 // ProjectInfo.windowInfos構造体から削除2354 ProjectInfo.windowInfos.Erase( WndInfoNum );2355 2356 ProjectInfo.ModifyOfMaterial=1;2357 } 2353 //projectInfo.windowInfos構造体から削除 2354 projectInfo.windowInfos.Erase( WndInfoNum ); 2355 2356 projectInfo.ModifyOfMaterial=1; 2357 } -
trunk/ab5.0/abdev/abdev/abdev.cpp
r616 r618 109 109 } 110 110 int GetFileNum(int WndNum){ 111 if( ! ProjectInfo.name[0] ){111 if( !projectInfo.name[0] ){ 112 112 return -1; 113 113 } … … 115 115 int i; 116 116 char temporary[MAX_PATH]; 117 for(i=0;i< ProjectInfo.pobj_DBFileInfo->iNum;i++){118 119 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary);117 for(i=0;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 118 119 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 120 120 121 121 if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0) return i; … … 693 693 ///////////////////////////////////////////////// 694 694 695 if( ProjectInfo.name[0]){695 if(projectInfo.name[0]){ 696 696 pobj_MainMenu->EnableItem(IDM_ALLSAVE,MF_ENABLED); 697 697 pobj_StandardToolbar->EnableItem(IDM_ALLSAVE,1); … … 954 954 ResetState_DocMenu(); 955 955 956 if( DocumentType == WNDTYPE_BASIC && ProjectInfo.name[0] == '\0' ){956 if( DocumentType == WNDTYPE_BASIC && projectInfo.name[0] == '\0' ){ 957 957 // 単体ソースコードを開いたとき 958 958 if( !IsWindowVisible( hProjectView ) ){ … … 1150 1150 pobj_MainTab->MdiActiveEvent(MdiInfo[i].title); 1151 1151 1152 if( ! ProjectInfo.name[0] ){1152 if( !projectInfo.name[0] ){ 1153 1153 ResetClassTree(-1); 1154 1154 } … … 1710 1710 1711 1711 if(!TranslateAccelerator(hOwner,hAccel,&msg)){ 1712 if( ProjectInfo.name[0]){1712 if(projectInfo.name[0]){ 1713 1713 for(i=0,i2=0;i<MAX_WNDNUM;i++){ 1714 1714 if(MdiInfo[i].hwnd&&MdiInfo[i].DocType==WNDTYPE_RAD){ -
trunk/ab5.0/abdev/abdev/abdev.h
r609 r618 71 71 //プロジェクト情報 72 72 NEWPROJECTINFO NewProjectInfo; 73 PROJECTINFO ProjectInfo;73 ActiveBasic::IDE::Project projectInfo; 74 74 HWND hProjectView; //プロジェクト ビュー 75 75 HWND hProjectView_ToolWindow; 76 ActiveBasic::IDE::ProjectManager projectManager;77 76 78 77 //コンパイラビュー情報 -
trunk/ab5.0/abdev/abdev/include/ProjectManager/ProjectManager.h
r615 r618 1 1 #pragma once 2 2 3 struct PROJECTINFO{ 3 4 namespace ActiveBasic{ namespace IDE{ 5 6 class Project 7 { 8 public: 4 9 DWORD dwModuleType; 5 10 … … 39 44 _int8 ModifuOfResource; 40 45 _int8 modify; 41 };42 43 namespace ActiveBasic{ namespace IDE{44 45 class Project46 {47 std::string name;48 ActiveBasic::Common::TargetModuleType::EnumType moduleType;49 public:50 void Open( const std::string &projectFileName );51 void Close() const;52 void Save() const;53 };54 typedef std::vector<Project *> Projects;55 56 class ProjectManager57 {58 Projects projects;59 Project *pCurrentProject;60 public:61 ProjectManager()62 : pCurrentProject( NULL )63 {64 }65 ~ProjectManager()66 {67 if( IsOpenedProject() )68 {69 throw;70 }71 }72 const Project &GetCurrentProject() const73 {74 return *pCurrentProject;75 }76 Project &GetCurrentProject()77 {78 return *pCurrentProject;79 }80 46 81 47 bool IsOpenedProject() const 82 48 { 83 return !projects.empty();49 return ( name[0] != '\0' ); 84 50 } 85 void OpenProject( const std::string &projectFileName );86 void CloseProject( const std::string &projectName );87 88 void CloseAllProjects();89 51 }; 90 52 … … 92 54 }} 93 55 94 extern ActiveBasic::IDE::ProjectManager projectManager; 95 extern PROJECTINFO ProjectInfo; 56 extern ActiveBasic::IDE::Project projectInfo; -
trunk/ab5.0/abdev/abdev/src/MainFrame.cpp
r616 r618 88 88 89 89 //プロジェクトを閉じる 90 if( ProjectInfo.name[0]){90 if(projectInfo.name[0]){ 91 91 if(!CloseProject()) return; 92 92 } … … 446 446 lstrcpy(temporary,NewFileName); 447 447 if(!strstr(temporary,".")) lstrcat(temporary,".ab"); 448 GetFullPath(temporary, ProjectInfo.dir);448 GetFullPath(temporary,projectInfo.dir); 449 449 } 450 450 else bAddToProject=0; … … 521 521 void MainFrame::OnCmdProjectFolderOpen( UINT uNotifyCode, int nID, CWindow wndCtl ) 522 522 { 523 ShellExecute(m_hWnd,"explore", ProjectInfo.dir,NULL,NULL,SW_SHOWNORMAL);523 ShellExecute(m_hWnd,"explore",projectInfo.dir,NULL,NULL,SW_SHOWNORMAL); 524 524 } 525 525 … … 550 550 if(MdiInfo[i].hwnd) SaveDocument(MdiInfo[i].hwnd,NULL); 551 551 } 552 if( ProjectInfo.name[0]) SaveProject();552 if(projectInfo.name[0]) SaveProject(); 553 553 } 554 554 … … 935 935 936 936 HWND hChild = ::GetWindow(hClient,GW_CHILD); 937 if( ProjectInfo.name[0]){937 if(projectInfo.name[0]){ 938 938 //プロジェクトが開かれている場合 939 939 if(!SetProjectToRun()) return; 940 940 941 941 //デバッグ用のコマンドライン及び実行可能ファイル(DLLのみ) 942 sprintf(temporary,"%s\r\n%s", ProjectInfo.szExePath,ProjectInfo.szCmdLine);942 sprintf(temporary,"%s\r\n%s",projectInfo.szExePath,projectInfo.szCmdLine); 943 943 sprintf(temp2,"%spgm.tmp",pj_editor_Dir); 944 944 HANDLE hFile=CreateFile(temp2,GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_TEMPORARY,NULL); … … 948 948 949 949 //ソースファイル名をtemp2へ 950 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[0]->GetFullPath(temp2);950 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[0]->GetFullPath(temp2); 951 951 952 952 //出力ファイル名をtemp3へ 953 lstrcpy(temp3, ProjectInfo.lpszOutput_Debug);954 GetFullPath(temp3, ProjectInfo.dir);953 lstrcpy(temp3,projectInfo.lpszOutput_Debug); 954 GetFullPath(temp3,projectInfo.dir); 955 955 956 956 if(IsNeedCompileForProject(1)) … … 960 960 961 961 // DLLオプション 962 if( ProjectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll");962 if(projectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll"); 963 963 964 964 // SLLオプション 965 if( ProjectInfo.dwModuleType == MT_SLL ) lstrcat( temporary, " /static_library" );965 if( projectInfo.dwModuleType == MT_SLL ) lstrcat( temporary, " /static_library" ); 966 966 967 967 //Unicodeオプション 968 if( ProjectInfo.dwOption & PJ_OP_UNICODE) lstrcat(temporary," /unicode");968 if(projectInfo.dwOption & PJ_OP_UNICODE) lstrcat(temporary," /unicode"); 969 969 970 970 //ブレークポイントをセーブ 971 ProjectInfo.pobj_DBBreakPoint->SaveToTempFile();971 projectInfo.pobj_DBBreakPoint->SaveToTempFile(); 972 972 } 973 973 else{ … … 1015 1015 1016 1016 HWND hChild=::GetWindow(hClient,GW_CHILD); 1017 if( ProjectInfo.name[0]){1017 if(projectInfo.name[0]){ 1018 1018 //プロジェクトが開かれている場合 1019 1019 if(!SetProjectToRun()) return; 1020 1020 1021 1021 //ソースファイル名をtemp2へ 1022 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[0]->GetFullPath(temp2);1022 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[0]->GetFullPath(temp2); 1023 1023 1024 1024 //出力ファイル名をtemp3へ 1025 lstrcpy(temp3, ProjectInfo.lpszOutput_Debug);1026 GetFullPath(temp3, ProjectInfo.dir);1025 lstrcpy(temp3,projectInfo.lpszOutput_Debug); 1026 GetFullPath(temp3,projectInfo.dir); 1027 1027 1028 1028 sprintf(temporary,"\"%s\" \"%s\" /debug /wnd:%08x",temp2,temp3,m_hWnd); 1029 1029 1030 1030 //DLLオプション 1031 if( ProjectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll");1031 if(projectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll"); 1032 1032 1033 1033 //Unicodeオプション 1034 if( ProjectInfo.dwOption & PJ_OP_UNICODE) lstrcat(temporary," /unicode");1034 if(projectInfo.dwOption & PJ_OP_UNICODE) lstrcat(temporary," /unicode"); 1035 1035 } 1036 1036 else{ … … 1126 1126 1127 1127 HWND hChild=::GetWindow(hClient,GW_CHILD); 1128 if( ProjectInfo.name[0]){1128 if(projectInfo.name[0]){ 1129 1129 //プロジェクトが開かれている場合 1130 1130 if(!SetProjectToRun()) return; 1131 1131 1132 1132 //ソースファイル名をtemp2へ 1133 ProjectInfo.pobj_DBFileInfo->ppobj_FileInfo[0]->GetFullPath(temp2);1133 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[0]->GetFullPath(temp2); 1134 1134 1135 1135 //出力ファイル名をtemp3へ 1136 lstrcpy(temp3, ProjectInfo.lpszOutput_Release);1137 GetFullPath(temp3, ProjectInfo.dir);1136 lstrcpy(temp3,projectInfo.lpszOutput_Release); 1137 GetFullPath(temp3,projectInfo.dir); 1138 1138 1139 1139 sprintf(temporary,"\"%s\" \"%s\" /wnd:%08x",temp2,temp3,m_hWnd); 1140 1140 1141 1141 //DLLオプション 1142 if( ProjectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll");1142 if(projectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll"); 1143 1143 1144 1144 //Unicodeオプション 1145 if( ProjectInfo.dwOption & PJ_OP_UNICODE) lstrcat(temporary," /unicode");1145 if(projectInfo.dwOption & PJ_OP_UNICODE) lstrcat(temporary," /unicode"); 1146 1146 } 1147 1147 else{ … … 1182 1182 1183 1183 HWND hChild=::GetWindow(hClient,GW_CHILD); 1184 if( ProjectInfo.name[0]){1184 if(projectInfo.name[0]){ 1185 1185 /* //プロジェクトが開かれている場合 1186 1186 if(!SetProjectToRun()) return; … … 1190 1190 SendMessage(WM_COMMAND,IDM_RELEASECOMPILE,0);*/ 1191 1191 1192 if( ProjectInfo.dwModuleType==MT_DLL){1193 lstrcpy(temporary, ProjectInfo.szExePath);1192 if(projectInfo.dwModuleType==MT_DLL){ 1193 lstrcpy(temporary,projectInfo.szExePath); 1194 1194 } 1195 1195 else{ 1196 lstrcpy(temporary, ProjectInfo.lpszOutput_Debug);1197 GetFullPath(temporary, ProjectInfo.dir);1196 lstrcpy(temporary,projectInfo.lpszOutput_Debug); 1197 GetFullPath(temporary,projectInfo.dir); 1198 1198 } 1199 1199 } … … 1236 1236 void MainFrame::OnCmdBreakPoint( UINT uNotifyCode, int nID, CWindow wndCtl ) 1237 1237 { 1238 if( ProjectInfo.name[0]){1239 ProjectInfo.pobj_DBBreakPoint->Event_BreakPoint();1238 if(projectInfo.name[0]){ 1239 projectInfo.pobj_DBBreakPoint->Event_BreakPoint(); 1240 1240 } 1241 1241 else{
Note:
See TracChangeset
for help on using the changeset viewer.