Changeset 625 in dev for trunk/ab5.0/abdev/abdev/ProjectControl.cpp
- Timestamp:
- May 27, 2008, 9:17:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/ProjectControl.cpp
r624 r625 42 42 LRESULT CALLBACK TabProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){ 43 43 extern HANDLE hHeap; 44 extern MDIINFO MdiInfo[MAX_WNDNUM];45 44 extern LPSTR DefFileFilter; 46 45 int i,i2,WndNum; … … 1057 1056 windowInfos.push_back( new ActiveBasic::PM::WindowInfo() ); 1058 1057 windowInfos.back()->SetName( "MainWnd" ); 1059 windowInfos.back()->SetHandleName( "hMainWnd" );1060 1058 windowInfos.back()->pos.x=CW_USEDEFAULT; 1061 1059 windowInfos.back()->pos.y=CW_USEDEFAULT; … … 1077 1075 windowInfos.back()->SetIconResourceName( "" ); 1078 1076 windowInfos.back()->SetClassName( "NORMAL" ); 1079 windowInfos.back()->CallBackName="MainWndProc"; 1080 windowInfos.back()->type=WNDTYPE_DEFAULT; 1081 windowInfos.back()->filepath="MainWnd.ab"; 1077 windowInfos.back()->SetType( ActiveBasic::PM::WindowType::Default ); 1082 1078 sprintf(temporary,"%s%s.wnd",dir,NewProjectInfo.name); 1083 1079 … … 1244 1240 ////////////////////////////////////////// 1245 1241 //ワークファイル(*.wrk)をオープン 1246 extern MDIINFO MdiInfo[MAX_WNDNUM];1247 1242 HTREEITEM hTreeItem; 1248 1243 HANDLE hFind; … … 1571 1566 } 1572 1567 BOOL ProjectModifyCheck(BOOL bRun){ 1573 extern MDIINFO MdiInfo[MAX_WNDNUM];1574 1568 int i,WndNum,sw; 1575 1569 HWND hChild; … … 1601 1595 for(i=0;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 1602 1596 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 1603 if(lstrcmpi(MdiInfo[WndNum].path ,temporary)==0) sw=1;1597 if(lstrcmpi(MdiInfo[WndNum].path.c_str(),temporary)==0) sw=1; 1604 1598 } 1605 1599 } … … 1611 1605 lstrcpy(temporary,resourceItem.filepath.c_str()); 1612 1606 lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() ); 1613 if(lstrcmpi(MdiInfo[WndNum].path ,temporary)==0) sw=1;1607 if(lstrcmpi(MdiInfo[WndNum].path.c_str(),temporary)==0) sw=1; 1614 1608 } 1615 1609 } … … 1639 1633 } 1640 1634 void MakeWorkFile(void){ 1641 extern MDIINFO MdiInfo[MAX_WNDNUM];1642 1635 int i,i2,WndNum; 1643 1636 char temporary[MAX_PATH],buffer[32767]; … … 1658 1651 for(i=0;i<projectInfo.pobj_DBFileInfo->iNum;i++){ 1659 1652 projectInfo.pobj_DBFileInfo->ppobj_FileInfo[i]->GetFullPath(temporary); 1660 if(lstrcmpi(MdiInfo[WndNum].path ,temporary)==0){1653 if(lstrcmpi(MdiInfo[WndNum].path.c_str(),temporary)==0){ 1661 1654 TextEdit_GetSel(WndNum,&CharRange); 1662 1655 … … 1684 1677 BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos ) 1685 1678 { 1686 if(lstrcmpi(MdiInfo[WndNum].path ,pWindowInfo->GetName().c_str())==0){1687 sprintf(buffer+i2,"rad,%s\r\n",MdiInfo[WndNum].path );1679 if(lstrcmpi(MdiInfo[WndNum].path.c_str(),pWindowInfo->GetName().c_str())==0){ 1680 sprintf(buffer+i2,"rad,%s\r\n",MdiInfo[WndNum].path.c_str()); 1688 1681 i2+=lstrlen(buffer+i2); 1689 1682 break; … … 1693 1686 else if(MdiInfo[WndNum].DocType==WNDTYPE_MENU){ 1694 1687 for(i=0;i<projectInfo.NumberOfMenu;i++){ 1695 if(lstrcmpi(MdiInfo[WndNum].path ,projectInfo.pMenuInfo[i].IdName)==0){1696 sprintf(buffer+i2,"menu,%s\r\n",MdiInfo[WndNum].path );1688 if(lstrcmpi(MdiInfo[WndNum].path.c_str(),projectInfo.pMenuInfo[i].IdName)==0){ 1689 sprintf(buffer+i2,"menu,%s\r\n",MdiInfo[WndNum].path.c_str()); 1697 1690 i2+=lstrlen(buffer+i2); 1698 1691 break; … … 1705 1698 lstrcpy(temporary,resourceItem.filepath.c_str()); 1706 1699 lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() ); 1707 if(lstrcmpi(MdiInfo[WndNum].path ,temporary)==0){1700 if(lstrcmpi(MdiInfo[WndNum].path.c_str(),temporary)==0){ 1708 1701 sprintf(buffer+i2,"icon,%s\r\n",resourceItem.filepath.c_str()); 1709 1702 i2+=lstrlen(buffer+i2);
Note:
See TracChangeset
for help on using the changeset viewer.