Ignore:
Timestamp:
May 21, 2008, 11:02:07 PM (16 years ago)
Author:
dai_9181
Message:

Projectクラスをリファクタリング

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/abdev/RadToolsAndPropertyProc.cpp

    r620 r623  
    564564                SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_BGCOLOR2);
    565565
    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.resourceManager.bitmapResources.size();i3++)
     567                    SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)projectInfo.resourceManager.bitmapResources[i3].idName.c_str());
    568568                if(pWindowInfo->type==WNDTYPE_MODALDLG||
    569569                    pWindowInfo->type==WNDTYPE_MODELESSDLG){
     
    617617                SendDlgItemMessage(hwnd,IDC_ICONRES,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_ICONDEFAULT);
    618618
    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                         i4=i3+1;
     619                for(i3=0,i4=0;i3<projectInfo.resourceManager.iconResources.size();i3++){
     620                    SendDlgItemMessage(hwnd,IDC_ICONRES,CB_ADDSTRING,0,(long)projectInfo.resourceManager.iconResources[i3].idName.c_str());
     621
     622                    if( pWindowInfo->IconResName )
     623                    {
     624                        if( projectInfo.resourceManager.iconResources[i3].idName == pWindowInfo->IconResName )
     625                        {
     626                            i4=i3+1;
     627                        }
     628                    }
    624629                }
    625630                if(i4==0&&pWindowInfo->IconResName){
     
    27272732                        if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){
    27282733                            //アイコンリソースをコンボボックスに挿入
    2729                             for(i3=0;i3<projectInfo.res.NumberOfIconRes;i3++)
    2730                                 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.res.pIconResInfo[i3].IdName);
     2734                            for(i3=0;i3<projectInfo.resourceManager.iconResources.size();i3++)
     2735                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.resourceManager.iconResources[i3].idName.c_str());
    27312736                        }
    27322737                        else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){
    27332738                            //ビットマップリソースをコンボボックスに挿入
    2734                             for(i3=0;i3<projectInfo.res.NumberOfBitmapRes;i3++)
    2735                                 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.res.pBitmapResInfo[i3].IdName);
     2739                            for(i3=0;i3<projectInfo.resourceManager.bitmapResources.size();i3++)
     2740                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.resourceManager.bitmapResources[i3].idName.c_str());
    27362741                        }
    27372742
     
    28162821                                    if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){
    28172822                                        //アイコンリソースをコンボボックスに挿入
    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)
     2823                                        for(i3=0;i3<projectInfo.resourceManager.iconResources.size();i3++){
     2824                                            SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.resourceManager.iconResources[i3].idName.c_str());
     2825
     2826                                            if( projectInfo.resourceManager.iconResources[i3].idName == pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path )
     2827                                            {
    28222828                                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0);
     2829                                            }
    28232830                                        }
    28242831                                    }
    28252832                                    else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){
    28262833                                        //ビットマップリソースをコンボボックスに挿入
    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)
     2834                                        for(i3=0;i3<projectInfo.resourceManager.bitmapResources.size();i3++){
     2835                                            SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.resourceManager.bitmapResources[i3].idName.c_str());
     2836
     2837                                            if( projectInfo.resourceManager.bitmapResources[i3].idName == pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path )
     2838                                            {
    28312839                                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0);
     2840                                            }
    28322841                                        }
    28332842                                    }
     
    29102919                        if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){
    29112920                            //アイコンリソースをコンボボックスに挿入
    2912                             for(i3=0;i3<projectInfo.res.NumberOfIconRes;i3++)
    2913                                 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.res.pIconResInfo[i3].IdName);
     2921                            for(i3=0;i3<projectInfo.resourceManager.iconResources.size();i3++)
     2922                            {
     2923                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.resourceManager.iconResources[i3].idName.c_str());
     2924                            }
    29142925                        }
    29152926                        else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){
    29162927                            //ビットマップリソースをコンボボックスに挿入
    2917                             for(i3=0;i3<projectInfo.res.NumberOfBitmapRes;i3++)
    2918                                 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.res.pBitmapResInfo[i3].IdName);
     2928                            for(i3=0;i3<projectInfo.resourceManager.bitmapResources.size();i3++)
     2929                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.resourceManager.bitmapResources[i3].idName.c_str());
    29192930                        }
    29202931                        break;
Note: See TracChangeset for help on using the changeset viewer.