Changeset 619 in dev for trunk/ab5.0/abdev/abdev/src/MainFrame.cpp
- Timestamp:
- May 19, 2008, 5:41:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/src/MainFrame.cpp
r618 r619 88 88 89 89 //プロジェクトを閉じる 90 if( projectInfo.name[0]){91 if(! CloseProject()) return;90 if( projectInfo.IsOpened() ){ 91 if(!projectInfo.Close()) return; 92 92 } 93 93 … … 506 506 } 507 507 508 OpenProject(temporary);508 projectInfo.Open(temporary); 509 509 } 510 510 … … 516 516 void MainFrame::OnCmdProjectClose( UINT uNotifyCode, int nID, CWindow wndCtl ) 517 517 { 518 CloseProject();518 projectInfo.Close(); 519 519 } 520 520 … … 550 550 if(MdiInfo[i].hwnd) SaveDocument(MdiInfo[i].hwnd,NULL); 551 551 } 552 if( projectInfo.name[0]) SaveProject();552 if( projectInfo.IsOpened() ) SaveProject(); 553 553 } 554 554 … … 935 935 936 936 HWND hChild = ::GetWindow(hClient,GW_CHILD); 937 if( projectInfo.name[0]){937 if( projectInfo.IsOpened() ){ 938 938 //プロジェクトが開かれている場合 939 939 if(!SetProjectToRun()) return; … … 960 960 961 961 // DLLオプション 962 if(projectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll"); 962 if( projectInfo.GetModuleType() == ActiveBasic::Common::TargetModuleType::Dll ) 963 { 964 lstrcat(temporary," /dll"); 965 } 963 966 964 967 // SLLオプション 965 if( projectInfo.dwModuleType == MT_SLL ) lstrcat( temporary, " /static_library" ); 968 if( projectInfo.GetModuleType() == ActiveBasic::Common::TargetModuleType::Sll ) 969 { 970 lstrcat(temporary," /static_library"); 971 } 966 972 967 973 //Unicodeオプション … … 1015 1021 1016 1022 HWND hChild=::GetWindow(hClient,GW_CHILD); 1017 if( projectInfo.name[0]){1023 if( projectInfo.IsOpened() ){ 1018 1024 //プロジェクトが開かれている場合 1019 1025 if(!SetProjectToRun()) return; … … 1029 1035 1030 1036 //DLLオプション 1031 if(projectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll"); 1037 if( projectInfo.GetModuleType() == ActiveBasic::Common::TargetModuleType::Dll ) 1038 { 1039 lstrcat(temporary," /dll"); 1040 } 1032 1041 1033 1042 //Unicodeオプション … … 1126 1135 1127 1136 HWND hChild=::GetWindow(hClient,GW_CHILD); 1128 if( projectInfo.name[0]){1137 if( projectInfo.IsOpened() ){ 1129 1138 //プロジェクトが開かれている場合 1130 1139 if(!SetProjectToRun()) return; … … 1140 1149 1141 1150 //DLLオプション 1142 if(projectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll"); 1151 if( projectInfo.GetModuleType() == ActiveBasic::Common::TargetModuleType::Dll ) 1152 { 1153 lstrcat(temporary," /dll"); 1154 } 1143 1155 1144 1156 //Unicodeオプション … … 1182 1194 1183 1195 HWND hChild=::GetWindow(hClient,GW_CHILD); 1184 if( projectInfo.name[0]){1196 if( projectInfo.IsOpened() ){ 1185 1197 /* //プロジェクトが開かれている場合 1186 1198 if(!SetProjectToRun()) return; … … 1190 1202 SendMessage(WM_COMMAND,IDM_RELEASECOMPILE,0);*/ 1191 1203 1192 if(projectInfo.dwModuleType==MT_DLL){ 1204 if( projectInfo.GetModuleType() == ActiveBasic::Common::TargetModuleType::Dll ) 1205 { 1193 1206 lstrcpy(temporary,projectInfo.szExePath); 1194 1207 } … … 1236 1249 void MainFrame::OnCmdBreakPoint( UINT uNotifyCode, int nID, CWindow wndCtl ) 1237 1250 { 1238 if( projectInfo.name[0]){1251 if( projectInfo.IsOpened() ){ 1239 1252 projectInfo.pobj_DBBreakPoint->Event_BreakPoint(); 1240 1253 }
Note:
See TracChangeset
for help on using the changeset viewer.