Changeset 615 in dev for trunk/ab5.0/abdev
- Timestamp:
- May 19, 2008, 7:38:03 AM (17 years ago)
- Location:
- trunk/ab5.0/abdev/abdev
- Files:
-
- 4 added
- 13 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/Common.h
r613 r615 504 504 #define WNDTYPE_MODELESSDLG 3 505 505 506 //イメージタイプ507 #define IMGTYPE_FILE 0508 #define IMGTYPE_RES 1509 510 struct IMAGECTRLINFO{511 int type;512 char *path;513 };514 struct CHILDINFO{515 char *IdName;516 POINT pos;517 SIZE size;518 char *caption;519 DWORD style;520 DWORD ExStyle;521 int Control;522 523 IMAGECTRLINFO ImageCtrlInfo;524 };525 struct WINDOW_INFO{526 //ウィンドウデータ527 char *name;528 char *HandleName;529 POINT pos;530 SIZE size;531 char *caption;532 DWORD style;533 DWORD ExStyle;534 char *MenuID;535 int id;536 int bgColor;537 LOGFONT LogFont;538 char *IconResName;539 char *ClassName;540 char *CallBackName;541 long type;542 char *filepath;543 544 //子ウィンドウ管理545 int NumberOfChildWindows;546 CHILDINFO *pChildInfo;547 548 //ツリー項目549 HTREEITEM hTreeItem;550 };551 506 struct NEWPROJECTINFO{ 552 507 char name[MAX_PATH]; … … 1033 988 //WindowControl.cpp 1034 989 int GetWndInfoNum(char *name); 1035 W INDOW_INFO*GetWndInfo( char *name );990 WindowInfo *GetWndInfo( char *name ); 1036 991 HGLOBAL Rad_GetChildInfoClipboardData(int WndNum,int WndInfoNum); 1037 992 void Rad_PasteChildInfoClipboardData(int WndNum,HGLOBAL hGlobal); … … 1039 994 void GetItemClassName(char *buffer,int Control); 1040 995 void SaveWindowProgram(); 1041 void SaveWindowFile( char *path, const std::vector<WINDOW_INFO>&windowInfos );996 void SaveWindowFile( char *path, const WindowInfos &windowInfos ); 1042 997 _int8 OpenWindowFile(char *path); 1043 998 void GetDefaultWindowFont(LOGFONT *LogFont); … … 1064 1019 1065 1020 //RadProc.cpp 1066 void NewRadWindow( const W INDOW_INFO&windowInfo );1021 void NewRadWindow( const WindowInfo &windowInfo ); 1067 1022 int InsertDlgItem(int WndNum,int WndInfoNum,int ItemNum,POINT *pPos,SIZE *pSize,char *IdName,char *caption,DWORD style_or_WndNum,DWORD ExStyle,int Control,int ImageType,char *ImagePath,DWORD dwInsertType); 1068 1023 void DeleteDlgItem(int WndNum,int WndInfoNum,int ItemNum,BOOL bNoticeChanging); … … 1076 1031 1077 1032 //DrawWindow.cpp 1078 void DrawRadWindow(int WndNum,const W INDOW_INFO*pWindowInfo);1033 void DrawRadWindow(int WndNum,const WindowInfo *pWindowInfo); 1079 1034 1080 1035 //Rad_UndoRedo.cpp … … 1112 1067 //RadSupport.cpp 1113 1068 LRESULT CALLBACK TestWindowProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam); 1114 void SetSupportDlgData(int WndNum, const W INDOW_INFO&windowInfo );1069 void SetSupportDlgData(int WndNum, const WindowInfo &windowInfo ); 1115 1070 BOOL CALLBACK DlgRadSupport(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam); 1116 1071 -
trunk/ab5.0/abdev/abdev/DrawWindow.cpp
r613 r615 687 687 DeleteObject(hBmp); 688 688 } 689 void DesigningWindow(int WndNum,HDC hdc,POINT *pBasePos,const W INDOW_INFO*pWindowInfo){689 void DesigningWindow(int WndNum,HDC hdc,POINT *pBasePos,const WindowInfo *pWindowInfo){ 690 690 extern MDIINFO MdiInfo[MAX_WNDNUM]; 691 691 int i,i2,i3,i4; … … 1748 1748 DeleteObject(hFont); 1749 1749 } 1750 void DrawRadWindow(int WndNum,const W INDOW_INFO*pWindowInfo){1750 void DrawRadWindow(int WndNum,const WindowInfo *pWindowInfo){ 1751 1751 extern MDIINFO MdiInfo[MAX_WNDNUM]; 1752 1752 HBRUSH hOldBrush; -
trunk/ab5.0/abdev/abdev/MessageCallOperation.cpp
r613 r615 20 20 if(lstrcmp(EventName,"MenuClick")==0) return CT_MENU; 21 21 22 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];22 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 23 23 for(i=0;i<pWindowInfo->NumberOfChildWindows;i++){ 24 24 if(lstrcmp(buffer,pWindowInfo->pChildInfo[i].IdName)==0) break; … … 33 33 char *buffer,**ppNames,temporary[MAX_PATH],temp2[MAX_PATH]; 34 34 35 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];35 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 36 36 37 37 NameLen=lstrlen(pWindowInfo->name); … … 133 133 POINT pos; 134 134 135 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];135 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 136 136 137 137 sprintf(temporary,"%s%s",ProjectInfo.dir,pWindowInfo->filepath); … … 219 219 char temporary[MAX_PATH]; 220 220 221 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];221 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 222 222 223 223 MaxCount=ListView_GetItemCount(hList); … … 402 402 403 403 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 404 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);404 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path); 405 405 i=0; 406 406 if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ … … 646 646 { 647 647 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 648 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);648 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path); 649 649 NowMenuNum=GetMenuInfoNum(pWindowInfo->MenuID); 650 650 } -
trunk/ab5.0/abdev/abdev/ProjectControl.cpp
r613 r615 180 180 hTreeItem=TreeView_GetSelection(hMaterialTreeView); 181 181 for(i=0;i<static_cast<int>(ProjectInfo.windowInfos.size());i++){ 182 if(ProjectInfo.windowInfos[i] .hTreeItem==hTreeItem){183 NewRadWindow( ProjectInfo.windowInfos[i] );182 if(ProjectInfo.windowInfos[i]->hTreeItem==hTreeItem){ 183 NewRadWindow( *ProjectInfo.windowInfos[i] ); 184 184 break; 185 185 } … … 247 247 } 248 248 for(i=0;i<static_cast<int>(ProjectInfo.windowInfos.size());i++){ 249 if(ProjectInfo.windowInfos[i] .hTreeItem==hTreeItem){249 if(ProjectInfo.windowInfos[i]->hTreeItem==hTreeItem){ 250 250 251 251 //"%s ウィンドウをプロジェクトから削除します。よろしいですか?" 252 sprintf(str,STRING_PJ_CHECK_DELETEWINDOW,ProjectInfo.windowInfos[i] .name);252 sprintf(str,STRING_PJ_CHECK_DELETEWINDOW,ProjectInfo.windowInfos[i]->name); 253 253 if(IDCANCEL==MessageBox(hOwner,str,APPLICATION_NAME,MB_OKCANCEL|MB_ICONEXCLAMATION)) break; 254 254 … … 1053 1053 // ウィンドウ定義ファイル(*.wnd)を作成 1054 1054 ///////////////////////////////////////// 1055 std::vector<WINDOW_INFO>windowInfos;1056 windowInfos.push_back( WINDOW_INFO() );1057 windowInfos.back() .name="MainWnd";1058 windowInfos.back() .HandleName="hMainWnd";1059 windowInfos.back() .pos.x=CW_USEDEFAULT;1060 windowInfos.back() .pos.y=CW_USEDEFAULT;1061 windowInfos.back() .size.cx=480;1062 windowInfos.back() .size.cy=360;1063 windowInfos.back() .caption=NewProjectInfo.name;1055 WindowInfos windowInfos; 1056 windowInfos.push_back( new WindowInfo() ); 1057 windowInfos.back()->name="MainWnd"; 1058 windowInfos.back()->HandleName="hMainWnd"; 1059 windowInfos.back()->pos.x=CW_USEDEFAULT; 1060 windowInfos.back()->pos.y=CW_USEDEFAULT; 1061 windowInfos.back()->size.cx=480; 1062 windowInfos.back()->size.cy=360; 1063 windowInfos.back()->caption=NewProjectInfo.name; 1064 1064 if(NewProjectInfo.dwTypeID==IDC_EXE_WINDOWBASE) 1065 windowInfos.back() .style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX|WS_VISIBLE;1065 windowInfos.back()->style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX|WS_VISIBLE; 1066 1066 else if(NewProjectInfo.dwTypeID==IDC_EXE_DIRECTX) 1067 windowInfos.back() .style=WS_OVERLAPPED|WS_THICKFRAME|WS_SYSMENU;1068 windowInfos.back() .ExStyle=0;1069 windowInfos.back() .MenuID=0;1070 windowInfos.back() .id=0;1071 windowInfos.back() .bgColor=COLOR_3DFACE;1072 GetDefaultWindowFont(&windowInfos.back() .LogFont);1073 windowInfos.back() .IconResName=0;1074 windowInfos.back() .ClassName="NORMAL";1075 windowInfos.back() .CallBackName="MainWndProc";1076 windowInfos.back() .type=WNDTYPE_DEFAULT;1077 windowInfos.back() .filepath="MainWnd.ab";1078 windowInfos.back() .NumberOfChildWindows=0;1067 windowInfos.back()->style=WS_OVERLAPPED|WS_THICKFRAME|WS_SYSMENU; 1068 windowInfos.back()->ExStyle=0; 1069 windowInfos.back()->MenuID=0; 1070 windowInfos.back()->id=0; 1071 windowInfos.back()->bgColor=COLOR_3DFACE; 1072 GetDefaultWindowFont(&windowInfos.back()->LogFont); 1073 windowInfos.back()->IconResName=0; 1074 windowInfos.back()->ClassName="NORMAL"; 1075 windowInfos.back()->CallBackName="MainWndProc"; 1076 windowInfos.back()->type=WNDTYPE_DEFAULT; 1077 windowInfos.back()->filepath="MainWnd.ab"; 1078 windowInfos.back()->NumberOfChildWindows=0; 1079 1079 sprintf(temporary,"%s%s.wnd",dir,NewProjectInfo.name); 1080 1080 … … 1204 1204 tv.hParent=TreeView_InsertItem(hMaterialTreeView,&tv); 1205 1205 ProjectInfo.hWindowTreeItem=tv.hParent; 1206 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1206 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1207 1207 { 1208 1208 tv.item.iImage=2; 1209 1209 tv.item.iSelectedImage=2; 1210 tv.item.pszText = windowInfo.name;1211 windowInfo.hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv);1210 tv.item.pszText = pWindowInfo->name; 1211 pWindowInfo->hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv); 1212 1212 } 1213 1213 } … … 1457 1457 } 1458 1458 else{ 1459 ProjectInfo.windowInfos. clear();1459 ProjectInfo.windowInfos.Clear(); 1460 1460 1461 1461 ProjectInfo.NumberOfMenu=0; … … 1582 1582 else if(lstrcmpi(temporary,"rad")==0){ 1583 1583 for(i3=0;i3<static_cast<int>(ProjectInfo.windowInfos.size());i3++){ 1584 if(lstrcmpi(ProjectInfo.windowInfos[i3] .name,temp2)==0){1585 NewRadWindow( ProjectInfo.windowInfos[i3] );1584 if(lstrcmpi(ProjectInfo.windowInfos[i3]->name,temp2)==0){ 1585 NewRadWindow( *ProjectInfo.windowInfos[i3] ); 1586 1586 break; 1587 1587 } … … 1704 1704 else if(lstrcmpi(temporary,"rad")==0){ 1705 1705 for(i3=0;i3<static_cast<int>(ProjectInfo.windowInfos.size());i3++){ 1706 if(lstrcmpi(ProjectInfo.windowInfos[i3] .name,temp2)==0){1707 NewRadWindow( ProjectInfo.windowInfos[i3] );1706 if(lstrcmpi(ProjectInfo.windowInfos[i3]->name,temp2)==0){ 1707 NewRadWindow( *ProjectInfo.windowInfos[i3] ); 1708 1708 break; 1709 1709 } … … 1895 1895 } 1896 1896 else if(MdiInfo[WndNum].DocType==WNDTYPE_RAD){ 1897 BOOST_FOREACH( const W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1897 BOOST_FOREACH( const WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1898 1898 { 1899 if(lstrcmp(MdiInfo[WndNum].path, windowInfo.name)==0){1899 if(lstrcmp(MdiInfo[WndNum].path, pWindowInfo->name)==0){ 1900 1900 SendMessage(hCloseChild,WM_CLOSE,0,0); 1901 1901 break; … … 1930 1930 1931 1931 //ウィンドウ情報のメモリを解放 1932 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1932 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1933 1933 { 1934 HeapDefaultFree( windowInfo.name);1935 HeapDefaultFree( windowInfo.HandleName);1936 HeapDefaultFree( windowInfo.caption);1937 HeapDefaultFree( windowInfo.ClassName);1938 HeapDefaultFree( windowInfo.CallBackName);1939 HeapDefaultFree( windowInfo.filepath);1940 if( windowInfo.MenuID)1941 HeapDefaultFree( windowInfo.MenuID);1942 if( windowInfo.IconResName)1943 HeapDefaultFree( windowInfo.IconResName);1934 HeapDefaultFree(pWindowInfo->name); 1935 HeapDefaultFree(pWindowInfo->HandleName); 1936 HeapDefaultFree(pWindowInfo->caption); 1937 HeapDefaultFree(pWindowInfo->ClassName); 1938 HeapDefaultFree(pWindowInfo->CallBackName); 1939 HeapDefaultFree(pWindowInfo->filepath); 1940 if(pWindowInfo->MenuID) 1941 HeapDefaultFree(pWindowInfo->MenuID); 1942 if(pWindowInfo->IconResName) 1943 HeapDefaultFree(pWindowInfo->IconResName); 1944 1944 1945 1945 //子ウィンドウのメモリを解放 1946 for(i2=0;i2< windowInfo.NumberOfChildWindows;i2++){1947 HeapDefaultFree( windowInfo.pChildInfo[i2].IdName);1948 HeapDefaultFree( windowInfo.pChildInfo[i2].caption);1949 if( windowInfo.pChildInfo[i2].Control==CT_IMAGEBOX){1946 for(i2=0;i2<pWindowInfo->NumberOfChildWindows;i2++){ 1947 HeapDefaultFree(pWindowInfo->pChildInfo[i2].IdName); 1948 HeapDefaultFree(pWindowInfo->pChildInfo[i2].caption); 1949 if(pWindowInfo->pChildInfo[i2].Control==CT_IMAGEBOX){ 1950 1950 //イメージ ボックスの場合 1951 HeapDefaultFree( windowInfo.pChildInfo[i2].ImageCtrlInfo.path);1952 } 1953 } 1954 HeapDefaultFree( windowInfo.pChildInfo);1955 } 1956 ProjectInfo.windowInfos. clear();1951 HeapDefaultFree(pWindowInfo->pChildInfo[i2].ImageCtrlInfo.path); 1952 } 1953 } 1954 HeapDefaultFree(pWindowInfo->pChildInfo); 1955 } 1956 ProjectInfo.windowInfos.Clear(); 1957 1957 1958 1958 //メニュー情報のメモリを解放 … … 2040 2040 } 2041 2041 else if(MdiInfo[WndNum].DocType==WNDTYPE_RAD){ 2042 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )2042 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 2043 2043 { 2044 if(lstrcmpi(MdiInfo[WndNum].path, windowInfo.name)==0){2044 if(lstrcmpi(MdiInfo[WndNum].path,pWindowInfo->name)==0){ 2045 2045 sprintf(buffer+i2,"rad,%s\r\n",MdiInfo[WndNum].path); 2046 2046 i2+=lstrlen(buffer+i2); -
trunk/ab5.0/abdev/abdev/RadProc.cpp
r613 r615 4 4 #include "common.h" 5 5 6 void NewRadWindow( const W INDOW_INFO&windowInfo )6 void NewRadWindow( const WindowInfo &windowInfo ) 7 7 { 8 8 extern HINSTANCE hInst,hResInst; … … 165 165 CHILDINFO *pChildInfo; 166 166 167 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];168 169 pWindowInfo->pChildInfo=(CHILDINFO *)HeapReAlloc(hHeap,0,pWindowInfo->pChildInfo,(pWindowInfo->NumberOfChildWindows+1)*sizeof(W INDOW_INFO));167 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 168 169 pWindowInfo->pChildInfo=(CHILDINFO *)HeapReAlloc(hHeap,0,pWindowInfo->pChildInfo,(pWindowInfo->NumberOfChildWindows+1)*sizeof(WindowInfo)); 170 170 if(ItemNum==-1) 171 171 NewItemNum=pWindowInfo->NumberOfChildWindows; … … 264 264 int i; 265 265 266 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];266 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 267 267 268 268 //変更情報 … … 347 347 RECT rect; 348 348 349 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];349 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 350 350 351 351 hdc=GetDC(hwnd); … … 449 449 extern MDIINFO MdiInfo[MAX_WNDNUM]; 450 450 451 W INDOW_INFO *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 W INDOW_INFO *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 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];609 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 610 610 611 611 for(i=pWindowInfo->NumberOfChildWindows-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 W INDOW_INFO *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 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];703 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 704 704 705 705 if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[1]!=-1){ … … 762 762 SIZE NeedSize; 763 763 764 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);764 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path); 765 765 766 766 //必要な幅、高さを共に100ピクセル余裕を持たせる … … 817 817 i=GetWndNum(GetParent(hwnd)); 818 818 i2 = GetWndInfoNum(MdiInfo[i].path); 819 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);819 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 820 820 821 821 if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){ … … 897 897 i=GetWndNum(hParent); 898 898 i2 = GetWndInfoNum(MdiInfo[i].path); 899 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);899 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 900 900 901 901 if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){ … … 1275 1275 i=GetWndNum(hParent); 1276 1276 i2 = GetWndInfoNum(MdiInfo[i].path); 1277 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1277 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1278 1278 1279 1279 if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){ … … 1440 1440 i=GetWndNum(hParent); 1441 1441 i2=GetWndInfoNum(MdiInfo[i].path); 1442 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1442 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1443 1443 if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){ 1444 1444 if(MdiInfo[i].MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW){ … … 1467 1467 hParent=GetParent(hwnd); 1468 1468 i=GetWndNum(hParent); 1469 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1469 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1470 1470 if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){ 1471 1471 if(MdiInfo[i].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){ -
trunk/ab5.0/abdev/abdev/RadSupport.cpp
r613 r615 50 50 } 51 51 52 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];52 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 53 53 54 54 if(pWindowInfo->style&WS_CHILD){ … … 171 171 } 172 172 173 void SetSupportDlgData(int WndNum, const W INDOW_INFO&windowInfo )173 void SetSupportDlgData(int WndNum, const WindowInfo &windowInfo ) 174 174 { 175 175 //////////////////////////////////// … … 302 302 303 303 i=GetWndNum(GetParent(hwnd)); 304 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);304 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 305 305 306 306 for(i3=0;;i3++){ -
trunk/ab5.0/abdev/abdev/RadToolsAndPropertyProc.cpp
r613 r615 360 360 SetPosCenter(hwnd); 361 361 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 362 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);362 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 363 363 sprintf(temporary,"h%s",pWindowInfo->name); 364 364 sprintf(temp2,"%sProc",pWindowInfo->name); … … 394 394 395 395 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 396 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);396 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 397 397 398 398 RAD_UNDOSTATE_NAME names,NoticeNames; … … 484 484 SetPosCenter(hwnd); 485 485 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 486 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);486 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 487 487 if(pWindowInfo->ExStyle&WS_EX_TOPMOST) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOPMOST,BM_SETCHECK,BST_CHECKED,0); 488 488 if(pWindowInfo->ExStyle&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0); … … 523 523 style|=WS_EX_CONTROLPARENT; 524 524 525 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);525 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 526 526 527 527 if(style==pWindowInfo->ExStyle){ … … 556 556 bInitial=1; 557 557 i=GetWndNum(GetParent(GetParent(hwnd))); 558 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);558 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 559 559 560 560 SetDlgItemText(hwnd,IDC_WINDOWNAME,pWindowInfo->name); … … 704 704 if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW_RENAME),hwnd,(DLGPROC)DlgRadProperty_Window_Rename)) return 1; 705 705 i=GetWndNum(GetParent(GetParent(hwnd))); 706 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);706 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 707 707 SetDlgItemText(hwnd,IDC_WINDOWNAME,pWindowInfo->name); 708 708 SetDlgItemText(hwnd,IDC_HANDLE,pWindowInfo->HandleName); … … 713 713 if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMECAPTION),hwnd,(DLGPROC)DlgRadProperty_Item_RenameCaption)) return 1; 714 714 i=GetWndNum(GetParent(GetParent(hwnd))); 715 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);715 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 716 716 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->caption); 717 717 return 1; … … 720 720 { 721 721 i=GetWndNum(GetParent(GetParent(hwnd))); 722 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);722 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 723 723 LOGFONT lf; 724 724 lf=pWindowInfo->LogFont; … … 735 735 if(HIWORD(wParam)==CBN_SELCHANGE){ 736 736 i=GetWndNum(GetParent(GetParent(hwnd))); 737 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);737 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 738 738 739 739 i3=SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_GETCURSEL,0,0); … … 811 811 if(HIWORD(wParam)==CBN_SELCHANGE){ 812 812 i=GetWndNum(GetParent(GetParent(hwnd))); 813 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);813 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 814 814 815 815 //変更情報 … … 831 831 if(HIWORD(wParam)==CBN_SELCHANGE){ 832 832 i=GetWndNum(GetParent(GetParent(hwnd))); 833 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);833 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 834 834 835 835 //変更情報 … … 852 852 if(HIWORD(wParam)==CBN_SELCHANGE){ 853 853 i=GetWndNum(GetParent(GetParent(hwnd))); 854 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);854 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 855 855 856 856 //変更情報 … … 869 869 if(HIWORD(wParam)==CBN_SELCHANGE){ 870 870 i=GetWndNum(GetParent(GetParent(hwnd))); 871 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);871 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 872 872 873 873 //変更情報 … … 890 890 if(HIWORD(wParam)==BN_CLICKED){ 891 891 i=GetWndNum(GetParent(GetParent(hwnd))); 892 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);892 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 893 893 894 894 //変更情報 … … 907 907 if(HIWORD(wParam)==BN_CLICKED){ 908 908 i=GetWndNum(GetParent(GetParent(hwnd))); 909 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);909 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 910 910 911 911 //変更情報 … … 923 923 if(HIWORD(wParam)==BN_CLICKED){ 924 924 i=GetWndNum(GetParent(GetParent(hwnd))); 925 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);925 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 926 926 927 927 //変更情報 … … 939 939 if(HIWORD(wParam)==BN_CLICKED){ 940 940 i=GetWndNum(GetParent(GetParent(hwnd))); 941 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);941 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 942 942 943 943 //変更情報 … … 955 955 if(HIWORD(wParam)==BN_CLICKED){ 956 956 i=GetWndNum(GetParent(GetParent(hwnd))); 957 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);957 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 958 958 959 959 //変更情報 … … 971 971 if(HIWORD(wParam)==BN_CLICKED){ 972 972 i=GetWndNum(GetParent(GetParent(hwnd))); 973 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);973 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 974 974 975 975 //変更情報 … … 986 986 if(HIWORD(wParam)==BN_CLICKED){ 987 987 i=GetWndNum(GetParent(GetParent(hwnd))); 988 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);988 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 989 989 990 990 //変更情報 … … 1001 1001 if(HIWORD(wParam)==BN_CLICKED){ 1002 1002 i=GetWndNum(GetParent(GetParent(hwnd))); 1003 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1003 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1004 1004 1005 1005 //変更情報 … … 1017 1017 if(HIWORD(wParam)==BN_CLICKED){ 1018 1018 i=GetWndNum(GetParent(GetParent(hwnd))); 1019 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1019 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1020 1020 1021 1021 //変更情報 … … 1033 1033 if(HIWORD(wParam)==BN_CLICKED){ 1034 1034 i=GetWndNum(GetParent(GetParent(hwnd))); 1035 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1035 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1036 1036 1037 1037 //変更情報 … … 1049 1049 if(HIWORD(wParam)==BN_CLICKED){ 1050 1050 i=GetWndNum(GetParent(GetParent(hwnd))); 1051 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1051 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1052 1052 1053 1053 //変更情報 … … 1065 1065 if(HIWORD(wParam)==BN_CLICKED){ 1066 1066 i=GetWndNum(GetParent(GetParent(hwnd))); 1067 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1067 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1068 1068 1069 1069 //変更情報 … … 1090 1090 if(HIWORD(wParam)==BN_CLICKED){ 1091 1091 i=GetWndNum(GetParent(GetParent(hwnd))); 1092 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1092 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1093 1093 1094 1094 //変更情報 … … 1122 1122 SetPosCenter(hwnd); 1123 1123 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1124 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1124 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1125 1125 if(MdiInfo[i].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW) 1126 1126 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->caption); … … 1134 1134 { 1135 1135 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1136 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1136 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1137 1137 1138 1138 i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_CAPTION))+1; … … 1253 1253 SetPosCenter(hwnd); 1254 1254 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1255 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1255 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1256 1256 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); 1257 1257 } … … 1262 1262 { 1263 1263 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1264 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1264 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1265 1265 1266 1266 i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_IDNAME))+1; … … 1302 1302 extern MDIINFO MdiInfo[MAX_WNDNUM]; 1303 1303 1304 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];1304 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 1305 1305 1306 1306 switch(LOWORD(wParam)){ … … 1374 1374 SetPosCenter(hwnd); 1375 1375 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1376 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1376 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1377 1377 if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0); 1378 1378 if(pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].ExStyle&WS_EX_TRANSPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_SETCHECK,BST_CHECKED,0); … … 1387 1387 { 1388 1388 i=GetWndNum(GetWindow(hClient,GW_CHILD)); 1389 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1389 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1390 1390 1391 1391 DWORD style; … … 1437 1437 bInitial=1; 1438 1438 i=GetWndNum(GetParent(GetParent(hwnd))); 1439 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1439 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1440 1440 1441 1441 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 1508 1508 if(i==-1) return 1; 1509 1509 i2=GetWndInfoNum(MdiInfo[i].path); 1510 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[i2];1510 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[i2]; 1511 1511 1512 1512 //共通スタイル … … 1659 1659 bInitial=1; 1660 1660 i=GetWndNum(GetParent(GetParent(hwnd))); 1661 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1661 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1662 1662 1663 1663 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 1735 1735 if(i==-1) return 1; 1736 1736 i2=GetWndInfoNum(MdiInfo[i].path); 1737 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[i2];1737 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[i2]; 1738 1738 1739 1739 //共通スタイル … … 1950 1950 bInitial=1; 1951 1951 i=GetWndNum(GetParent(GetParent(hwnd))); 1952 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);1952 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 1953 1953 1954 1954 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 2017 2017 if(i==-1) return 1; 2018 2018 i2=GetWndInfoNum(MdiInfo[i].path); 2019 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[i2];2019 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[i2]; 2020 2020 2021 2021 //共通スタイル … … 2214 2214 bInitial=1; 2215 2215 i=GetWndNum(GetParent(GetParent(hwnd))); 2216 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);2216 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 2217 2217 2218 2218 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 2271 2271 if(i==-1) return 1; 2272 2272 i2=GetWndInfoNum(MdiInfo[i].path); 2273 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);2273 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 2274 2274 2275 2275 //共通スタイル … … 2495 2495 bInitial=1; 2496 2496 i=GetWndNum(GetParent(GetParent(hwnd))); 2497 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);2497 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 2498 2498 2499 2499 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 2543 2543 if(i==-1) return 1; 2544 2544 i2=GetWndInfoNum(MdiInfo[i].path); 2545 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);2545 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 2546 2546 2547 2547 //共通スタイル … … 2648 2648 bInitial=1; 2649 2649 i=GetWndNum(GetParent(GetParent(hwnd))); 2650 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);2650 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 2651 2651 2652 2652 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 2759 2759 if(i==-1) return 1; 2760 2760 i2=GetWndInfoNum(MdiInfo[i].path); 2761 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);2761 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 2762 2762 2763 2763 //共通スタイル … … 3029 3029 bInitial=1; 3030 3030 i=GetWndNum(GetParent(GetParent(hwnd))); 3031 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);3031 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3032 3032 3033 3033 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 3111 3111 if(i==-1) return 1; 3112 3112 i2=GetWndInfoNum(MdiInfo[i].path); 3113 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);3113 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3114 3114 3115 3115 //共通スタイル … … 3321 3321 bInitial=1; 3322 3322 i=GetWndNum(GetParent(GetParent(hwnd))); 3323 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);3323 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3324 3324 3325 3325 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 3391 3391 if(i==-1) return 1; 3392 3392 i2=GetWndInfoNum(MdiInfo[i].path); 3393 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);3393 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3394 3394 3395 3395 //共通スタイル … … 3575 3575 bInitial=1; 3576 3576 i=GetWndNum(GetParent(GetParent(hwnd))); 3577 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);3577 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3578 3578 3579 3579 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 3601 3601 if(i==-1) return 1; 3602 3602 i2=GetWndInfoNum(MdiInfo[i].path); 3603 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);3603 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3604 3604 3605 3605 //共通スタイル … … 3660 3660 bInitial=1; 3661 3661 i=GetWndNum(GetParent(GetParent(hwnd))); 3662 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);3662 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3663 3663 3664 3664 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 3732 3732 if(i==-1) return 1; 3733 3733 i2=GetWndInfoNum(MdiInfo[i].path); 3734 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);3734 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3735 3735 3736 3736 //共通スタイル … … 3894 3894 bInitial=1; 3895 3895 i=GetWndNum(GetParent(GetParent(hwnd))); 3896 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);3896 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3897 3897 3898 3898 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 3933 3933 if(i==-1) return 1; 3934 3934 i2=GetWndInfoNum(MdiInfo[i].path); 3935 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);3935 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3936 3936 3937 3937 //共通スタイル … … 3979 3979 bInitial=1; 3980 3980 i=GetWndNum(GetParent(GetParent(hwnd))); 3981 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);3981 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 3982 3982 3983 3983 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 4024 4024 if(i==-1) return 1; 4025 4025 i2=GetWndInfoNum(MdiInfo[i].path); 4026 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);4026 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 4027 4027 4028 4028 //共通スタイル … … 4110 4110 bInitial=1; 4111 4111 i=GetWndNum(GetParent(GetParent(hwnd))); 4112 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);4112 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 4113 4113 4114 4114 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 4166 4166 if(i==-1) return 1; 4167 4167 i2=GetWndInfoNum(MdiInfo[i].path); 4168 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);4168 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 4169 4169 4170 4170 //共通スタイル … … 4263 4263 bInitial=1; 4264 4264 i=GetWndNum(GetParent(GetParent(hwnd))); 4265 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);4265 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 4266 4266 4267 4267 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 4298 4298 if(i==-1) return 1; 4299 4299 i2=GetWndInfoNum(MdiInfo[i].path); 4300 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);4300 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 4301 4301 4302 4302 //共通スタイル … … 4475 4475 bInitial=1; 4476 4476 i=GetWndNum(GetParent(GetParent(hwnd))); 4477 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);4477 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 4478 4478 4479 4479 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->pChildInfo[MdiInfo[i].MdiRadInfo->SelectingItem[0]].IdName); … … 4533 4533 if(i==-1) return 1; 4534 4534 i2=GetWndInfoNum(MdiInfo[i].path); 4535 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[i].path);4535 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path); 4536 4536 4537 4537 //共通スタイル -
trunk/ab5.0/abdev/abdev/Rad_UndoRedo.cpp
r613 r615 20 20 pUndoState->NowPos=i; 21 21 22 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);22 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path); 23 23 int WndInfoNum = GetWndInfoNum(MdiInfo[WndNum].path); 24 24 switch(pUndoState->Command[pUndoState->NowPos]){ … … 206 206 } 207 207 208 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);208 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path); 209 209 int WndInfoNum = GetWndInfoNum(MdiInfo[WndNum].path); 210 210 switch(pUndoState->Command[pUndoState->NowPos]){ -
trunk/ab5.0/abdev/abdev/WindowControl.cpp
r613 r615 15 15 int GetWndInfoNum(char *name){ 16 16 for( int i=0;i<static_cast<int>(ProjectInfo.windowInfos.size());i++){ 17 if(lstrcmpi(name,ProjectInfo.windowInfos[i] .name)==0) return i;17 if(lstrcmpi(name,ProjectInfo.windowInfos[i]->name)==0) return i; 18 18 } 19 19 return -1; 20 20 } 21 W INDOW_INFO*GetWndInfo( char *name )21 WindowInfo *GetWndInfo( char *name ) 22 22 { 23 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )23 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 24 24 { 25 if(lstrcmpi(name, windowInfo.name)==0) return &windowInfo;25 if(lstrcmpi(name,pWindowInfo->name)==0) return pWindowInfo; 26 26 } 27 27 return NULL; … … 86 86 87 87 for(i3--;i3>=0;i3--){ 88 pChildInfo=&ProjectInfo.windowInfos[WndInfoNum] .pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3]];88 pChildInfo=&ProjectInfo.windowInfos[WndInfoNum]->pChildInfo[MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3]]; 89 89 90 90 MemSize+=lstrlen(pChildInfo->IdName)+1+ … … 352 352 return 1; 353 353 } 354 BOOL GetNotifyCommandByItemMessage(W INDOW_INFO*pWindowInfo,ITEMEVENTINFO *pItemEventInfo,char *Command,char *spaces){354 BOOL GetNotifyCommandByItemMessage(WindowInfo *pWindowInfo,ITEMEVENTINFO *pItemEventInfo,char *Command,char *spaces){ 355 355 int i,i2,i3,sw; 356 356 char temporary[MAX_PATH]; … … 429 429 } 430 430 } 431 void GetCommandByItemMessage(W INDOW_INFO*pWindowInfo,ITEMEVENTINFO *pItemEventInfo,char *Command,char *spaces){431 void GetCommandByItemMessage(WindowInfo *pWindowInfo,ITEMEVENTINFO *pItemEventInfo,char *Command,char *spaces){ 432 432 extern HANDLE hHeap; 433 433 int i,i2,i3; … … 523 523 char temporary[MAX_PATH],*temp2; 524 524 525 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];525 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 526 526 527 527 Command[0]=0; … … 1003 1003 i4=1000; 1004 1004 i5=0; 1005 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1005 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1006 1006 { 1007 for(i3=0;i3< windowInfo.NumberOfChildWindows;i3++){1007 for(i3=0;i3<pWindowInfo->NumberOfChildWindows;i3++){ 1008 1008 1009 1009 //重複チェック 1010 1010 for(i6=0,sw1=0;i6<i5;i6++){ 1011 if(lstrcmpi(ppNames[i6], windowInfo.pChildInfo[i3].IdName)==0){1011 if(lstrcmpi(ppNames[i6],pWindowInfo->pChildInfo[i3].IdName)==0){ 1012 1012 sw1=1; 1013 1013 break; … … 1017 1017 1018 1018 ppNames=(char **)HeapReAlloc(hHeap,0,ppNames,sizeof(char *)*(i5+1)); 1019 ppNames[i5]= windowInfo.pChildInfo[i3].IdName;1019 ppNames[i5]=pWindowInfo->pChildInfo[i3].IdName; 1020 1020 i5++; 1021 1021 1022 sprintf(buffer+i2,"Const %s=%d\r\n", windowInfo.pChildInfo[i3].IdName,i4);1022 sprintf(buffer+i2,"Const %s=%d\r\n",pWindowInfo->pChildInfo[i3].IdName,i4); 1023 1023 i2+=lstrlen(buffer+i2); 1024 1024 i4++; … … 1040 1040 1041 1041 //ハンドル変数を定義 1042 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1042 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1043 1043 { 1044 sprintf(buffer+i2,"Dim %s As HWND\r\n", windowInfo.HandleName);1045 i2+=lstrlen(buffer+i2); 1046 sprintf(buffer+i2,"Dim hFont_%s As HFONT\r\n", windowInfo.name);1044 sprintf(buffer+i2,"Dim %s As HWND\r\n",pWindowInfo->HandleName); 1045 i2+=lstrlen(buffer+i2); 1046 sprintf(buffer+i2,"Dim hFont_%s As HFONT\r\n",pWindowInfo->name); 1047 1047 i2+=lstrlen(buffer+i2); 1048 1048 sprintf(buffer+i2,"hFont_%s=CreateFont(%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,\"%s\")\r\n", 1049 windowInfo.name,1050 windowInfo.LogFont.lfHeight,1051 windowInfo.LogFont.lfWidth,1052 windowInfo.LogFont.lfEscapement,1053 windowInfo.LogFont.lfOrientation,1054 windowInfo.LogFont.lfWeight,1055 windowInfo.LogFont.lfItalic,1056 windowInfo.LogFont.lfUnderline,1057 windowInfo.LogFont.lfStrikeOut,1058 windowInfo.LogFont.lfCharSet,1059 windowInfo.LogFont.lfOutPrecision,1060 windowInfo.LogFont.lfClipPrecision,1061 windowInfo.LogFont.lfQuality,1062 windowInfo.LogFont.lfPitchAndFamily,1063 windowInfo.LogFont.lfFaceName);1049 pWindowInfo->name, 1050 pWindowInfo->LogFont.lfHeight, 1051 pWindowInfo->LogFont.lfWidth, 1052 pWindowInfo->LogFont.lfEscapement, 1053 pWindowInfo->LogFont.lfOrientation, 1054 pWindowInfo->LogFont.lfWeight, 1055 pWindowInfo->LogFont.lfItalic, 1056 pWindowInfo->LogFont.lfUnderline, 1057 pWindowInfo->LogFont.lfStrikeOut, 1058 pWindowInfo->LogFont.lfCharSet, 1059 pWindowInfo->LogFont.lfOutPrecision, 1060 pWindowInfo->LogFont.lfClipPrecision, 1061 pWindowInfo->LogFont.lfQuality, 1062 pWindowInfo->LogFont.lfPitchAndFamily, 1063 pWindowInfo->LogFont.lfFaceName); 1064 1064 i2+=lstrlen(buffer+i2); 1065 1065 … … 1076 1076 i2+=lstrlen(buffer+i2); 1077 1077 i=0; 1078 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1078 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1079 1079 { 1080 if( windowInfo.bgColor<=0&&1081 windowInfo.bgColor!=-(int)RGB(255,255,255)&&1082 windowInfo.bgColor!=-(int)RGB(0,0,0)){1080 if(pWindowInfo->bgColor<=0&& 1081 pWindowInfo->bgColor!=-(int)RGB(255,255,255)&& 1082 pWindowInfo->bgColor!=-(int)RGB(0,0,0)){ 1083 1083 sprintf(buffer+i2,"Dim _RadSys_hBackBrush%d As HBRUSH\r\n",i); 1084 1084 i2+=lstrlen(buffer+i2); 1085 sprintf(buffer+i2,"_RadSys_hBackBrush%d=CreateSolidBrush(%d)\r\n",i,- windowInfo.bgColor);1085 sprintf(buffer+i2,"_RadSys_hBackBrush%d=CreateSolidBrush(%d)\r\n",i,-pWindowInfo->bgColor); 1086 1086 i2+=lstrlen(buffer+i2); 1087 1087 } 1088 if( windowInfo.bgColor>=0x1000){1088 if(pWindowInfo->bgColor>=0x1000){ 1089 1089 sprintf(buffer+i2,"Dim _RadSys_hBackBrush%d As HBRUSH\r\n",i); 1090 1090 i2+=lstrlen(buffer+i2); 1091 1091 sprintf(buffer+i2,"_RadSys_hBackBrush%d=CreatePatternBrush(LoadImage(GetModuleHandle(0),%s,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE or LR_SHARED))\r\n", 1092 1092 i, 1093 ProjectInfo.res.pBitmapResInfo[ windowInfo.bgColor-0x1000].IdName);1093 ProjectInfo.res.pBitmapResInfo[pWindowInfo->bgColor-0x1000].IdName); 1094 1094 i2+=lstrlen(buffer+i2); 1095 1095 } … … 1102 1102 1103 1103 //イメージ ボックス用の変数を定義 1104 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1104 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1105 1105 { 1106 for(i3=0;i3< windowInfo.NumberOfChildWindows;i3++){1107 if( windowInfo.pChildInfo[i3].Control==CT_IMAGEBOX){1108 if(( windowInfo.pChildInfo[i3].style&0x000F)==SS_ICON||1109 ( windowInfo.pChildInfo[i3].style&0x000F)==SS_BITMAP){1110 sprintf(buffer+i2,"Dim hImage_%s_%s As HANDLE\r\n", windowInfo.name,windowInfo.pChildInfo[i3].IdName);1106 for(i3=0;i3<pWindowInfo->NumberOfChildWindows;i3++){ 1107 if(pWindowInfo->pChildInfo[i3].Control==CT_IMAGEBOX){ 1108 if((pWindowInfo->pChildInfo[i3].style&0x000F)==SS_ICON|| 1109 (pWindowInfo->pChildInfo[i3].style&0x000F)==SS_BITMAP){ 1110 sprintf(buffer+i2,"Dim hImage_%s_%s As HANDLE\r\n",pWindowInfo->name,pWindowInfo->pChildInfo[i3].IdName); 1111 1111 i2+=lstrlen(buffer+i2); 1112 1112 … … 1156 1156 } 1157 1157 1158 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1158 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1159 1159 { 1160 1160 //フォントハンドル解放 1161 sprintf(buffer+i2,"\tDeleteObject(hFont_%s)\r\n", windowInfo.name);1161 sprintf(buffer+i2,"\tDeleteObject(hFont_%s)\r\n",pWindowInfo->name); 1162 1162 i2+=lstrlen(buffer+i2); 1163 1163 … … 1172 1172 i2+=lstrlen(buffer+i2); 1173 1173 i=0; 1174 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1174 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1175 1175 { 1176 if( windowInfo.bgColor<=0&&1177 windowInfo.bgColor!=-(int)RGB(255,255,255)&&1178 windowInfo.bgColor!=-(int)RGB(0,0,0)){1176 if(pWindowInfo->bgColor<=0&& 1177 pWindowInfo->bgColor!=-(int)RGB(255,255,255)&& 1178 pWindowInfo->bgColor!=-(int)RGB(0,0,0)){ 1179 1179 sprintf(buffer+i2,"\tDeleteObject(_RadSys_hBackBrush%d)\r\n",i); 1180 1180 i2+=lstrlen(buffer+i2); … … 1191 1191 1192 1192 i=0; 1193 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1193 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1194 1194 { 1195 1195 if(i!=0){ … … 1205 1205 ppNames=GetProcedureNamesOfMessageCall(i,&pItemEventInfo,&i3,&bAvailUserProc[i]); 1206 1206 1207 sprintf(buffer+i2,"Function EventCall_%s(hWnd As HWND, message As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT\r\n", windowInfo.name);1207 sprintf(buffer+i2,"Function EventCall_%s(hWnd As HWND, message As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT\r\n",pWindowInfo->name); 1208 1208 i2+=lstrlen(buffer+i2); 1209 1209 … … 1243 1243 i2+=lstrlen(buffer+i2); 1244 1244 if(sw4){ 1245 sprintf(buffer+i2,"\t\t\t%s_Notify(ByVal (lParam As *NMHDR))\r\n", windowInfo.name);1245 sprintf(buffer+i2,"\t\t\t%s_Notify(ByVal (lParam As *NMHDR))\r\n",pWindowInfo->name); 1246 1246 i2+=lstrlen(buffer+i2); 1247 1247 } … … 1253 1253 i2+=lstrlen(buffer+i2); 1254 1254 1255 if(GetNotifyCommandByItemMessage( &windowInfo,pItemEventInfo,buffer+i2,"\t\t\t\t")){1255 if(GetNotifyCommandByItemMessage(pWindowInfo,pItemEventInfo,buffer+i2,"\t\t\t\t")){ 1256 1256 i2+=lstrlen(buffer+i2); 1257 1257 … … 1269 1269 lstrcpy(buffer+i2,"\t\tCase WM_NOTIFY\r\n"); 1270 1270 i2+=lstrlen(buffer+i2); 1271 sprintf(buffer+i2,"\t\t\t%s_Notify(ByVal (lParam As *NMHDR))\r\n", windowInfo.name);1271 sprintf(buffer+i2,"\t\t\t%s_Notify(ByVal (lParam As *NMHDR))\r\n",pWindowInfo->name); 1272 1272 i2+=lstrlen(buffer+i2); 1273 1273 } … … 1281 1281 1282 1282 //pItemEventInfoのIdName、EventNameメンバのメモリ解放はこの関数内で行う 1283 GetCommandByItemMessage( &windowInfo,pItemEventInfo,buffer+i2,"\t\t\t\t");1283 GetCommandByItemMessage(pWindowInfo,pItemEventInfo,buffer+i2,"\t\t\t\t"); 1284 1284 i2+=lstrlen(buffer+i2); 1285 1285 … … 1292 1292 lstrcpy(buffer+i2,"\t\tCase Else\r\n"); 1293 1293 i2+=lstrlen(buffer+i2); 1294 sprintf(buffer+i2,"\t\t\tEventCall_%s=DefWindowProc(hWnd,message,wParam,lParam)\r\n", windowInfo.name);1294 sprintf(buffer+i2,"\t\t\tEventCall_%s=DefWindowProc(hWnd,message,wParam,lParam)\r\n",pWindowInfo->name); 1295 1295 i2+=lstrlen(buffer+i2); 1296 1296 lstrcpy(buffer+i2,"\t\t\tExit Function\r\n"); … … 1300 1300 i2+=lstrlen(buffer+i2); 1301 1301 1302 sprintf(buffer+i2,"\tEventCall_%s=0\r\n", windowInfo.name);1302 sprintf(buffer+i2,"\tEventCall_%s=0\r\n",pWindowInfo->name); 1303 1303 i2+=lstrlen(buffer+i2); 1304 1304 lstrcpy(buffer+i2,"End Function\r\n"); … … 1356 1356 sw1=0; 1357 1357 i=0; 1358 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1358 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1359 1359 { 1360 if( windowInfo.type==WNDTYPE_MODALDLG){1360 if(pWindowInfo->type==WNDTYPE_MODALDLG){ 1361 1361 if(sw1==0){ 1362 sprintf(buffer+i2,"\tIf lstrcmp(TemplateName,\"%s\")=0 Then\r\n", windowInfo.name);1362 sprintf(buffer+i2,"\tIf lstrcmp(TemplateName,\"%s\")=0 Then\r\n",pWindowInfo->name); 1363 1363 i2+=lstrlen(buffer+i2); 1364 1364 sw1=1; 1365 1365 } 1366 1366 else{ 1367 sprintf(buffer+i2,"\tElseIf lstrcmp(TemplateName,\"%s\")=0 Then\r\n", windowInfo.name);1367 sprintf(buffer+i2,"\tElseIf lstrcmp(TemplateName,\"%s\")=0 Then\r\n",pWindowInfo->name); 1368 1368 i2+=lstrlen(buffer+i2); 1369 1369 } 1370 1370 sprintf(buffer+i2,"\t\t%s=CreateWindowEx(&H%08x,\"NORMALDLG\",\"%s\",&H%08x,%d,%d,%d,%d,hOwnerWnd,%d As HMENU,GetModuleHandle(0),0)\r\n", 1371 windowInfo.HandleName,1372 windowInfo.ExStyle,1373 windowInfo.caption,1374 windowInfo.style,1375 windowInfo.pos.x,1376 windowInfo.pos.y,1377 windowInfo.size.cx,1378 windowInfo.size.cy,1379 windowInfo.id);1371 pWindowInfo->HandleName, 1372 pWindowInfo->ExStyle, 1373 pWindowInfo->caption, 1374 pWindowInfo->style, 1375 pWindowInfo->pos.x, 1376 pWindowInfo->pos.y, 1377 pWindowInfo->size.cx, 1378 pWindowInfo->size.cy, 1379 pWindowInfo->id); 1380 1380 i2+=lstrlen(buffer+i2); 1381 1381 sprintf(buffer+i2,"\t\thDlg=%s\r\n", 1382 windowInfo.HandleName);1382 pWindowInfo->HandleName); 1383 1383 i2+=lstrlen(buffer+i2); 1384 1384 if(bAvailUserProc[i]){ 1385 1385 sprintf(buffer+i2,"\t\tSetWindowLongPtr(%s,GWLP_WNDPROC,AddressOf(%s) As LONG_PTR)\r\n", 1386 windowInfo.HandleName,1387 windowInfo.CallBackName);1386 pWindowInfo->HandleName, 1387 pWindowInfo->CallBackName); 1388 1388 } 1389 1389 else{ 1390 1390 sprintf(buffer+i2,"\t\tSetWindowLongPtr(%s,GWLP_WNDPROC,AddressOf(EventCall_%s) As LONG_PTR)\r\n", 1391 windowInfo.HandleName,1392 windowInfo.name);1393 } 1394 i2+=lstrlen(buffer+i2); 1395 sprintf(buffer+i2,"\t\tSendMessage(%s,WM_INITDIALOG,0,0)\r\n", windowInfo.HandleName);1396 i2+=lstrlen(buffer+i2); 1397 if( windowInfo.IconResName){1398 sprintf(buffer+i2,"\t\tSendMessage(%s,WM_SETICON,ICON_SMALL,LoadIcon(GetModuleHandle(0),MAKEINTRESOURCE(%s)) As LPARAM)\r\n", windowInfo.HandleName,windowInfo.IconResName);1391 pWindowInfo->HandleName, 1392 pWindowInfo->name); 1393 } 1394 i2+=lstrlen(buffer+i2); 1395 sprintf(buffer+i2,"\t\tSendMessage(%s,WM_INITDIALOG,0,0)\r\n",pWindowInfo->HandleName); 1396 i2+=lstrlen(buffer+i2); 1397 if(pWindowInfo->IconResName){ 1398 sprintf(buffer+i2,"\t\tSendMessage(%s,WM_SETICON,ICON_SMALL,LoadIcon(GetModuleHandle(0),MAKEINTRESOURCE(%s)) As LPARAM)\r\n",pWindowInfo->HandleName,pWindowInfo->IconResName); 1399 1399 i2+=lstrlen(buffer+i2); 1400 1400 } 1401 sprintf(buffer+i2,"\t\tShowWindow(%s,SW_SHOW)\r\n", windowInfo.HandleName);1401 sprintf(buffer+i2,"\t\tShowWindow(%s,SW_SHOW)\r\n",pWindowInfo->HandleName); 1402 1402 i2+=lstrlen(buffer+i2); 1403 1403 } … … 1455 1455 i2+=lstrlen(buffer+i2); 1456 1456 i=0; 1457 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1457 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1458 1458 { 1459 if( windowInfo.type==WNDTYPE_MODELESSDLG){1460 sprintf(buffer+i2,"\tIf lstrcmp(TemplateName,\"%s\")=0 Then\r\n", windowInfo.name);1459 if(pWindowInfo->type==WNDTYPE_MODELESSDLG){ 1460 sprintf(buffer+i2,"\tIf lstrcmp(TemplateName,\"%s\")=0 Then\r\n",pWindowInfo->name); 1461 1461 i2+=lstrlen(buffer+i2); 1462 1462 1463 1463 sprintf(buffer+i2,"\t\t%s=CreateWindowEx(&H%08x,\"NORMALDLG\",\"%s\",&H%08x,%d,%d,%d,%d,hOwnerWnd,%d As HMENU,GetModuleHandle(0),0)\r\n", 1464 windowInfo.HandleName,1465 windowInfo.ExStyle,1466 windowInfo.caption,1467 windowInfo.style,1468 windowInfo.pos.x,1469 windowInfo.pos.y,1470 windowInfo.size.cx,1471 windowInfo.size.cy,1472 windowInfo.id);1473 i2+=lstrlen(buffer+i2); 1474 sprintf(buffer+i2,"\t\tCreateDialog=%s\r\n", windowInfo.HandleName);1464 pWindowInfo->HandleName, 1465 pWindowInfo->ExStyle, 1466 pWindowInfo->caption, 1467 pWindowInfo->style, 1468 pWindowInfo->pos.x, 1469 pWindowInfo->pos.y, 1470 pWindowInfo->size.cx, 1471 pWindowInfo->size.cy, 1472 pWindowInfo->id); 1473 i2+=lstrlen(buffer+i2); 1474 sprintf(buffer+i2,"\t\tCreateDialog=%s\r\n",pWindowInfo->HandleName); 1475 1475 i2+=lstrlen(buffer+i2); 1476 1476 if(bAvailUserProc[i]){ 1477 1477 sprintf(buffer+i2,"\t\tSetWindowLongPtr(%s,GWLP_WNDPROC,AddressOf(%s) As LONG_PTR)\r\n", 1478 windowInfo.HandleName,1479 windowInfo.CallBackName);1478 pWindowInfo->HandleName, 1479 pWindowInfo->CallBackName); 1480 1480 } 1481 1481 else{ 1482 1482 sprintf(buffer+i2,"\t\tSetWindowLongPtr(%s,GWLP_WNDPROC,AddressOf(EventCall_%s) As LONG_PTR)\r\n", 1483 windowInfo.HandleName,1484 windowInfo.name);1485 } 1486 i2+=lstrlen(buffer+i2); 1487 sprintf(buffer+i2,"\t\tSendMessage(%s,WM_INITDIALOG,0,0)\r\n", windowInfo.HandleName);1488 i2+=lstrlen(buffer+i2); 1489 if( windowInfo.IconResName){1490 sprintf(buffer+i2,"\t\tSendMessage(%s,WM_SETICON,ICON_SMALL,LoadIcon(GetModuleHandle(0),MAKEINTRESOURCE(%s)) As LPARAM)\r\n", windowInfo.HandleName,windowInfo.IconResName);1483 pWindowInfo->HandleName, 1484 pWindowInfo->name); 1485 } 1486 i2+=lstrlen(buffer+i2); 1487 sprintf(buffer+i2,"\t\tSendMessage(%s,WM_INITDIALOG,0,0)\r\n",pWindowInfo->HandleName); 1488 i2+=lstrlen(buffer+i2); 1489 if(pWindowInfo->IconResName){ 1490 sprintf(buffer+i2,"\t\tSendMessage(%s,WM_SETICON,ICON_SMALL,LoadIcon(GetModuleHandle(0),MAKEINTRESOURCE(%s)) As LPARAM)\r\n",pWindowInfo->HandleName,pWindowInfo->IconResName); 1491 1491 i2+=lstrlen(buffer+i2); 1492 1492 } 1493 sprintf(buffer+i2,"\tEnd If\r\n", windowInfo.name);1493 sprintf(buffer+i2,"\tEnd If\r\n",pWindowInfo->name); 1494 1494 i2+=lstrlen(buffer+i2); 1495 1495 } … … 1528 1528 1529 1529 i=0; 1530 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1530 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1531 1531 { 1532 if( windowInfo.type==WNDTYPE_DEFAULT){1532 if(pWindowInfo->type==WNDTYPE_DEFAULT){ 1533 1533 ////////////////////// 1534 1534 //通常ウィンドウ作成 … … 1537 1537 i2+=2; 1538 1538 1539 if( windowInfo.IconResName==0){1539 if(pWindowInfo->IconResName==0){ 1540 1540 lstrcpy(buffer+i2,"_RadSys_wcl.hIcon=LoadIcon(NULL,MAKEINTRESOURCE(IDI_APPLICATION))\r\n"); 1541 1541 i2+=lstrlen(buffer+i2); … … 1544 1544 } 1545 1545 else{ 1546 sprintf(buffer+i2,"_RadSys_wcl.hIcon=LoadIcon(_RadSys_wcl.hInstance,MAKEINTRESOURCE(%s))\r\n", windowInfo.IconResName);1546 sprintf(buffer+i2,"_RadSys_wcl.hIcon=LoadIcon(_RadSys_wcl.hInstance,MAKEINTRESOURCE(%s))\r\n",pWindowInfo->IconResName); 1547 1547 i2+=lstrlen(buffer+i2); 1548 sprintf(buffer+i2,"_RadSys_wcl.hIconSm=LoadIcon(_RadSys_wcl.hInstance,MAKEINTRESOURCE(%s))\r\n", windowInfo.IconResName);1548 sprintf(buffer+i2,"_RadSys_wcl.hIconSm=LoadIcon(_RadSys_wcl.hInstance,MAKEINTRESOURCE(%s))\r\n",pWindowInfo->IconResName); 1549 1549 i2+=lstrlen(buffer+i2); 1550 1550 } … … 1553 1553 i2+=lstrlen(buffer+i2); 1554 1554 if(bAvailUserProc[i]) 1555 sprintf(buffer+i2,"_RadSys_wcl.lpfnWndProc=AddressOf(%s)\r\n", windowInfo.CallBackName);1556 else sprintf(buffer+i2,"_RadSys_wcl.lpfnWndProc=AddressOf(EventCall_%s)\r\n", windowInfo.name);1557 i2+=lstrlen(buffer+i2); 1558 if( windowInfo.bgColor==COLOR_3DFACE)1555 sprintf(buffer+i2,"_RadSys_wcl.lpfnWndProc=AddressOf(%s)\r\n",pWindowInfo->CallBackName); 1556 else sprintf(buffer+i2,"_RadSys_wcl.lpfnWndProc=AddressOf(EventCall_%s)\r\n",pWindowInfo->name); 1557 i2+=lstrlen(buffer+i2); 1558 if(pWindowInfo->bgColor==COLOR_3DFACE) 1559 1559 lstrcpy(buffer+i2,"_RadSys_wcl.hbrBackground=h3DFaceBrush\r\n"); 1560 else if( windowInfo.bgColor==-(int)RGB(255,255,255))1560 else if(pWindowInfo->bgColor==-(int)RGB(255,255,255)) 1561 1561 lstrcpy(buffer+i2,"_RadSys_wcl.hbrBackground=GetStockObject(WHITE_BRUSH)\r\n"); 1562 else if( windowInfo.bgColor==-(int)RGB(0,0,0))1562 else if(pWindowInfo->bgColor==-(int)RGB(0,0,0)) 1563 1563 lstrcpy(buffer+i2,"_RadSys_wcl.hbrBackground=GetStockObject(BLACK_BRUSH)\r\n"); 1564 else if( windowInfo.bgColor<=0||1565 windowInfo.bgColor>=0x1000){1564 else if(pWindowInfo->bgColor<=0|| 1565 pWindowInfo->bgColor>=0x1000){ 1566 1566 //色指定またはビットマップ 1567 1567 sprintf(buffer+i2,"_RadSys_wcl.hbrBackground=_RadSys_hBackBrush%d\r\n",i); … … 1571 1571 i2+=lstrlen(buffer+i2); 1572 1572 sprintf(buffer+i2,"CreateWindowEx(&H%08x,\"%s%d\",\"%s\",&H%08x,%d,%d,%d,%d,0,0,GetModuleHandle(0),0)\r\n", 1573 windowInfo.ExStyle,1574 windowInfo.ClassName,i,1575 windowInfo.caption,1576 windowInfo.style,1577 windowInfo.pos.x,1578 windowInfo.pos.y,1579 windowInfo.size.cx,1580 windowInfo.size.cy);1573 pWindowInfo->ExStyle, 1574 pWindowInfo->ClassName,i, 1575 pWindowInfo->caption, 1576 pWindowInfo->style, 1577 pWindowInfo->pos.x, 1578 pWindowInfo->pos.y, 1579 pWindowInfo->size.cx, 1580 pWindowInfo->size.cy); 1581 1581 i2+=lstrlen(buffer+i2); 1582 1582 } … … 1623 1623 return i2; 1624 1624 } 1625 void SaveWindowFile( char *path, const std::vector<WINDOW_INFO>&windowInfos )1625 void SaveWindowFile( char *path, const WindowInfos &windowInfos ) 1626 1626 { 1627 1627 extern HANDLE hHeap; … … 1633 1633 buffer=(char *)HeapAlloc(hHeap,0,GENERAL_SIZE*size); 1634 1634 i2=0; 1635 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )1635 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 1636 1636 { 1637 sprintf(buffer+i2,"WINDOW:%s\r\n", windowInfo.name);1638 i2+=lstrlen(buffer+i2); 1639 sprintf(buffer+i2," HANDLE = %s\r\n", windowInfo.HandleName);1640 i2+=lstrlen(buffer+i2); 1641 sprintf(buffer+i2," POINT = %d,%d\r\n", windowInfo.pos.x,windowInfo.pos.y);1642 i2+=lstrlen(buffer+i2); 1643 sprintf(buffer+i2," SIZE = %d,%d\r\n", windowInfo.size.cx,windowInfo.size.cy);1644 i2+=lstrlen(buffer+i2); 1645 sprintf(buffer+i2," CAPTION = \"%s\"\r\n", windowInfo.caption);1646 i2+=lstrlen(buffer+i2); 1647 sprintf(buffer+i2," STYLE = &H%08x\r\n", windowInfo.style);1648 i2+=lstrlen(buffer+i2); 1649 sprintf(buffer+i2," EXSTYLE = &H%08x\r\n", windowInfo.ExStyle);1650 i2+=lstrlen(buffer+i2); 1651 if( windowInfo.MenuID){1652 sprintf(buffer+i2," MENUID = %s\r\n", windowInfo.MenuID);1653 i2+=lstrlen(buffer+i2); 1654 } 1655 sprintf(buffer+i2," ID = %d\r\n", windowInfo.id);1656 i2+=lstrlen(buffer+i2); 1657 sprintf(buffer+i2," BGCOLOR = %d\r\n", windowInfo.bgColor);1637 sprintf(buffer+i2,"WINDOW:%s\r\n",pWindowInfo->name); 1638 i2+=lstrlen(buffer+i2); 1639 sprintf(buffer+i2," HANDLE = %s\r\n",pWindowInfo->HandleName); 1640 i2+=lstrlen(buffer+i2); 1641 sprintf(buffer+i2," POINT = %d,%d\r\n",pWindowInfo->pos.x,pWindowInfo->pos.y); 1642 i2+=lstrlen(buffer+i2); 1643 sprintf(buffer+i2," SIZE = %d,%d\r\n",pWindowInfo->size.cx,pWindowInfo->size.cy); 1644 i2+=lstrlen(buffer+i2); 1645 sprintf(buffer+i2," CAPTION = \"%s\"\r\n",pWindowInfo->caption); 1646 i2+=lstrlen(buffer+i2); 1647 sprintf(buffer+i2," STYLE = &H%08x\r\n",pWindowInfo->style); 1648 i2+=lstrlen(buffer+i2); 1649 sprintf(buffer+i2," EXSTYLE = &H%08x\r\n",pWindowInfo->ExStyle); 1650 i2+=lstrlen(buffer+i2); 1651 if(pWindowInfo->MenuID){ 1652 sprintf(buffer+i2," MENUID = %s\r\n",pWindowInfo->MenuID); 1653 i2+=lstrlen(buffer+i2); 1654 } 1655 sprintf(buffer+i2," ID = %d\r\n",pWindowInfo->id); 1656 i2+=lstrlen(buffer+i2); 1657 sprintf(buffer+i2," BGCOLOR = %d\r\n",pWindowInfo->bgColor); 1658 1658 i2+=lstrlen(buffer+i2); 1659 1659 sprintf(buffer+i2," FONT = %d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,\"%s\"\r\n", 1660 windowInfo.LogFont.lfHeight,1661 windowInfo.LogFont.lfWidth,1662 windowInfo.LogFont.lfEscapement,1663 windowInfo.LogFont.lfOrientation,1664 windowInfo.LogFont.lfWeight,1665 windowInfo.LogFont.lfItalic,1666 windowInfo.LogFont.lfUnderline,1667 windowInfo.LogFont.lfStrikeOut,1668 windowInfo.LogFont.lfCharSet,1669 windowInfo.LogFont.lfOutPrecision,1670 windowInfo.LogFont.lfClipPrecision,1671 windowInfo.LogFont.lfQuality,1672 windowInfo.LogFont.lfPitchAndFamily,1673 windowInfo.LogFont.lfFaceName);1674 i2+=lstrlen(buffer+i2); 1675 if( windowInfo.IconResName){1676 sprintf(buffer+i2," ICONID = %s\r\n", windowInfo.IconResName);1677 i2+=lstrlen(buffer+i2); 1678 } 1679 sprintf(buffer+i2," CLASS = \"%s\"\r\n", windowInfo.ClassName);1680 i2+=lstrlen(buffer+i2); 1681 sprintf(buffer+i2," CALLBACK = %s\r\n", windowInfo.CallBackName);1682 i2+=lstrlen(buffer+i2); 1683 sprintf(buffer+i2," TYPE = %d\r\n", windowInfo.type);1684 i2+=lstrlen(buffer+i2); 1685 sprintf(buffer+i2," FILEPATH = %s\r\n", windowInfo.filepath);1686 i2+=lstrlen(buffer+i2); 1687 for(i3=0;i3< windowInfo.NumberOfChildWindows;i3++){1688 temporary=SetCaptionSequence( windowInfo.pChildInfo[i3].caption);1660 pWindowInfo->LogFont.lfHeight, 1661 pWindowInfo->LogFont.lfWidth, 1662 pWindowInfo->LogFont.lfEscapement, 1663 pWindowInfo->LogFont.lfOrientation, 1664 pWindowInfo->LogFont.lfWeight, 1665 pWindowInfo->LogFont.lfItalic, 1666 pWindowInfo->LogFont.lfUnderline, 1667 pWindowInfo->LogFont.lfStrikeOut, 1668 pWindowInfo->LogFont.lfCharSet, 1669 pWindowInfo->LogFont.lfOutPrecision, 1670 pWindowInfo->LogFont.lfClipPrecision, 1671 pWindowInfo->LogFont.lfQuality, 1672 pWindowInfo->LogFont.lfPitchAndFamily, 1673 pWindowInfo->LogFont.lfFaceName); 1674 i2+=lstrlen(buffer+i2); 1675 if(pWindowInfo->IconResName){ 1676 sprintf(buffer+i2," ICONID = %s\r\n",pWindowInfo->IconResName); 1677 i2+=lstrlen(buffer+i2); 1678 } 1679 sprintf(buffer+i2," CLASS = \"%s\"\r\n",pWindowInfo->ClassName); 1680 i2+=lstrlen(buffer+i2); 1681 sprintf(buffer+i2," CALLBACK = %s\r\n",pWindowInfo->CallBackName); 1682 i2+=lstrlen(buffer+i2); 1683 sprintf(buffer+i2," TYPE = %d\r\n",pWindowInfo->type); 1684 i2+=lstrlen(buffer+i2); 1685 sprintf(buffer+i2," FILEPATH = %s\r\n",pWindowInfo->filepath); 1686 i2+=lstrlen(buffer+i2); 1687 for(i3=0;i3<pWindowInfo->NumberOfChildWindows;i3++){ 1688 temporary=SetCaptionSequence(pWindowInfo->pChildInfo[i3].caption); 1689 1689 sprintf(buffer+i2," ITEM = %s,%d,%d,%d,%d,\"%s\",&H%08x,&H%08x,%d", 1690 windowInfo.pChildInfo[i3].IdName,1691 windowInfo.pChildInfo[i3].pos.x,windowInfo.pChildInfo[i3].pos.y,1692 windowInfo.pChildInfo[i3].size.cx,windowInfo.pChildInfo[i3].size.cy,1690 pWindowInfo->pChildInfo[i3].IdName, 1691 pWindowInfo->pChildInfo[i3].pos.x,pWindowInfo->pChildInfo[i3].pos.y, 1692 pWindowInfo->pChildInfo[i3].size.cx,pWindowInfo->pChildInfo[i3].size.cy, 1693 1693 temporary, 1694 windowInfo.pChildInfo[i3].style,1695 windowInfo.pChildInfo[i3].ExStyle,1696 windowInfo.pChildInfo[i3].Control1694 pWindowInfo->pChildInfo[i3].style, 1695 pWindowInfo->pChildInfo[i3].ExStyle, 1696 pWindowInfo->pChildInfo[i3].Control 1697 1697 ); 1698 1698 i2+=lstrlen(buffer+i2); 1699 1699 HeapDefaultFree(temporary); 1700 if( windowInfo.pChildInfo[i3].Control==CT_IMAGEBOX){1701 sprintf(buffer+i2,",%d,\"%s\"", windowInfo.pChildInfo[i3].ImageCtrlInfo.type,windowInfo.pChildInfo[i3].ImageCtrlInfo.path);1700 if(pWindowInfo->pChildInfo[i3].Control==CT_IMAGEBOX){ 1701 sprintf(buffer+i2,",%d,\"%s\"",pWindowInfo->pChildInfo[i3].ImageCtrlInfo.type,pWindowInfo->pChildInfo[i3].ImageCtrlInfo.path); 1702 1702 i2+=lstrlen(buffer+i2); 1703 1703 } … … 1709 1709 } 1710 1710 } 1711 sprintf(buffer+i2,"END\r\n", windowInfo.name);1711 sprintf(buffer+i2,"END\r\n",pWindowInfo->name); 1712 1712 i2+=lstrlen(buffer+i2); 1713 1713 if(i2-GENERAL_SIZE<GENERAL_SIZE){ … … 1720 1720 i2+=lstrlen(buffer+i2); 1721 1721 i2+=GetSaveMenuData(buffer+i2,1,ProjectInfo.pMenuInfo[i].pMenuInfo,ProjectInfo.pMenuInfo[i].NumberOfMenu); 1722 sprintf(buffer+i2,"END\r\n",windowInfos[i] .name);1722 sprintf(buffer+i2,"END\r\n",windowInfos[i]->name); 1723 1723 i2+=lstrlen(buffer+i2); 1724 1724 if(i2-GENERAL_SIZE<GENERAL_SIZE){ … … 1841 1841 ProjectInfo.pMenuInfo=(MENU_INFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1); 1842 1842 1843 ProjectInfo.windowInfos. clear();1843 ProjectInfo.windowInfos.Clear(); 1844 1844 1845 1845 for(i=0,i3=0;;i++){ … … 1876 1876 //ウィンドウ 1877 1877 if(lstrcmpi(temporary,"WINDOW")==0&&i3==0){ 1878 ProjectInfo.windowInfos.push_back( WINDOW_INFO() );1878 ProjectInfo.windowInfos.push_back( new WindowInfo() ); 1879 1879 i3=1; 1880 1880 1881 ProjectInfo.windowInfos.back() .name=(char *)HeapAlloc(hHeap,0,i2+1);1882 lstrcpy(ProjectInfo.windowInfos.back() .name,temp2);1883 1884 ProjectInfo.windowInfos.back() .NumberOfChildWindows=0;1885 ProjectInfo.windowInfos.back() .pChildInfo=(CHILDINFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1);1881 ProjectInfo.windowInfos.back()->name=(char *)HeapAlloc(hHeap,0,i2+1); 1882 lstrcpy(ProjectInfo.windowInfos.back()->name,temp2); 1883 1884 ProjectInfo.windowInfos.back()->NumberOfChildWindows=0; 1885 ProjectInfo.windowInfos.back()->pChildInfo=(CHILDINFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1); 1886 1886 } 1887 1887 else if(lstrcmpi(temporary,"HANDLE")==0&&i3==1){ 1888 ProjectInfo.windowInfos.back() .HandleName=(char *)HeapAlloc(hHeap,0,i2+1);1889 lstrcpy(ProjectInfo.windowInfos.back() .HandleName,temp2);1888 ProjectInfo.windowInfos.back()->HandleName=(char *)HeapAlloc(hHeap,0,i2+1); 1889 lstrcpy(ProjectInfo.windowInfos.back()->HandleName,temp2); 1890 1890 } 1891 1891 else if(lstrcmpi(temporary,"POINT")==0&&i3==1){ 1892 1892 sscanf(temp2,"%d,%d", 1893 &ProjectInfo.windowInfos.back() .pos.x,1894 &ProjectInfo.windowInfos.back() .pos.y);1895 if(ProjectInfo.windowInfos.back() .pos.x==-1) ProjectInfo.windowInfos.back().pos.x=CW_USEDEFAULT;1896 if(ProjectInfo.windowInfos.back() .pos.y==-1) ProjectInfo.windowInfos.back().pos.y=CW_USEDEFAULT;1893 &ProjectInfo.windowInfos.back()->pos.x, 1894 &ProjectInfo.windowInfos.back()->pos.y); 1895 if(ProjectInfo.windowInfos.back()->pos.x==-1) ProjectInfo.windowInfos.back()->pos.x=CW_USEDEFAULT; 1896 if(ProjectInfo.windowInfos.back()->pos.y==-1) ProjectInfo.windowInfos.back()->pos.y=CW_USEDEFAULT; 1897 1897 } 1898 1898 else if(lstrcmpi(temporary,"SIZE")==0&&i3==1){ 1899 1899 sscanf(temp2,"%d,%d", 1900 &ProjectInfo.windowInfos.back() .size.cx,1901 &ProjectInfo.windowInfos.back() .size.cy);1900 &ProjectInfo.windowInfos.back()->size.cx, 1901 &ProjectInfo.windowInfos.back()->size.cy); 1902 1902 } 1903 1903 else if(lstrcmpi(temporary,"CAPTION")==0&&i3==1){ 1904 1904 if(temp2[0]=='\"'&&temp2[lstrlen(temp2)-1]=='\"'){ 1905 1905 temp2[lstrlen(temp2)-1]=0; 1906 ProjectInfo.windowInfos.back() .caption=(char *)HeapAlloc(hHeap,0,i2+1);1907 lstrcpy(ProjectInfo.windowInfos.back() .caption,temp2+1);1906 ProjectInfo.windowInfos.back()->caption=(char *)HeapAlloc(hHeap,0,i2+1); 1907 lstrcpy(ProjectInfo.windowInfos.back()->caption,temp2+1); 1908 1908 } 1909 1909 } 1910 else if(lstrcmpi(temporary,"STYLE")==0&&i3==1) ProjectInfo.windowInfos.back() .style=GetValue(temp2);1911 else if(lstrcmpi(temporary,"EXSTYLE")==0&&i3==1) ProjectInfo.windowInfos.back() .ExStyle=GetValue(temp2);1910 else if(lstrcmpi(temporary,"STYLE")==0&&i3==1) ProjectInfo.windowInfos.back()->style=GetValue(temp2); 1911 else if(lstrcmpi(temporary,"EXSTYLE")==0&&i3==1) ProjectInfo.windowInfos.back()->ExStyle=GetValue(temp2); 1912 1912 else if(lstrcmpi(temporary,"MENUID")==0&&i3==1){ 1913 ProjectInfo.windowInfos.back() .MenuID=(char *)HeapAlloc(hHeap,0,i2+1);1914 lstrcpy(ProjectInfo.windowInfos.back() .MenuID,temp2);1915 } 1916 else if(lstrcmpi(temporary,"ID")==0&&i3==1) ProjectInfo.windowInfos.back() .id=GetValue(temp2);1913 ProjectInfo.windowInfos.back()->MenuID=(char *)HeapAlloc(hHeap,0,i2+1); 1914 lstrcpy(ProjectInfo.windowInfos.back()->MenuID,temp2); 1915 } 1916 else if(lstrcmpi(temporary,"ID")==0&&i3==1) ProjectInfo.windowInfos.back()->id=GetValue(temp2); 1917 1917 else if(lstrcmpi(temporary,"BGCOLOR")==0&&i3==1){ 1918 ProjectInfo.windowInfos.back() .bgColor=GetValue(temp2);1918 ProjectInfo.windowInfos.back()->bgColor=GetValue(temp2); 1919 1919 if(ProjectInfo.dwVersion<=3){ 1920 1920 //プロジェクトバージョンが3以前のときは新値に変換する 1921 if(ProjectInfo.windowInfos.back() .bgColor==-1)1922 ProjectInfo.windowInfos.back() .bgColor=-(int)RGB(255,255,255);1921 if(ProjectInfo.windowInfos.back()->bgColor==-1) 1922 ProjectInfo.windowInfos.back()->bgColor=-(int)RGB(255,255,255); 1923 1923 } 1924 1924 } 1925 1925 else if(lstrcmpi(temporary,"FONT")==0&&i3==1){ 1926 1926 i5=GetOneParameter(temp2,0,temp3); 1927 ProjectInfo.windowInfos.back() .LogFont.lfHeight=GetValue(temp3);1927 ProjectInfo.windowInfos.back()->LogFont.lfHeight=GetValue(temp3); 1928 1928 1929 1929 i5=GetOneParameter(temp2,i5,temp3); 1930 ProjectInfo.windowInfos.back() .LogFont.lfWidth=GetValue(temp3);1930 ProjectInfo.windowInfos.back()->LogFont.lfWidth=GetValue(temp3); 1931 1931 1932 1932 i5=GetOneParameter(temp2,i5,temp3); 1933 ProjectInfo.windowInfos.back() .LogFont.lfEscapement=GetValue(temp3);1933 ProjectInfo.windowInfos.back()->LogFont.lfEscapement=GetValue(temp3); 1934 1934 1935 1935 i5=GetOneParameter(temp2,i5,temp3); 1936 ProjectInfo.windowInfos.back() .LogFont.lfOrientation=GetValue(temp3);1936 ProjectInfo.windowInfos.back()->LogFont.lfOrientation=GetValue(temp3); 1937 1937 1938 1938 i5=GetOneParameter(temp2,i5,temp3); 1939 ProjectInfo.windowInfos.back() .LogFont.lfWeight=GetValue(temp3);1939 ProjectInfo.windowInfos.back()->LogFont.lfWeight=GetValue(temp3); 1940 1940 1941 1941 i5=GetOneParameter(temp2,i5,temp3); 1942 ProjectInfo.windowInfos.back() .LogFont.lfItalic=(BYTE)GetValue(temp3);1942 ProjectInfo.windowInfos.back()->LogFont.lfItalic=(BYTE)GetValue(temp3); 1943 1943 1944 1944 i5=GetOneParameter(temp2,i5,temp3); 1945 ProjectInfo.windowInfos.back() .LogFont.lfUnderline=(BYTE)GetValue(temp3);1945 ProjectInfo.windowInfos.back()->LogFont.lfUnderline=(BYTE)GetValue(temp3); 1946 1946 1947 1947 i5=GetOneParameter(temp2,i5,temp3); 1948 ProjectInfo.windowInfos.back() .LogFont.lfStrikeOut=(BYTE)GetValue(temp3);1948 ProjectInfo.windowInfos.back()->LogFont.lfStrikeOut=(BYTE)GetValue(temp3); 1949 1949 1950 1950 i5=GetOneParameter(temp2,i5,temp3); 1951 ProjectInfo.windowInfos.back() .LogFont.lfCharSet=(BYTE)GetValue(temp3);1951 ProjectInfo.windowInfos.back()->LogFont.lfCharSet=(BYTE)GetValue(temp3); 1952 1952 1953 1953 i5=GetOneParameter(temp2,i5,temp3); 1954 ProjectInfo.windowInfos.back() .LogFont.lfOutPrecision=(BYTE)GetValue(temp3);1954 ProjectInfo.windowInfos.back()->LogFont.lfOutPrecision=(BYTE)GetValue(temp3); 1955 1955 1956 1956 i5=GetOneParameter(temp2,i5,temp3); 1957 ProjectInfo.windowInfos.back() .LogFont.lfClipPrecision=(BYTE)GetValue(temp3);1957 ProjectInfo.windowInfos.back()->LogFont.lfClipPrecision=(BYTE)GetValue(temp3); 1958 1958 1959 1959 i5=GetOneParameter(temp2,i5,temp3); 1960 ProjectInfo.windowInfos.back() .LogFont.lfQuality=(BYTE)GetValue(temp3);1960 ProjectInfo.windowInfos.back()->LogFont.lfQuality=(BYTE)GetValue(temp3); 1961 1961 1962 1962 i5=GetOneParameter(temp2,i5,temp3); 1963 ProjectInfo.windowInfos.back() .LogFont.lfPitchAndFamily=(BYTE)GetValue(temp3);1963 ProjectInfo.windowInfos.back()->LogFont.lfPitchAndFamily=(BYTE)GetValue(temp3); 1964 1964 1965 1965 i5=GetOneParameter(temp2,i5,temp3); 1966 1966 RemoveStringQuotes(temp3); 1967 lstrcpy(ProjectInfo.windowInfos.back() .LogFont.lfFaceName,temp3);1967 lstrcpy(ProjectInfo.windowInfos.back()->LogFont.lfFaceName,temp3); 1968 1968 } 1969 1969 else if(lstrcmpi(temporary,"ICONID")==0&&i3==1){ 1970 ProjectInfo.windowInfos.back() .IconResName=(char *)HeapAlloc(hHeap,0,i2+1);1971 lstrcpy(ProjectInfo.windowInfos.back() .IconResName,temp2);1970 ProjectInfo.windowInfos.back()->IconResName=(char *)HeapAlloc(hHeap,0,i2+1); 1971 lstrcpy(ProjectInfo.windowInfos.back()->IconResName,temp2); 1972 1972 } 1973 1973 else if(lstrcmpi(temporary,"CLASS")==0&&i3==1){ 1974 1974 if(temp2[0]=='\"'&&temp2[lstrlen(temp2)-1]=='\"'){ 1975 1975 temp2[lstrlen(temp2)-1]=0; 1976 ProjectInfo.windowInfos.back() .ClassName=(char *)HeapAlloc(hHeap,0,i2+1);1977 lstrcpy(ProjectInfo.windowInfos.back() .ClassName,temp2+1);1976 ProjectInfo.windowInfos.back()->ClassName=(char *)HeapAlloc(hHeap,0,i2+1); 1977 lstrcpy(ProjectInfo.windowInfos.back()->ClassName,temp2+1); 1978 1978 } 1979 1979 } 1980 1980 else if(lstrcmpi(temporary,"CALLBACK")==0&&i3==1){ 1981 ProjectInfo.windowInfos.back() .CallBackName=(char *)HeapAlloc(hHeap,0,i2+1);1982 lstrcpy(ProjectInfo.windowInfos.back() .CallBackName,temp2);1981 ProjectInfo.windowInfos.back()->CallBackName=(char *)HeapAlloc(hHeap,0,i2+1); 1982 lstrcpy(ProjectInfo.windowInfos.back()->CallBackName,temp2); 1983 1983 } 1984 1984 1985 1985 //以前のバージョンとの互換用 1986 else if(lstrcmpi(temporary,"DLGTMP")==0&&i3==1) ProjectInfo.windowInfos.back() .type=GetValue(temp2);1987 1988 else if(lstrcmpi(temporary,"TYPE")==0&&i3==1) ProjectInfo.windowInfos.back() .type=GetValue(temp2);1986 else if(lstrcmpi(temporary,"DLGTMP")==0&&i3==1) ProjectInfo.windowInfos.back()->type=GetValue(temp2); 1987 1988 else if(lstrcmpi(temporary,"TYPE")==0&&i3==1) ProjectInfo.windowInfos.back()->type=GetValue(temp2); 1989 1989 else if(lstrcmpi(temporary,"FILEPATH")==0&&i3==1){ 1990 ProjectInfo.windowInfos.back() .filepath=(char *)HeapAlloc(hHeap,0,i2+1);1991 lstrcpy(ProjectInfo.windowInfos.back() .filepath,temp2);1990 ProjectInfo.windowInfos.back()->filepath=(char *)HeapAlloc(hHeap,0,i2+1); 1991 lstrcpy(ProjectInfo.windowInfos.back()->filepath,temp2); 1992 1992 } 1993 1993 else if(lstrcmpi(temporary,"ITEM")==0&&i3==1){ 1994 ProjectInfo.windowInfos.back() .pChildInfo=(CHILDINFO *)HeapReAlloc(hHeap,HEAP_ZERO_MEMORY,ProjectInfo.windowInfos.back().pChildInfo,(ProjectInfo.windowInfos.back().NumberOfChildWindows+1)*sizeof(CHILDINFO));1995 pChildInfo=&ProjectInfo.windowInfos.back() .pChildInfo[ProjectInfo.windowInfos.back().NumberOfChildWindows];1994 ProjectInfo.windowInfos.back()->pChildInfo=(CHILDINFO *)HeapReAlloc(hHeap,HEAP_ZERO_MEMORY,ProjectInfo.windowInfos.back()->pChildInfo,(ProjectInfo.windowInfos.back()->NumberOfChildWindows+1)*sizeof(CHILDINFO)); 1995 pChildInfo=&ProjectInfo.windowInfos.back()->pChildInfo[ProjectInfo.windowInfos.back()->NumberOfChildWindows]; 1996 1996 1997 1997 //ID … … 2039 2039 } 2040 2040 2041 ProjectInfo.windowInfos.back() .NumberOfChildWindows++;2041 ProjectInfo.windowInfos.back()->NumberOfChildWindows++; 2042 2042 } 2043 2043 … … 2176 2176 return; 2177 2177 } 2178 BOOST_FOREACH( W INDOW_INFO &windowInfo, ProjectInfo.windowInfos )2178 BOOST_FOREACH( WindowInfo *pWindowInfo, ProjectInfo.windowInfos ) 2179 2179 { 2180 if(lstrcmpi(NewWindow.name, windowInfo.name)==0){2180 if(lstrcmpi(NewWindow.name,pWindowInfo->name)==0){ 2181 2181 //"\"%s\" ウィンドウは既にプロジェクト内に存在します。" 2182 sprintf(temporary,STRING_DUPLICATIONERROR_WINDOW_IN_PROJECT, windowInfo.name);2182 sprintf(temporary,STRING_DUPLICATIONERROR_WINDOW_IN_PROJECT,pWindowInfo->name); 2183 2183 MessageBox(hOwner,temporary,STRING_ERROR,MB_OK|MB_ICONEXCLAMATION); 2184 2184 return; 2185 2185 } 2186 if(lstrcmpi(NewWindow.HandleName, windowInfo.HandleName)==0){2186 if(lstrcmpi(NewWindow.HandleName,pWindowInfo->HandleName)==0){ 2187 2187 //"\"%s\" ハンドルは既にプロジェクト内に存在します。" 2188 sprintf(temporary,STRING_DUPLICATIONERROR_HANDLE_IN_PROJECT, windowInfo.HandleName);2188 sprintf(temporary,STRING_DUPLICATIONERROR_HANDLE_IN_PROJECT,pWindowInfo->HandleName); 2189 2189 MessageBox(hOwner,temporary,STRING_ERROR,MB_OK|MB_ICONEXCLAMATION); 2190 2190 return; 2191 2191 } 2192 if(lstrcmpi(NewWindow.CallBackName, windowInfo.CallBackName)==0){2192 if(lstrcmpi(NewWindow.CallBackName,pWindowInfo->CallBackName)==0){ 2193 2193 //"\"%s\" プロシージャは既にプロジェクト内に存在します。" 2194 sprintf(temporary,STRING_DUPLICATIONERROR_PROC_IN_PROJECT, windowInfo.CallBackName);2194 sprintf(temporary,STRING_DUPLICATIONERROR_PROC_IN_PROJECT,pWindowInfo->CallBackName); 2195 2195 MessageBox(hOwner,temporary,STRING_ERROR,MB_OK|MB_ICONEXCLAMATION); 2196 2196 return; … … 2199 2199 2200 2200 //ProjectInfo.windowInfos構造体コレクションに追加 2201 ProjectInfo.windowInfos.push_back( WINDOW_INFO() );2201 ProjectInfo.windowInfos.push_back( new WindowInfo() ); 2202 2202 2203 2203 … … 2206 2206 2207 2207 //ウィンドウ名 2208 ProjectInfo.windowInfos.back() .name=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.name)+1);2209 lstrcpy(ProjectInfo.windowInfos.back() .name,NewWindow.name);2208 ProjectInfo.windowInfos.back()->name=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.name)+1); 2209 lstrcpy(ProjectInfo.windowInfos.back()->name,NewWindow.name); 2210 2210 2211 2211 //ハンドル名 2212 ProjectInfo.windowInfos.back() .HandleName=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.HandleName)+1);2213 lstrcpy(ProjectInfo.windowInfos.back() .HandleName,NewWindow.HandleName);2212 ProjectInfo.windowInfos.back()->HandleName=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.HandleName)+1); 2213 lstrcpy(ProjectInfo.windowInfos.back()->HandleName,NewWindow.HandleName); 2214 2214 2215 2215 //位置情報 2216 ProjectInfo.windowInfos.back() .pos.x=-1;2217 ProjectInfo.windowInfos.back() .pos.y=-1;2218 ProjectInfo.windowInfos.back() .size.cx=480;2219 ProjectInfo.windowInfos.back() .size.cy=360;2216 ProjectInfo.windowInfos.back()->pos.x=-1; 2217 ProjectInfo.windowInfos.back()->pos.y=-1; 2218 ProjectInfo.windowInfos.back()->size.cx=480; 2219 ProjectInfo.windowInfos.back()->size.cy=360; 2220 2220 2221 2221 //ウィンドウテキスト 2222 ProjectInfo.windowInfos.back() .caption=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.name)+1);2223 lstrcpy(ProjectInfo.windowInfos.back() .caption,NewWindow.name);2222 ProjectInfo.windowInfos.back()->caption=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.name)+1); 2223 lstrcpy(ProjectInfo.windowInfos.back()->caption,NewWindow.name); 2224 2224 2225 2225 //スタイル … … 2227 2227 case WNDTYPE_DEFAULT: 2228 2228 //通常ウィンドウ 2229 ProjectInfo.windowInfos.back() .style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX;2229 ProjectInfo.windowInfos.back()->style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX; 2230 2230 break; 2231 2231 case WNDTYPE_MODALDLG: 2232 2232 case WNDTYPE_MODELESSDLG: 2233 2233 //ダイアログ テンプレート(最大化、最小化ボタンをなくして、細枠にする) 2234 ProjectInfo.windowInfos.back() .style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU;2234 ProjectInfo.windowInfos.back()->style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU; 2235 2235 break; 2236 2236 } 2237 2237 2238 2238 //拡張スタイル 2239 ProjectInfo.windowInfos.back() .ExStyle=0;2239 ProjectInfo.windowInfos.back()->ExStyle=0; 2240 2240 2241 2241 //メニュー 2242 ProjectInfo.windowInfos.back() .MenuID=0;2242 ProjectInfo.windowInfos.back()->MenuID=0; 2243 2243 2244 2244 //ID 2245 ProjectInfo.windowInfos.back() .id=0;2245 ProjectInfo.windowInfos.back()->id=0; 2246 2246 2247 2247 //背景色 2248 ProjectInfo.windowInfos.back() .bgColor=COLOR_3DFACE;2248 ProjectInfo.windowInfos.back()->bgColor=COLOR_3DFACE; 2249 2249 2250 2250 //フォント 2251 GetDefaultWindowFont(&ProjectInfo.windowInfos.back() .LogFont);2251 GetDefaultWindowFont(&ProjectInfo.windowInfos.back()->LogFont); 2252 2252 2253 2253 //アイコン 2254 ProjectInfo.windowInfos.back() .IconResName=0;2254 ProjectInfo.windowInfos.back()->IconResName=0; 2255 2255 2256 2256 //クラス名 2257 2257 lstrcpy(temporary,"NORMAL"); 2258 ProjectInfo.windowInfos.back() .ClassName=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);2259 lstrcpy(ProjectInfo.windowInfos.back() .ClassName,temporary);2258 ProjectInfo.windowInfos.back()->ClassName=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 2259 lstrcpy(ProjectInfo.windowInfos.back()->ClassName,temporary); 2260 2260 2261 2261 //コールバック関数名 2262 ProjectInfo.windowInfos.back() .CallBackName=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.CallBackName)+1);2263 lstrcpy(ProjectInfo.windowInfos.back() .CallBackName,NewWindow.CallBackName);2262 ProjectInfo.windowInfos.back()->CallBackName=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.CallBackName)+1); 2263 lstrcpy(ProjectInfo.windowInfos.back()->CallBackName,NewWindow.CallBackName); 2264 2264 2265 2265 //タイプ識別 2266 ProjectInfo.windowInfos.back() .type=NewWindow.type;2266 ProjectInfo.windowInfos.back()->type=NewWindow.type; 2267 2267 2268 2268 //子ウィンドウ情報 2269 ProjectInfo.windowInfos.back() .NumberOfChildWindows=0;2270 ProjectInfo.windowInfos.back() .pChildInfo=(CHILDINFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1);2269 ProjectInfo.windowInfos.back()->NumberOfChildWindows=0; 2270 ProjectInfo.windowInfos.back()->pChildInfo=(CHILDINFO *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1); 2271 2271 2272 2272 2273 2273 //メッセージ処理ファイル名 2274 sprintf(temporary,"%s.ab",ProjectInfo.windowInfos.back() .name);2275 ProjectInfo.windowInfos.back() .filepath=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);2276 lstrcpy(ProjectInfo.windowInfos.back() .filepath,temporary);2274 sprintf(temporary,"%s.ab",ProjectInfo.windowInfos.back()->name); 2275 ProjectInfo.windowInfos.back()->filepath=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1); 2276 lstrcpy(ProjectInfo.windowInfos.back()->filepath,temporary); 2277 2277 2278 2278 … … 2292 2292 NewWindow.CallBackName); 2293 2293 2294 sprintf(temporary,"%s%s.ab",ProjectInfo.dir,ProjectInfo.windowInfos.back() .name);2294 sprintf(temporary,"%s%s.ab",ProjectInfo.dir,ProjectInfo.windowInfos.back()->name); 2295 2295 2296 2296 //書き込み … … 2311 2311 tv.item.iSelectedImage=2; 2312 2312 tv.hParent=ProjectInfo.hWindowTreeItem; 2313 tv.item.pszText=ProjectInfo.windowInfos.back() .name;2314 2315 ProjectInfo.windowInfos.back() .hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv);2316 2317 TreeView_SelectItem(hMaterialTreeView,ProjectInfo.windowInfos.back() .hTreeItem);2313 tv.item.pszText=ProjectInfo.windowInfos.back()->name; 2314 2315 ProjectInfo.windowInfos.back()->hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv); 2316 2317 TreeView_SelectItem(hMaterialTreeView,ProjectInfo.windowInfos.back()->hTreeItem); 2318 2318 2319 2319 2320 2320 ProjectInfo.ModifyOfMaterial=1; 2321 2321 2322 NewRadWindow( ProjectInfo.windowInfos.back() );2322 NewRadWindow( *ProjectInfo.windowInfos.back() ); 2323 2323 } 2324 2324 void Project_Window_Delete(int WndInfoNum){ … … 2327 2327 int i; 2328 2328 2329 W INDOW_INFO *pWindowInfo = &ProjectInfo.windowInfos[WndInfoNum];2329 WindowInfo *pWindowInfo = ProjectInfo.windowInfos[WndInfoNum]; 2330 2330 2331 2331 //ウィンドウが開かれている場合は閉じる … … 2357 2357 2358 2358 //ProjectInfo.windowInfos構造体から削除 2359 std::vector<WINDOW_INFO>::iterator it = ProjectInfo.windowInfos.begin(); 2360 for( int i=0; i!=WndInfoNum ;i++, it++ ) 2361 { 2362 } 2363 ProjectInfo.windowInfos.erase( it ); 2359 ProjectInfo.windowInfos.Erase( WndInfoNum ); 2364 2360 2365 2361 ProjectInfo.ModifyOfMaterial=1; -
trunk/ab5.0/abdev/abdev/abdev.cpp
r609 r615 256 256 //////////////// 257 257 258 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);258 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path); 259 259 if(RadInfo.NowDragging>=FRAME_CHANGEPOS_START&&RadInfo.NowDragging<=FRAME_CHANGEPOS_END){ 260 260 sprintf(temporary,"pos %d, %d", -
trunk/ab5.0/abdev/abdev/abdev.vcproj
r608 r615 2682 2682 </File> 2683 2683 </Filter> 2684 <Filter 2685 Name="ProjectManager" 2686 > 2687 <File 2688 RelativePath=".\src\ProjectManager\ProjectManager.cpp" 2689 > 2690 </File> 2691 </Filter> 2684 2692 </Filter> 2685 2693 <Filter … … 2751 2759 </File> 2752 2760 <File 2753 RelativePath=".\include\ProjectManager.h"2754 >2755 </File>2756 <File2757 2761 RelativePath=".\include\WindowAreaManager.h" 2758 2762 > … … 2784 2788 <File 2785 2789 RelativePath=".\include\WindowComponents\TextView.h" 2790 > 2791 </File> 2792 </Filter> 2793 <Filter 2794 Name="ProjectManager" 2795 > 2796 <File 2797 RelativePath=".\include\ProjectManager\ProjectManager.h" 2798 > 2799 </File> 2800 <File 2801 RelativePath=".\include\ProjectManager\WindowManager.h" 2786 2802 > 2787 2803 </File> -
trunk/ab5.0/abdev/abdev/include/ProjectManager/ProjectManager.h
r614 r615 17 17 HTREEITEM hMenuTreeItem; 18 18 19 std::vector<WINDOW_INFO>windowInfos;19 WindowInfos windowInfos; 20 20 HTREEITEM hWindowTreeItem; 21 21 -
trunk/ab5.0/abdev/abdev/src/MainFrame.cpp
r609 r615 628 628 } 629 629 else if(MdiInfo[WndNum].DocType==WNDTYPE_RAD){ 630 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);630 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path); 631 631 int indexOfWndInfo = GetWndInfoNum(MdiInfo[WndNum].path); 632 632 … … 807 807 } 808 808 else if(MdiInfo[WndNum].DocType==WNDTYPE_RAD){ 809 W INDOW_INFO*pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);809 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path); 810 810 for(int i3=0;i3<pWindowInfo->NumberOfChildWindows;i3++){ 811 811 MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3]=i3; -
trunk/ab5.0/abdev/abdev/stdafx.h
r613 r615 52 52 #include <MainFrame.h> 53 53 #include <Program.h> 54 #include <ProjectManager/WindowManager.h> 54 55 55 56 #include "Common.h" 56 57 57 #include <ProjectManager .h>58 #include <ProjectManager/ProjectManager.h>
Note:
See TracChangeset
for help on using the changeset viewer.