Changeset 624 in dev for trunk/ab5.0/abdev


Ignore:
Timestamp:
May 23, 2008, 10:35:36 PM (16 years ago)
Author:
dai_9181
Message:

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

Location:
trunk/ab5.0/abdev
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/RSrcSection.cpp

    r622 r624  
    9696
    9797    //カーソルの枚数を計算(CursorNumに格納)
    98     for(i3=0;i3<compiler.resourceManager.cursorResources.size();i3++){
    99         hFile=CreateFile(compiler.resourceManager.cursorResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
     98    BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.cursorResources )
     99    {
     100        hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
    100101        if(hFile==INVALID_HANDLE_VALUE){
    101             compiler.errorMessenger.Output(23,compiler.resourceManager.cursorResources[i3].filepath.c_str(),-1);
     102            compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1);
    102103            sw=1;
    103104            continue;
     
    115116
    116117    //ビットマップのファイルの有無を確認
    117     for(i3=0;i3<compiler.resourceManager.bitmapResources.size();i3++){
    118         hFile=CreateFile(compiler.resourceManager.bitmapResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
     118    BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.bitmapResources )
     119    {
     120        hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
    119121        if(hFile==INVALID_HANDLE_VALUE){
    120             compiler.errorMessenger.Output(23,compiler.resourceManager.bitmapResources[i3].filepath.c_str(),-1);
     122            compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1);
    121123            sw=1;
    122124            continue;
     
    126128
    127129    //アイコンの枚数を計算(IconNumに格納)
    128     for(i3=0;i3<compiler.resourceManager.iconResources.size();i3++){
    129         hFile=CreateFile(compiler.resourceManager.iconResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
     130    BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, compiler.resourceManager.iconResources )
     131    {
     132        hFile=CreateFile(resourceItem.filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
    130133        if(hFile==INVALID_HANDLE_VALUE){
    131             compiler.errorMessenger.Output(23,compiler.resourceManager.iconResources[i3].filepath.c_str(),-1);
     134            compiler.errorMessenger.Output(23,resourceItem.filepath.c_str(),-1);
    132135            sw=1;
    133136            continue;
     
    284287        i2+=sizeof(IMAGE_RESOURCE_DIRECTORY);
    285288
    286         for(i3=0;i3<compiler.resourceManager.bitmapResources.size();i3++)
     289        for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++)
    287290        {
    288             ImgDirEntry.Name = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
     291            ImgDirEntry.Name = static_cast<DWORD>(compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
    289292                ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol(
    290293                    compiler.resourceManager.bitmapResources[i3].idName
    291294                )
    292             );
     295            ));
    293296            ImgDirEntry.OffsetToData=(NextBase+i6+
    294297                (sizeof(IMAGE_RESOURCE_DIRECTORY)+
     
    339342        i2+=sizeof(IMAGE_RESOURCE_DIRECTORY);
    340343
    341         for(i3=0;i3<compiler.resourceManager.cursorResources.size();i3++){
    342             ImgDirEntry.Name = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
     344        for(i3=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){
     345            ImgDirEntry.Name = static_cast<DWORD>(compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
    343346                ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol(
    344347                    compiler.resourceManager.cursorResources[i3].idName
    345348                )
    346             );
     349            ));
    347350            ImgDirEntry.OffsetToData=(NextBase+i6+
    348351                (sizeof(IMAGE_RESOURCE_DIRECTORY)+
     
    369372        i2+=sizeof(IMAGE_RESOURCE_DIRECTORY);
    370373
    371         for(i3=0;i3<compiler.resourceManager.iconResources.size();i3++){
    372             ImgDirEntry.Name = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
     374        for(i3=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){
     375            ImgDirEntry.Name = static_cast<DWORD>(compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
    373376                ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol(
    374377                    compiler.resourceManager.iconResources[i3].idName
    375378                )
    376             );
     379            ));
    377380            ImgDirEntry.OffsetToData=(NextBase+i6+
    378381                (sizeof(IMAGE_RESOURCE_DIRECTORY)+
     
    447450    if( !compiler.resourceManager.bitmapResources.empty() ){
    448451        //RT_BITMAP
    449         for(i3=0;i3<compiler.resourceManager.bitmapResources.size();i3++){
     452        for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++){
    450453            ImgResDir.Characteristics=0;
    451454            ImgResDir.TimeDateStamp=0;
     
    490493    {
    491494        //RT_GROUP_CURSOR
    492         for(i3=0;i3<compiler.resourceManager.cursorResources.size();i3++){
     495        for(i3=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){
    493496            ImgResDir.Characteristics=0;
    494497            ImgResDir.TimeDateStamp=0;
     
    512515    {
    513516        //RT_GROUP_ICON
    514         for(i3=0;i3<compiler.resourceManager.iconResources.size();i3++){
     517        for(i3=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){
    515518            ImgResDir.Characteristics=0;
    516519            ImgResDir.TimeDateStamp=0;
     
    590593    //RT_BITMAP
    591594    BitmapEntryBase=DataEntryScheduleNum;
    592     for(i3=0;i3<compiler.resourceManager.bitmapResources.size();i3++){
     595    for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++){
    593596        dwDataEntrySchedule[DataEntryScheduleNum]=i2;
    594597        DataEntryScheduleNum++;
     
    608611    //RT_GROUP_CURSOR
    609612    CursorGroupEntryBase=DataEntryScheduleNum;
    610     for(i3=0;i3<compiler.resourceManager.cursorResources.size();i3++){
     613    for(i3=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){
    611614        dwDataEntrySchedule[DataEntryScheduleNum]=i2;
    612615        DataEntryScheduleNum++;
     
    617620    //RT_GROUP_ICON
    618621    IconGroupEntryBase=DataEntryScheduleNum;
    619     for(i3=0;i3<compiler.resourceManager.iconResources.size();i3++){
     622    for(i3=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){
    620623        dwDataEntrySchedule[DataEntryScheduleNum]=i2;
    621624        DataEntryScheduleNum++;
     
    657660
    658661    //カーソルリソース
    659     for(i3=0,i6=0;i3<compiler.resourceManager.cursorResources.size();i3++){
     662    for(i3=0,i6=0;i3<static_cast<int>(compiler.resourceManager.cursorResources.size());i3++){
    660663        hFile=CreateFile(compiler.resourceManager.cursorResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
    661664        if(hFile==INVALID_HANDLE_VALUE){
     
    737740
    738741    //ビットマップリソース
    739     for(i3=0;i3<compiler.resourceManager.bitmapResources.size();i3++){
     742    for(i3=0;i3<static_cast<int>(compiler.resourceManager.bitmapResources.size());i3++){
    740743        hFile=CreateFile(compiler.resourceManager.bitmapResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
    741744        if(hFile==INVALID_HANDLE_VALUE){
     
    765768
    766769    //アイコンリソース
    767     for(i3=0,i6=0;i3<compiler.resourceManager.iconResources.size();i3++){
     770    for(i3=0,i6=0;i3<static_cast<int>(compiler.resourceManager.iconResources.size());i3++){
    768771        hFile=CreateFile(compiler.resourceManager.iconResources[i3].filepath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
    769772        if(hFile==INVALID_HANDLE_VALUE){
  • trunk/ab5.0/abdev/abdev/Common.h

    r623 r624  
    970970//WindowControl.cpp
    971971int GetWndInfoNum(char *name);
    972 WindowInfo *GetWndInfo( char *name );
     972ActiveBasic::PM::WindowInfo *GetWndInfo( char *name );
    973973HGLOBAL Rad_GetChildInfoClipboardData(int WndNum,int WndInfoNum);
    974974void Rad_PasteChildInfoClipboardData(int WndNum,HGLOBAL hGlobal);
     
    976976void GetItemClassName(char *buffer,int Control);
    977977void SaveWindowProgram();
    978 void SaveWindowFile( char *path, const WindowInfos &windowInfos );
     978void SaveWindowFile( char *path, const ActiveBasic::PM::WindowInfos &windowInfos );
    979979_int8 OpenWindowFile(char *path);
    980980void GetDefaultWindowFont(LOGFONT *LogFont);
     
    10001000
    10011001//RadProc.cpp
    1002 void NewRadWindow( const WindowInfo &windowInfo );
    1003 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);
     1002void NewRadWindow( const ActiveBasic::PM::WindowInfo &windowInfo );
     1003int InsertDlgItem(int WndNum,int WndInfoNum,int ItemNum,POINT *pPos,SIZE *pSize,const char *IdName,const char *caption,DWORD style_or_WndNum,DWORD ExStyle,int Control,ActiveBasic::PM::ImageReferenceType::EnumType ImageType,const char *ImagePath,DWORD dwInsertType);
    10041004void DeleteDlgItem(int WndNum,int WndInfoNum,int ItemNum,BOOL bNoticeChanging);
    10051005void CursorPos_GlobalToLocal(HWND hwnd,long *x,long *y);
     
    10121012
    10131013//DrawWindow.cpp
    1014 void DrawRadWindow(int WndNum,const WindowInfo *pWindowInfo);
     1014void DrawRadWindow(int WndNum,const ActiveBasic::PM::WindowInfo *pWindowInfo);
    10151015
    10161016//Rad_UndoRedo.cpp
     
    10481048//RadSupport.cpp
    10491049LRESULT CALLBACK TestWindowProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
    1050 void SetSupportDlgData(int WndNum, const WindowInfo &windowInfo );
     1050void SetSupportDlgData(int WndNum, const ActiveBasic::PM::WindowInfo &windowInfo );
    10511051BOOL CALLBACK DlgRadSupport(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
    10521052
     
    10571057
    10581058//MenuProc.cpp
    1059 int GetMenuInfoNum(char *name);
     1059int GetMenuInfoNum(const char *name);
    10601060void HeapMenuDataFree(MENU_INFO *pMenuInfo,int ItemNum,int *NumberOfFreedItem);
    10611061BOOL CALLBACK DlgProject_MenuID_Input(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
  • trunk/ab5.0/abdev/abdev/DrawWindow.cpp

    r623 r624  
    687687    DeleteObject(hBmp);
    688688}
    689 void DesigningWindow(int WndNum,HDC hdc,POINT *pBasePos,const WindowInfo *pWindowInfo){
     689void DesigningWindow(int WndNum,HDC hdc,POINT *pBasePos,const ActiveBasic::PM::WindowInfo *pWindowInfo){
    690690    extern MDIINFO MdiInfo[MAX_WNDNUM];
    691691    int i,i2,i3,i4;
     
    713713    InsideRect.bottom=InsideRect.top+pWindowInfo->size.cy;
    714714
    715     if(pWindowInfo->style&(WS_BORDER|WS_THICKFRAME)){
     715    if(pWindowInfo->GetStyle()&(WS_BORDER|WS_THICKFRAME)){
    716716        DrawEdge(hdc,&InsideRect,EDGE_RAISED,BF_RECT);
    717717
     
    725725    ////////////
    726726    //枠を描画
    727     if(pWindowInfo->style&(WS_BORDER|WS_THICKFRAME)){
     727    if(pWindowInfo->GetStyle()&(WS_BORDER|WS_THICKFRAME)){
    728728        //細枠
    729729        hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_ACTIVEBORDER));
     
    739739
    740740        //サイズ変更枠
    741         if(pWindowInfo->style&WS_THICKFRAME){
     741        if(pWindowInfo->GetStyle()&WS_THICKFRAME){
    742742            Rectangle(hdc,InsideRect.left,InsideRect.top,InsideRect.right,InsideRect.bottom);
    743743
     
    758758    MdiInfo[WndNum].MdiRadInfo->ClientPos.y=0;
    759759
    760     if(pWindowInfo->style&(WS_CAPTION&(~WS_BORDER))){
     760    if(pWindowInfo->GetStyle()&(WS_CAPTION&(~WS_BORDER))){
    761761        //////////////////////
    762762        //タイトルバーを描画
     
    773773        }
    774774        else i2=i;
    775         if(pWindowInfo->ExStyle&WS_EX_TOOLWINDOW)
     775        if(pWindowInfo->GetExStyle()&WS_EX_TOOLWINDOW)
    776776            i3=GetSystemMetrics(SM_CYSMCAPTION);
    777777        else i3=GetSystemMetrics(SM_CYCAPTION);
     
    805805        rect.right=InsideRect.right;
    806806        rect.bottom=InsideRect.top+i3;
    807         DrawText(hdc,pWindowInfo->caption,lstrlen(pWindowInfo->caption),&rect,DT_SINGLELINE|DT_VCENTER|DT_NOPREFIX);
     807        DrawText(hdc,pWindowInfo->GetCaption().c_str(),pWindowInfo->GetCaption().size(),&rect,DT_SINGLELINE|DT_VCENTER|DT_NOPREFIX);
    808808        SelectObject(hdc,hOldFont);
    809809        DeleteObject(hFont);
    810810
    811811        //ボタン
    812         if(pWindowInfo->style&WS_SYSMENU){
     812        if(pWindowInfo->GetStyle()&WS_SYSMENU){
    813813            //終了ボタン
    814814            size.cx=GetSystemMetrics(SM_CXSIZE)-2;
     
    857857            GlobalFree(pByte2);
    858858
    859             if(pWindowInfo->style&WS_MAXIMIZEBOX||pWindowInfo->style&WS_MINIMIZEBOX){
     859            if(pWindowInfo->GetStyle()&WS_MAXIMIZEBOX||pWindowInfo->GetStyle()&WS_MINIMIZEBOX){
    860860                //最大化ボタン
    861861                size.cx=GetSystemMetrics(SM_CXSIZE)-2;
     
    864864                pos.y=InsideRect.top+2;
    865865                DrawButtonEdge(WndNum,&pos,&size);
    866                 if(!(pWindowInfo->style&WS_MAXIMIZEBOX)){
     866                if(!(pWindowInfo->GetStyle()&WS_MAXIMIZEBOX)){
    867867                    pos.x++;
    868868                    pos.y++;
     
    897897                pos.y=InsideRect.top+2;
    898898                DrawButtonEdge(WndNum,&pos,&size);
    899                 if(!(pWindowInfo->style&WS_MINIMIZEBOX)){
     899                if(!(pWindowInfo->GetStyle()&WS_MINIMIZEBOX)){
    900900                    pos.x++;
    901901                    pos.y++;
     
    927927    }
    928928
    929     if(pWindowInfo->MenuID){
     929    if( pWindowInfo->HasMenu() )
     930    {
    930931        //メニューラインを3DFACEで描画
    931932        rgb=GetSysColor(COLOR_3DFACE);
     
    954955    size.cx=InsideRect.right-InsideRect.left;
    955956    size.cy=InsideRect.bottom-InsideRect.top;
    956     DrawItemEdgeByExStyle(WndNum,pWindowInfo->ExStyle,&pos,&size);
     957    DrawItemEdgeByExStyle(WndNum,pWindowInfo->GetExStyle(),&pos,&size);
    957958
    958959    //スクロールバーを描画
    959     DrawWindowScrollBar(WndNum,pWindowInfo->style,&pos,&size);
     960    DrawWindowScrollBar(WndNum,pWindowInfo->GetStyle(),&pos,&size);
    960961
    961962    //クライアント領域のサイズを設定
     
    965966    //////////////
    966967    //背景を描画
    967     if(pWindowInfo->bgColor==COLOR_3DFACE){
     968    if(pWindowInfo->GetBackgroundColor()==COLOR_3DFACE){
    968969        //3DFACE
    969970        hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DFACE));
     
    977978        DeleteObject(hBrush);
    978979    }
    979     else if(pWindowInfo->bgColor<=0){
     980    else if(pWindowInfo->GetBackgroundColor()<=0){
    980981        //色指定
    981         hPen=CreatePen(PS_SOLID,0,-pWindowInfo->bgColor);
    982         hBrush=CreateSolidBrush(-pWindowInfo->bgColor);
     982        hPen=CreatePen(PS_SOLID,0,-pWindowInfo->GetBackgroundColor());
     983        hBrush=CreateSolidBrush(-pWindowInfo->GetBackgroundColor());
    983984        hOldPen=(HPEN)SelectObject(hdc,hPen);
    984985        hOldBrush=(HBRUSH)SelectObject(hdc,hBrush);
     
    989990        DeleteObject(hBrush);
    990991    }
    991     else if(pWindowInfo->bgColor>=0x1000){
     992    else if(pWindowInfo->GetBackgroundColor()>=0x1000){
    992993        //ビットマップ
    993         for(i2=0;i2<projectInfo.resourceManager.bitmapResources.size();i2++){
    994             if( projectInfo.resourceManager.bitmapResources[pWindowInfo->bgColor-0x1000].idName == projectInfo.resourceManager.bitmapResources[i2].idName )
     994        BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.bitmapResources )
     995        {
     996            if( projectInfo.resourceManager.bitmapResources[pWindowInfo->GetBackgroundColor()-0x1000].idName == resourceItem.idName )
    995997            {
     998                lstrcpy(temporary,resourceItem.filepath.c_str());
     999                lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() );
     1000                hImage=LoadImage(NULL,temporary,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE);
     1001
     1002                hBrush=CreatePatternBrush((HBITMAP)hImage);
     1003                hOldBrush=(HBRUSH)SelectObject(hdc,hBrush);
     1004                SetBrushOrgEx(hdc,InsideRect.left,InsideRect.top,&pos);
     1005                PatBlt(hdc,
     1006                    InsideRect.left, InsideRect.top,
     1007                    InsideRect.right-InsideRect.left, InsideRect.bottom-InsideRect.top,PATCOPY);
     1008                SetBrushOrgEx(hdc,pos.x,pos.y,0);
     1009                SelectObject(hdc,hOldBrush);
     1010                DeleteObject(hBrush);
     1011                DeleteObject(hImage);
     1012
    9961013                break;
    9971014            }
    998         }
    999         if(i2!=projectInfo.resourceManager.bitmapResources.size()){
    1000             lstrcpy(temporary,projectInfo.resourceManager.bitmapResources[i2].filepath.c_str());
    1001             lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() );
    1002             hImage=LoadImage(NULL,temporary,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE);
    1003 
    1004             hBrush=CreatePatternBrush((HBITMAP)hImage);
    1005             hOldBrush=(HBRUSH)SelectObject(hdc,hBrush);
    1006             SetBrushOrgEx(hdc,InsideRect.left,InsideRect.top,&pos);
    1007             PatBlt(hdc,
    1008                 InsideRect.left, InsideRect.top,
    1009                 InsideRect.right-InsideRect.left, InsideRect.bottom-InsideRect.top,PATCOPY);
    1010             SetBrushOrgEx(hdc,pos.x,pos.y,0);
    1011             SelectObject(hdc,hOldBrush);
    1012             DeleteObject(hBrush);
    1013             DeleteObject(hImage);
    10141015        }
    10151016    }
     
    10191020    //子ウィンドウ(ダイアログアイテム)を描画
    10201021    hFont=CreateFontIndirect(&pWindowInfo->LogFont);
    1021     BOOST_FOREACH( CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos )
     1022    BOOST_FOREACH( ActiveBasic::PM::ChildWindowInfo *pChildInfo, pWindowInfo->childWindowInfos )
    10221023    {
    10231024        pos=pChildInfo->pos;
     
    10251026
    10261027        //ExStyleによる縁を描画
    1027         DrawItemEdgeByExStyle(WndNum,pChildInfo->ExStyle,&pos,&size);
     1028        DrawItemEdgeByExStyle(WndNum,pChildInfo->GetExStyle(),&pos,&size);
    10281029
    10291030        if(pChildInfo->Control==CT_BUTTON){
     
    10311032            // Button コントロール
    10321033
    1033             if((pChildInfo->style&0x0000000F)==BS_DEFPUSHBUTTON){
     1034            if((pChildInfo->GetStyle()&0x0000000F)==BS_DEFPUSHBUTTON){
    10341035                //標準のボタンの場合(黒枠描画)
    10351036                DrawRectangleInClient(WndNum,
     
    10461047            DrawButtonEdge(WndNum,&pos,&size);
    10471048
    1048             if(!(pChildInfo->style&(BS_ICON|BS_BITMAP))){
     1049            if(!(pChildInfo->GetStyle()&(BS_ICON|BS_BITMAP))){
    10491050                //キャプション テキスト
    10501051
     
    10541055                rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum].MdiRadInfo->ClientPos.y;
    10551056
    1056                 if(pChildInfo->style&BS_MULTILINE) i4=0;
     1057                if(pChildInfo->GetStyle()&BS_MULTILINE) i4=0;
    10571058                else i4=DT_SINGLELINE;
    10581059
    10591060                //ビットを考慮してBS_CENTERを最初に比較する
    1060                 if((pChildInfo->style&BS_CENTER)==BS_CENTER) i2=DT_CENTER;
    1061                 else if(pChildInfo->style&BS_LEFT) i2=DT_LEFT;
    1062                 else if(pChildInfo->style&BS_RIGHT) i2=DT_RIGHT;
     1061                if((pChildInfo->GetStyle()&BS_CENTER)==BS_CENTER) i2=DT_CENTER;
     1062                else if(pChildInfo->GetStyle()&BS_LEFT) i2=DT_LEFT;
     1063                else if(pChildInfo->GetStyle()&BS_RIGHT) i2=DT_RIGHT;
    10631064                else i2=DT_CENTER;
    10641065
    10651066                //ビットを考慮してBS_VCENTERを最初に比較する
    1066                 if((pChildInfo->style&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER;
    1067                 else if(pChildInfo->style&BS_TOP) i3=DT_TOP;
    1068                 else if(pChildInfo->style&BS_BOTTOM) i3=DT_BOTTOM;
     1067                if((pChildInfo->GetStyle()&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER;
     1068                else if(pChildInfo->GetStyle()&BS_TOP) i3=DT_TOP;
     1069                else if(pChildInfo->GetStyle()&BS_BOTTOM) i3=DT_BOTTOM;
    10691070                else i3=DT_VCENTER;
    10701071
    10711072                hOldFont=(HFONT)SelectObject(hdc,hFont);
    1072                 if(pChildInfo->style&WS_DISABLED){
     1073                if(pChildInfo->GetStyle()&WS_DISABLED){
    10731074                    SetTextColor(hdc,RGB(255,255,255));
    10741075                    rc2.left=rect.left+1;
     
    10761077                    rc2.right=rect.right+1;
    10771078                    rc2.bottom=rect.bottom+1;
    1078                     DrawText(hdc,pChildInfo->caption,-1,&rc2,i4|i2|i3);
     1079                    DrawText(hdc,pChildInfo->GetCaption().c_str(),-1,&rc2,i4|i2|i3);
    10791080                    SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT));
    10801081                }
    10811082                else SetTextColor(hdc,GetSysColor(COLOR_BTNTEXT));
    10821083
    1083                 DrawText(hdc,pChildInfo->caption,-1,&rect,i4|i2|i3);
     1084                DrawText(hdc,pChildInfo->GetCaption().c_str(),-1,&rect,i4|i2|i3);
    10841085                SelectObject(hdc,hOldFont);
    10851086            }
     
    10891090            // CheckBox コントロール
    10901091
    1091             if(pChildInfo->style&BS_PUSHLIKE){
     1092            if(pChildInfo->GetStyle()&BS_PUSHLIKE){
    10921093                //ボタンの縁を描画
    10931094                DrawButtonEdge(WndNum,&pos,&size);
     
    10971098                size2.cx=13;
    10981099                size2.cy=13;
    1099                 if(pChildInfo->style&BS_LEFTTEXT)
     1100                if(pChildInfo->GetStyle()&BS_LEFTTEXT)
    11001101                    pos2.x=pos.x+size.cx-size2.cx;
    11011102                else pos2.x=pos.x;
    1102                 if((pChildInfo->style&BS_VCENTER)==BS_VCENTER||
    1103                     (pChildInfo->style&BS_VCENTER)==0)
     1103                if((pChildInfo->GetStyle()&BS_VCENTER)==BS_VCENTER||
     1104                    (pChildInfo->GetStyle()&BS_VCENTER)==0)
    11041105                    pos2.y=pos.y+(size.cy/2)-(size2.cy/2);
    1105                 else if(pChildInfo->style&BS_TOP)
     1106                else if(pChildInfo->GetStyle()&BS_TOP)
    11061107                    pos2.y=pos.y+1;
    1107                 else if(pChildInfo->style&BS_BOTTOM)
     1108                else if(pChildInfo->GetStyle()&BS_BOTTOM)
    11081109                    pos2.y=pos.y+size.cy-size2.cy-1;
    11091110                DrawItemEdgeByExStyle(WndNum,WS_EX_CLIENTEDGE,&pos2,&size2);
    11101111
    1111                 if(pChildInfo->style&WS_DISABLED)
     1112                if(pChildInfo->GetStyle()&WS_DISABLED)
    11121113                    rgb=GetSysColor(COLOR_3DFACE);
    11131114                else rgb=GetSysColor(COLOR_WINDOW);
     
    11151116                    pos2.x+size2.cx, pos2.y+size2.cy,
    11161117                    rgb,rgb,1);
    1117                 if(!(pChildInfo->style&BS_LEFTTEXT)) pos.x+=17;
     1118                if(!(pChildInfo->GetStyle()&BS_LEFTTEXT)) pos.x+=17;
    11181119                else pos.x++;
    11191120                size.cx-=17;
    11201121            }
    11211122
    1122             if(!(pChildInfo->style&(BS_ICON|BS_BITMAP))){
     1123            if(!(pChildInfo->GetStyle()&(BS_ICON|BS_BITMAP))){
    11231124                //キャプション テキスト
    11241125                rect.left=pos.x+1+MdiInfo[WndNum].MdiRadInfo->ClientPos.x;
     
    11271128                rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum].MdiRadInfo->ClientPos.y;
    11281129
    1129                 if(pChildInfo->style&BS_MULTILINE) i4=0;
     1130                if(pChildInfo->GetStyle()&BS_MULTILINE) i4=0;
    11301131                else i4=DT_SINGLELINE;
    11311132
    11321133                //ビットを考慮してBS_CENTERを最初に比較する
    1133                 if((pChildInfo->style&BS_CENTER)==BS_CENTER) i2=DT_CENTER;
    1134                 else if(pChildInfo->style&BS_LEFT) i2=DT_LEFT;
    1135                 else if(pChildInfo->style&BS_RIGHT) i2=DT_RIGHT;
     1134                if((pChildInfo->GetStyle()&BS_CENTER)==BS_CENTER) i2=DT_CENTER;
     1135                else if(pChildInfo->GetStyle()&BS_LEFT) i2=DT_LEFT;
     1136                else if(pChildInfo->GetStyle()&BS_RIGHT) i2=DT_RIGHT;
    11361137                else i2=DT_LEFT;
    11371138
    11381139                //ビットを考慮してBS_VCENTERを最初に比較する
    1139                 if((pChildInfo->style&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER;
    1140                 else if(pChildInfo->style&BS_TOP) i3=DT_TOP;
    1141                 else if(pChildInfo->style&BS_BOTTOM) i3=DT_BOTTOM;
     1140                if((pChildInfo->GetStyle()&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER;
     1141                else if(pChildInfo->GetStyle()&BS_TOP) i3=DT_TOP;
     1142                else if(pChildInfo->GetStyle()&BS_BOTTOM) i3=DT_BOTTOM;
    11421143                else i3=DT_VCENTER;
    11431144
    11441145                hOldFont=(HFONT)SelectObject(hdc,hFont);
    1145                 if(pChildInfo->style&WS_DISABLED){
     1146                if(pChildInfo->GetStyle()&WS_DISABLED){
    11461147                    SetTextColor(hdc,RGB(255,255,255));
    11471148                    rc2.left=rect.left+1;
     
    11491150                    rc2.right=rect.right+1;
    11501151                    rc2.bottom=rect.bottom+1;
    1151                     DrawText(hdc,pChildInfo->caption,-1,&rc2,i4|i2|i3);
     1152                    DrawText(hdc,pChildInfo->GetCaption().c_str(),-1,&rc2,i4|i2|i3);
    11521153                    SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT));
    11531154                }
    11541155                else SetTextColor(hdc,GetSysColor(COLOR_BTNTEXT));
    11551156
    1156                 DrawText(hdc,pChildInfo->caption,-1,&rect,i4|i2|i3);
     1157                DrawText(hdc,pChildInfo->GetCaption().c_str(),-1,&rect,i4|i2|i3);
    11571158                SelectObject(hdc,hOldFont);
    11581159            }
     
    11681169
    11691170            //内部
    1170             if(pChildInfo->style&WS_DISABLED)
     1171            if(pChildInfo->GetStyle()&WS_DISABLED)
    11711172                rgb=GetSysColor(COLOR_3DFACE);
    11721173            else rgb=GetSysColor(COLOR_WINDOW);
     
    11761177                rgb,rgb,1);
    11771178
    1178             if((pChildInfo->style&0x000F)==CBS_SIMPLE){
     1179            if((pChildInfo->GetStyle()&0x000F)==CBS_SIMPLE){
    11791180                pos.y+=20;
    11801181                size.cy-=20;
     
    12021203
    12031204                pos2.x--;
    1204                 if(pChildInfo->style&WS_DISABLED){
     1205                if(pChildInfo->GetStyle()&WS_DISABLED){
    12051206                    hPen=CreatePen(PS_SOLID,0,GetSysColor(COLOR_3DHIGHLIGHT));
    12061207                    hOldPen=(HPEN)SelectObject(hdc,hPen);
     
    12331234
    12341235            //内部
    1235             if(pChildInfo->style&WS_DISABLED||pChildInfo->style&ES_READONLY)
     1236            if(pChildInfo->GetStyle()&WS_DISABLED||pChildInfo->GetStyle()&ES_READONLY)
    12361237                rgb=GetSysColor(COLOR_3DFACE);
    12371238            else rgb=GetSysColor(COLOR_WINDOW);
     
    12471248            rect.bottom=pos.y+size.cy-1+MdiInfo[WndNum].MdiRadInfo->ClientPos.y;
    12481249
    1249             if(pChildInfo->style&ES_MULTILINE) i4=0;
     1250            if(pChildInfo->GetStyle()&ES_MULTILINE) i4=0;
    12501251            else i4=DT_SINGLELINE;
    12511252
    12521253            //ビットを考慮してES_LEFTを最後に検討する
    1253             if(pChildInfo->style&ES_CENTER) i2=DT_CENTER;
    1254             else if(pChildInfo->style&ES_RIGHT) i2=DT_RIGHT;
     1254            if(pChildInfo->GetStyle()&ES_CENTER) i2=DT_CENTER;
     1255            else if(pChildInfo->GetStyle()&ES_RIGHT) i2=DT_RIGHT;
    12551256            else i2=DT_LEFT;
    12561257
    12571258            //文字色を設定
    1258             if(pChildInfo->style&WS_DISABLED)
     1259            if(pChildInfo->GetStyle()&WS_DISABLED)
    12591260                SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT));
    12601261            else
     
    12621263
    12631264            hOldFont=(HFONT)SelectObject(hdc,hFont);
    1264             DrawText(hdc,pChildInfo->caption,-1,&rect,i4|i2);
     1265            DrawText(hdc,pChildInfo->GetCaption().c_str(),-1,&rect,i4|i2);
    12651266            SelectObject(hdc,hOldFont);
    12661267        }
     
    12711272
    12721273            hOldFont=(HFONT)SelectObject(hdc,hFont);
    1273             GetTextExtentPoint32(hdc,pChildInfo->caption,lstrlen(pChildInfo->caption),&size2);
     1274            GetTextExtentPoint32(hdc,pChildInfo->GetCaption().c_str(),pChildInfo->GetCaption().size(),&size2);
    12741275
    12751276            //枠を描画
     
    12811282
    12821283            //ビットを考慮してBS_CENTERを最初に検討する
    1283             if((pChildInfo->style&BS_CENTER)==BS_CENTER){
     1284            if((pChildInfo->GetStyle()&BS_CENTER)==BS_CENTER){
    12841285                rect.left=pos.x+(size.cx/2)-(size2.cx/2)-3;
    12851286                rect.right=rect.left+size2.cx+4;
    12861287            }
    1287             else if(pChildInfo->style&BS_RIGHT){
     1288            else if(pChildInfo->GetStyle()&BS_RIGHT){
    12881289                rect.right=pos.x+size.cx-7;
    12891290                rect.left=rect.right-size2.cx-4;
     
    12961297            rect.bottom=pos.y+size2.cy;
    12971298
    1298             if(pWindowInfo->bgColor==COLOR_3DFACE) rgb=GetSysColor(COLOR_3DFACE);
    1299             else rgb=-pWindowInfo->bgColor;
     1299            if(pWindowInfo->GetBackgroundColor()==COLOR_3DFACE) rgb=GetSysColor(COLOR_3DFACE);
     1300            else rgb=-pWindowInfo->GetBackgroundColor();
    13001301            DrawRectangleInClient(WndNum,rect.left,rect.top,rect.right,rect.bottom,rgb,rgb,1);
    13011302
    1302             if(!((pChildInfo->style&BS_ICON)||(pChildInfo->style&BS_BITMAP))){
     1303            if(!((pChildInfo->GetStyle()&BS_ICON)||(pChildInfo->GetStyle()&BS_BITMAP))){
    13031304                rect.left+=MdiInfo[WndNum].MdiRadInfo->ClientPos.x;
    13041305                rect.top+=MdiInfo[WndNum].MdiRadInfo->ClientPos.y;
     
    13091310
    13101311                //テキストを描画
    1311                 if(pChildInfo->style&WS_DISABLED){
     1312                if(pChildInfo->GetStyle()&WS_DISABLED){
    13121313                    SetTextColor(hdc,RGB(255,255,255));
    13131314                    rc2.left=rect.left+1;
     
    13151316                    rc2.right=rect.right+1;
    13161317                    rc2.bottom=rect.bottom+1;
    1317                     DrawText(hdc,pChildInfo->caption,-1,&rc2,DT_SINGLELINE);
     1318                    DrawText(hdc,pChildInfo->GetCaption().c_str(),-1,&rc2,DT_SINGLELINE);
    13181319                    SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT));
    13191320                }
     
    13211322                    SetTextColor(hdc,GetSysColor(COLOR_BTNTEXT));
    13221323
    1323                 DrawText(hdc,pChildInfo->caption,-1,&rect,DT_SINGLELINE);
     1324                DrawText(hdc,pChildInfo->GetCaption().c_str(),-1,&rect,DT_SINGLELINE);
    13241325            }
    13251326            SelectObject(hdc,hOldFont);
     
    13291330            ////////////////////////////////////
    13301331            // 水平スクロールバー コントロール
    1331             DrawScrollBar(WndNum,pChildInfo->style,0,&pos,&size);
     1332            DrawScrollBar(WndNum,pChildInfo->GetStyle(),0,&pos,&size);
    13321333        }
    13331334
     
    13371338            HDC memdc;
    13381339
    1339             if((pChildInfo->style&0x0000000F)==SS_BLACKFRAME)
     1340            if((pChildInfo->GetStyle()&0x0000000F)==SS_BLACKFRAME)
    13401341                DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,RGB(0,0,0),0,0);
    1341             else if((pChildInfo->style&0x0000000F)==SS_GRAYFRAME)
     1342            else if((pChildInfo->GetStyle()&0x0000000F)==SS_GRAYFRAME)
    13421343                DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,GetSysColor(COLOR_3DSHADOW),0,0);
    1343             else if((pChildInfo->style&0x0000000F)==SS_WHITEFRAME)
     1344            else if((pChildInfo->GetStyle()&0x0000000F)==SS_WHITEFRAME)
    13441345                DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,RGB(255,255,255),0,0);
    1345             else if((pChildInfo->style&0x0000001F)==SS_ETCHEDFRAME){
     1346            else if((pChildInfo->GetStyle()&0x0000001F)==SS_ETCHEDFRAME){
    13461347                rect.left=pos.x+MdiInfo[WndNum].MdiRadInfo->ClientPos.x;
    13471348                rect.top=pos.y+MdiInfo[WndNum].MdiRadInfo->ClientPos.y;
     
    13501351                DrawEdge(hdc,&rect,EDGE_ETCHED,BF_RECT);
    13511352            }
    1352             else if((pChildInfo->style&0x0000000F)==SS_BLACKRECT)
     1353            else if((pChildInfo->GetStyle()&0x0000000F)==SS_BLACKRECT)
    13531354                DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,GetSysColor(COLOR_3DDKSHADOW),GetSysColor(COLOR_3DDKSHADOW),1);
    1354             else if((pChildInfo->style&0x0000000F)==SS_GRAYRECT)
     1355            else if((pChildInfo->GetStyle()&0x0000000F)==SS_GRAYRECT)
    13551356                DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,GetSysColor(COLOR_3DSHADOW),GetSysColor(COLOR_3DSHADOW),1);
    1356             else if((pChildInfo->style&0x0000000F)==SS_WHITERECT)
     1357            else if((pChildInfo->GetStyle()&0x0000000F)==SS_WHITERECT)
    13571358                DrawRectangleInClient(WndNum,pos.x,pos.y,pos.x+size.cx,pos.y+size.cy,RGB(255,255,255),RGB(255,255,255),1);
    1358             else if((pChildInfo->style&0x0000000F)==SS_ICON){
    1359                 if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_FILE)
    1360                     lstrcpy(temporary,pChildInfo->ImageCtrlInfo.path);
    1361                 else{
    1362                     for(i2=0;i2<projectInfo.resourceManager.iconResources.size();i2++)
     1359            else if((pChildInfo->GetStyle()&0x0000000F)==SS_ICON)
     1360            {
     1361                if(pChildInfo->image.IsFile())
     1362                {
     1363                    lstrcpy(temporary,pChildInfo->image.path.c_str());
     1364                }
     1365                else
     1366                {
     1367                    bool isMatch = false;
     1368                    BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources )
    13631369                    {
    1364                         if( projectInfo.resourceManager.iconResources[i2].idName == pChildInfo->ImageCtrlInfo.path )
     1370                        if( resourceItem.idName == pChildInfo->image.path )
    13651371                        {
     1372                            isMatch = true;
     1373                            lstrcpy(temporary,resourceItem.filepath.c_str());
    13661374                            break;
    13671375                        }
    13681376                    }
    1369                     if(i2==projectInfo.resourceManager.iconResources.size()) goto NonIconImage;
    1370 
    1371                     lstrcpy(temporary,projectInfo.resourceManager.iconResources[i2].filepath.c_str());
     1377                    if( !isMatch )
     1378                    {
     1379                        goto NonIconImage;
     1380                    }
    13721381                }
    13731382                lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() );
     
    13801389
    13811390                    //ExStyleによる縁を再描画
    1382                     DrawItemEdgeByExStyle(WndNum,pChildInfo->ExStyle,&pos,&size);
     1391                    DrawItemEdgeByExStyle(WndNum,pChildInfo->GetExStyle(),&pos,&size);
    13831392
    13841393                    DrawIcon(hdc,
     
    14011410                }
    14021411            }
    1403             else if((pChildInfo->style&0x0000000F)==SS_BITMAP){
     1412            else if((pChildInfo->GetStyle()&0x0000000F)==SS_BITMAP){
    14041413                BITMAP Bitmap;
    14051414
    1406                 if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_FILE)
    1407                     lstrcpy(temporary,pChildInfo->ImageCtrlInfo.path);
     1415                if(pChildInfo->image.IsFile())
     1416                {
     1417                    lstrcpy(temporary,pChildInfo->image.path.c_str());
     1418                }
    14081419                else{
    1409                     for(i2=0;i2<projectInfo.resourceManager.bitmapResources.size();i2++){
    1410                         if( projectInfo.resourceManager.bitmapResources[i2].idName == pChildInfo->ImageCtrlInfo.path )
     1420                    bool isMatch = false;
     1421                    BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.bitmapResources )
     1422                    {
     1423                        if( resourceItem.idName == pChildInfo->image.path )
    14111424                        {
     1425                            lstrcpy(temporary,resourceItem.filepath.c_str());
     1426                            isMatch = true;
    14121427                            break;
    14131428                        }
    14141429                    }
    1415                     if(i2==projectInfo.resourceManager.bitmapResources.size()) goto NonBitmapImage;
    1416 
    1417                     lstrcpy(temporary,projectInfo.resourceManager.bitmapResources[i2].filepath.c_str());
     1430                    if( !isMatch )
     1431                    {
     1432                        goto NonBitmapImage;
     1433                    }
    14181434                }
    14191435                lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() );
     
    14281444
    14291445                    //ExStyleによる縁を再描画
    1430                     DrawItemEdgeByExStyle(WndNum,pChildInfo->ExStyle,&pos,&size);
     1446                    DrawItemEdgeByExStyle(WndNum,pChildInfo->GetExStyle(),&pos,&size);
    14311447
    14321448                    memdc=CreateCompatibleDC(hdc);
     
    14611477
    14621478            //内部
    1463             if(pChildInfo->style&WS_DISABLED)
     1479            if(pChildInfo->GetStyle()&WS_DISABLED)
    14641480                rgb=GetSysColor(COLOR_3DFACE);
    14651481            else rgb=GetSysColor(COLOR_WINDOW);
     
    14691485                rgb,rgb,1);
    14701486
    1471             if(pChildInfo->style&LBS_DISABLENOSCROLL)
    1472                 DrawWindowScrollBar(WndNum,pChildInfo->style|WS_DISABLED,&pos,&size);
     1487            if(pChildInfo->GetStyle()&LBS_DISABLENOSCROLL)
     1488                DrawWindowScrollBar(WndNum,pChildInfo->GetStyle()|WS_DISABLED,&pos,&size);
    14731489        }
    14741490
     
    14781494
    14791495            //内部
    1480             if(pChildInfo->style&WS_DISABLED)
     1496            if(pChildInfo->GetStyle()&WS_DISABLED)
    14811497                rgb=GetSysColor(COLOR_3DFACE);
    14821498            else rgb=GetSysColor(COLOR_WINDOW);
     
    14861502                rgb,rgb,1);
    14871503
    1488             if((pChildInfo->style&LVS_REPORT)&&
    1489                 (!((pChildInfo->style&LVS_LIST)==LVS_LIST))){
     1504            if((pChildInfo->GetStyle()&LVS_REPORT)&&
     1505                (!((pChildInfo->GetStyle()&LVS_LIST)==LVS_LIST))){
    14901506                //レポート ビュー
    14911507                size.cy=16;
     
    15041520            size.cy-=2;
    15051521            rgb=GetSysColor(COLOR_ACTIVECAPTION);
    1506             if(pChildInfo->style&PBS_SMOOTH){
    1507                 if(pChildInfo->style&PBS_VERTICAL){
     1522            if(pChildInfo->GetStyle()&PBS_SMOOTH){
     1523                if(pChildInfo->GetStyle()&PBS_VERTICAL){
    15081524                    pos.y+=(long)((double)size.cy*0.3);
    15091525                    DrawRectangleInClient(WndNum,
     
    15201536            }
    15211537            else{
    1522                 if(pChildInfo->style&PBS_VERTICAL){
     1538                if(pChildInfo->GetStyle()&PBS_VERTICAL){
    15231539                    pos.y+=(long)((double)size.cy*0.3);
    15241540                    i3=(size.cx*2)/3;
     
    15481564            // RadioButton コントロール
    15491565
    1550             if(pChildInfo->style&BS_PUSHLIKE){
     1566            if(pChildInfo->GetStyle()&BS_PUSHLIKE){
    15511567                //ボタンの縁を描画
    15521568                DrawButtonEdge(WndNum,&pos,&size);
     
    15561572                size2.cx=12;
    15571573                size2.cy=12;
    1558                 if(pChildInfo->style&BS_LEFTTEXT)
     1574                if(pChildInfo->GetStyle()&BS_LEFTTEXT)
    15591575                    pos2.x=pos.x+size.cx-size2.cx;
    15601576                else pos2.x=pos.x+1;
    1561                 if((pChildInfo->style&BS_VCENTER)==BS_VCENTER||
    1562                     (pChildInfo->style&BS_VCENTER)==0)
     1577                if((pChildInfo->GetStyle()&BS_VCENTER)==BS_VCENTER||
     1578                    (pChildInfo->GetStyle()&BS_VCENTER)==0)
    15631579                    pos2.y=pos.y+(size.cy/2)-(size2.cy/2);
    1564                 else if(pChildInfo->style&BS_TOP)
     1580                else if(pChildInfo->GetStyle()&BS_TOP)
    15651581                    pos2.y=pos.y+1;
    1566                 else if(pChildInfo->style&BS_BOTTOM)
     1582                else if(pChildInfo->GetStyle()&BS_BOTTOM)
    15671583                    pos2.y=pos.y+size.cy-size2.cy-1;
    15681584
     
    15751591
    15761592                    if(rgb==RGB(255,255,0)){
    1577                         if(pWindowInfo->bgColor==COLOR_3DFACE) rgb=GetSysColor(COLOR_3DFACE);
    1578                         else rgb=-pWindowInfo->bgColor;
     1593                        if(pWindowInfo->GetBackgroundColor()==COLOR_3DFACE) rgb=GetSysColor(COLOR_3DFACE);
     1594                        else rgb=-pWindowInfo->GetBackgroundColor();
    15791595                    }
    15801596
     
    15891605                    //内部
    15901606                    else if(rgb==RGB(255,255,255)){
    1591                         if(pChildInfo->style&WS_DISABLED) rgb=GetSysColor(COLOR_3DFACE);
     1607                        if(pChildInfo->GetStyle()&WS_DISABLED) rgb=GetSysColor(COLOR_3DFACE);
    15921608                    }
    15931609
     
    16071623                GlobalFree(pByte2);
    16081624
    1609                 if(!(pChildInfo->style&BS_LEFTTEXT)) pos.x+=17;
     1625                if(!(pChildInfo->GetStyle()&BS_LEFTTEXT)) pos.x+=17;
    16101626                else pos.x++;
    16111627                size.cx-=17;
    16121628            }
    16131629
    1614             if(!(pChildInfo->style&(BS_ICON|BS_BITMAP))){
     1630            if(!(pChildInfo->GetStyle()&(BS_ICON|BS_BITMAP))){
    16151631                //キャプション テキスト
    16161632                rect.left=pos.x+1+MdiInfo[WndNum].MdiRadInfo->ClientPos.x;
     
    16191635                rect.bottom=pos.y+size.cy-2+MdiInfo[WndNum].MdiRadInfo->ClientPos.y;
    16201636
    1621                 if(pChildInfo->style&BS_MULTILINE) i4=0;
     1637                if(pChildInfo->GetStyle()&BS_MULTILINE) i4=0;
    16221638                else i4=DT_SINGLELINE;
    16231639
    16241640                //ビットを考慮してBS_CENTERを最初に比較する
    1625                 if((pChildInfo->style&BS_CENTER)==BS_CENTER) i2=DT_CENTER;
    1626                 else if(pChildInfo->style&BS_LEFT) i2=DT_LEFT;
    1627                 else if(pChildInfo->style&BS_RIGHT) i2=DT_RIGHT;
     1641                if((pChildInfo->GetStyle()&BS_CENTER)==BS_CENTER) i2=DT_CENTER;
     1642                else if(pChildInfo->GetStyle()&BS_LEFT) i2=DT_LEFT;
     1643                else if(pChildInfo->GetStyle()&BS_RIGHT) i2=DT_RIGHT;
    16281644                else i2=DT_LEFT;
    16291645
    16301646                //ビットを考慮してBS_VCENTERを最初に比較する
    1631                 if((pChildInfo->style&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER;
    1632                 else if(pChildInfo->style&BS_TOP) i3=DT_TOP;
    1633                 else if(pChildInfo->style&BS_BOTTOM) i3=DT_BOTTOM;
     1647                if((pChildInfo->GetStyle()&BS_VCENTER)==BS_VCENTER) i3=DT_VCENTER;
     1648                else if(pChildInfo->GetStyle()&BS_TOP) i3=DT_TOP;
     1649                else if(pChildInfo->GetStyle()&BS_BOTTOM) i3=DT_BOTTOM;
    16341650                else i3=DT_VCENTER;
    16351651
    16361652                hOldFont=(HFONT)SelectObject(hdc,hFont);
    1637                 if(pChildInfo->style&WS_DISABLED){
     1653                if(pChildInfo->GetStyle()&WS_DISABLED){
    16381654                    SetTextColor(hdc,RGB(255,255,255));
    16391655                    rc2.left=rect.left+1;
     
    16411657                    rc2.right=rect.right+1;
    16421658                    rc2.bottom=rect.bottom+1;
    1643                     DrawText(hdc,pChildInfo->caption,-1,&rc2,i4|i2|i3);
     1659                    DrawText(hdc,pChildInfo->GetCaption().c_str(),-1,&rc2,i4|i2|i3);
    16441660                    SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT));
    16451661                }
    16461662                else SetTextColor(hdc,GetSysColor(COLOR_BTNTEXT));
    16471663
    1648                 DrawText(hdc,pChildInfo->caption,-1,&rect,i4|i2|i3);
     1664                DrawText(hdc,pChildInfo->GetCaption().c_str(),-1,&rect,i4|i2|i3);
    16491665                SelectObject(hdc,hOldFont);
    16501666            }
     
    16621678
    16631679            //ビットを考慮してSS_LEFTを最後に検討する
    1664             if(pChildInfo->style&SS_CENTER) i2=DT_CENTER;
    1665             else if(pChildInfo->style&SS_RIGHT) i2=DT_RIGHT;
     1680            if(pChildInfo->GetStyle()&SS_CENTER) i2=DT_CENTER;
     1681            else if(pChildInfo->GetStyle()&SS_RIGHT) i2=DT_RIGHT;
    16661682            else i2=DT_LEFT;
    16671683
    16681684            hOldFont=(HFONT)SelectObject(hdc,hFont);
    1669             if(pChildInfo->style&WS_DISABLED){
     1685            if(pChildInfo->GetStyle()&WS_DISABLED){
    16701686                SetTextColor(hdc,RGB(255,255,255));
    16711687                rc2.left=rect.left+1;
     
    16731689                rc2.right=rect.right+1;
    16741690                rc2.bottom=rect.bottom+1;
    1675                 DrawText(hdc,pChildInfo->caption,-1,&rc2,i2);
     1691                DrawText(hdc,pChildInfo->GetCaption().c_str(),-1,&rc2,i2);
    16761692                SetTextColor(hdc,GetSysColor(COLOR_GRAYTEXT));
    16771693            }
     
    16801696
    16811697            //折り返すかどうか
    1682             if(!(pChildInfo->style&SS_LEFTNOWORDWRAP)){
     1698            if(!(pChildInfo->GetStyle()&SS_LEFTNOWORDWRAP)){
    16831699                i2|=DT_WORDBREAK;
    16841700            }
    16851701
    1686             DrawText(hdc,pChildInfo->caption,-1,&rect,i2);
     1702            DrawText(hdc,pChildInfo->GetCaption().c_str(),-1,&rect,i2);
    16871703            SelectObject(hdc,hOldFont);
    16881704        }
     
    16921708            // TrackBar コントロール
    16931709
    1694             if(pChildInfo->style&TBS_VERT){
     1710            if(pChildInfo->GetStyle()&TBS_VERT){
    16951711                pos.x+=2;
    16961712                size.cx-=2;
     
    17311747
    17321748            //内部
    1733             if(pChildInfo->style&WS_DISABLED)
     1749            if(pChildInfo->GetStyle()&WS_DISABLED)
    17341750                rgb=GetSysColor(COLOR_3DFACE);
    17351751            else rgb=GetSysColor(COLOR_WINDOW);
     
    17431759            ///////////////////////////////
    17441760            // アップ ダウン コントロール
    1745             if(pChildInfo->style&UDS_HORZ)
    1746                 DrawUpDownControl(WndNum,pChildInfo->style,0,&pos,&size);
    1747             else DrawUpDownControl(WndNum,pChildInfo->style,1,&pos,&size);
     1761            if(pChildInfo->GetStyle()&UDS_HORZ)
     1762                DrawUpDownControl(WndNum,pChildInfo->GetStyle(),0,&pos,&size);
     1763            else DrawUpDownControl(WndNum,pChildInfo->GetStyle(),1,&pos,&size);
    17481764        }
    17491765
     
    17511767            ////////////////////////////////////
    17521768            // 垂直スクロールバー コントロール
    1753             DrawScrollBar(WndNum,pChildInfo->style,1,&pos,&size);
     1769            DrawScrollBar(WndNum,pChildInfo->GetStyle(),1,&pos,&size);
    17541770        }
    17551771    }
    17561772    DeleteObject(hFont);
    17571773}
    1758 void DrawRadWindow(int WndNum,const WindowInfo *pWindowInfo){
     1774void DrawRadWindow(int WndNum,const ActiveBasic::PM::WindowInfo *pWindowInfo){
    17591775    extern MDIINFO MdiInfo[MAX_WNDNUM];
    17601776    HBRUSH hOldBrush;
  • trunk/ab5.0/abdev/abdev/MenuProc.cpp

    r618 r624  
    1111#endif
    1212
    13 int GetMenuInfoNum(char *name){
     13int GetMenuInfoNum(const char *name){
    1414    int i;
    1515    for(i=0;i<projectInfo.NumberOfMenu;i++){
  • trunk/ab5.0/abdev/abdev/MessageCallOperation.cpp

    r620 r624  
    2020    if(lstrcmp(EventName,"MenuClick")==0) return CT_MENU;
    2121
    22     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    23     BOOST_FOREACH( CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos )
     22    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     23    BOOST_FOREACH( ActiveBasic::PM::ChildWindowInfo *pChildInfo, pWindowInfo->childWindowInfos )
    2424    {
    25         if(lstrcmp(buffer,pChildInfo->IdName)==0)
     25        if( pChildInfo->GetName() == buffer )
    2626        {
    2727            return pChildInfo->Control;
     
    3636    char *buffer,**ppNames,temporary[MAX_PATH],temp2[MAX_PATH];
    3737
    38     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     38    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    3939
    4040    NameLen=pWindowInfo->GetName().size();
     
    135135    POINT pos;
    136136
    137     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     137    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    138138
    139139    hChild=OpenFileWithExtension( projectInfo.GetWorkDir().GetPath() + pWindowInfo->filepath );
     
    220220    char temporary[MAX_PATH];
    221221
    222     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     222    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    223223
    224224    MaxCount=ListView_GetItemCount(hList);
     
    298298                sprintf(EventName,"%s_%s_%s",
    299299                    pWindowInfo->GetName().c_str(),
    300                     pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->IdName,
     300                    pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetName().c_str(),
    301301                    temporary);
    302302                break;
     
    403403
    404404    WndNum=GetWndNum(GetWindow(hClient,GW_CHILD));
    405     WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     405    ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
    406406    i=0;
    407407    if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){
     
    441441            //メニュー イベント
    442442            SendDlgItemMessage(hDlg,IDC_MENU,BM_SETCHECK,BST_CHECKED,0);
    443             if(pWindowInfo->MenuID){
     443            if( pWindowInfo->HasMenu() )
     444            {
    444445                int MenuInfoNum;
    445                 MenuInfoNum=GetMenuInfoNum(pWindowInfo->MenuID);
     446                MenuInfoNum=GetMenuInfoNum(pWindowInfo->GetMenuIdName().c_str());
    446447                i=0;
    447448                i2=0;
     
    647648            {
    648649                WndNum=GetWndNum(GetWindow(hClient,GW_CHILD));
    649                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
    650                 NowMenuNum=GetMenuInfoNum(pWindowInfo->MenuID);
     650                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     651                NowMenuNum=GetMenuInfoNum(pWindowInfo->GetMenuIdName().c_str());
    651652            }
    652653            break;
  • trunk/ab5.0/abdev/abdev/ProjectControl.cpp

    r623 r624  
    191191                        }
    192192                    }
    193                     for(i=0;i<projectInfo.resourceManager.iconResources.size();i++){
    194                         if(projectInfo.resourceManager.iconResources[i].hTreeItem==hTreeItem){
     193                    BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources )
     194                    {
     195                        if( resourceItem.hTreeItem == hTreeItem )
     196                        {
    195197                            NewIconEditWindow(
    196                                 projectInfo.GetWorkDir().GetFullPath( projectInfo.resourceManager.iconResources[i].filepath ).c_str()
     198                                projectInfo.GetWorkDir().GetFullPath( resourceItem.filepath ).c_str()
    197199                            );
    198200                            break;
     
    202204                case IDM_MATERIALTREE_DELETE:
    203205                    hTreeItem=TreeView_GetSelection(hMaterialTreeView);
    204                     for(i=0;i<projectInfo.resourceManager.cursorResources.size();i++){
     206                    for(i=0;i<static_cast<int>(projectInfo.resourceManager.cursorResources.size());i++){
    205207                        if(projectInfo.resourceManager.cursorResources[i].hTreeItem==hTreeItem){
    206208
     
    213215                        }
    214216                    }
    215                     for(i=0;i<projectInfo.resourceManager.bitmapResources.size();i++){
     217                    for(i=0;i<static_cast<int>(projectInfo.resourceManager.bitmapResources.size());i++){
    216218                        if(projectInfo.resourceManager.bitmapResources[i].hTreeItem==hTreeItem){
    217219
     
    224226                        }
    225227                    }
    226                     for(i=0;i<projectInfo.resourceManager.iconResources.size();i++){
     228                    for(i=0;i<static_cast<int>(projectInfo.resourceManager.iconResources.size());i++){
    227229                        if(projectInfo.resourceManager.iconResources[i].hTreeItem==hTreeItem){
    228230
     
    261263                    extern char NewIdName[MAX_PATH];
    262264                    hTreeItem=TreeView_GetSelection(hMaterialTreeView);
    263                     for(i=0;i<projectInfo.resourceManager.cursorResources.size();i++){
     265                    for(i=0;i<static_cast<int>(projectInfo.resourceManager.cursorResources.size());i++){
    264266                        if(projectInfo.resourceManager.cursorResources[i].hTreeItem==hTreeItem){
    265267                            Project_Cursor_RenameID(i);
     
    267269                        }
    268270                    }
    269                     for(i=0;i<projectInfo.resourceManager.bitmapResources.size();i++){
     271                    for(i=0;i<static_cast<int>(projectInfo.resourceManager.bitmapResources.size());i++){
    270272                        if(projectInfo.resourceManager.bitmapResources[i].hTreeItem==hTreeItem){
    271273                            Project_Bitmap_RenameID(i);
     
    273275                        }
    274276                    }
    275                     for(i=0;i<projectInfo.resourceManager.iconResources.size();i++){
     277                    for(i=0;i<static_cast<int>(projectInfo.resourceManager.iconResources.size());i++){
    276278                        if(projectInfo.resourceManager.iconResources[i].hTreeItem==hTreeItem){
    277279                            Project_Icon_RenameID(i);
     
    314316                case IDM_MATERIALTREE_ICON_SETMAIN:
    315317                    hTreeItem=TreeView_GetSelection(hMaterialTreeView);
    316                     for(i=0;i<projectInfo.resourceManager.iconResources.size();i++){
     318                    for(i=0;i<static_cast<int>(projectInfo.resourceManager.iconResources.size());i++){
    317319                        if(projectInfo.resourceManager.iconResources[i].hTreeItem==hTreeItem){
    318320                            if(i==0) break;
     
    10521054        // ウィンドウ定義ファイル(*.wnd)を作成
    10531055        /////////////////////////////////////////
    1054         WindowInfos windowInfos;
    1055         windowInfos.push_back( new WindowInfo() );
     1056        ActiveBasic::PM::WindowInfos windowInfos;
     1057        windowInfos.push_back( new ActiveBasic::PM::WindowInfo() );
    10561058        windowInfos.back()->SetName( "MainWnd" );
    10571059        windowInfos.back()->SetHandleName( "hMainWnd" );
     
    10601062        windowInfos.back()->size.cx=480;
    10611063        windowInfos.back()->size.cy=360;
    1062         windowInfos.back()->caption=NewProjectInfo.name;
     1064        windowInfos.back()->SetCaption( NewProjectInfo.name );
    10631065        if(NewProjectInfo.dwTypeID==IDC_EXE_WINDOWBASE)
    1064             windowInfos.back()->style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX|WS_VISIBLE;
     1066        {
     1067            windowInfos.back()->SetStyle( WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX|WS_VISIBLE );
     1068        }
    10651069        else if(NewProjectInfo.dwTypeID==IDC_EXE_DIRECTX)
    1066             windowInfos.back()->style=WS_OVERLAPPED|WS_THICKFRAME|WS_SYSMENU;
    1067         windowInfos.back()->ExStyle=0;
    1068         windowInfos.back()->MenuID=0;
    1069         windowInfos.back()->id=0;
    1070         windowInfos.back()->bgColor=COLOR_3DFACE;
     1070        {
     1071            windowInfos.back()->SetStyle( WS_OVERLAPPED|WS_THICKFRAME|WS_SYSMENU );
     1072        }
     1073        windowInfos.back()->SetExStyle( 0 );
     1074        windowInfos.back()->SetMenuIdName( "" );
     1075        windowInfos.back()->SetBackgroundColor( COLOR_3DFACE );
    10711076        GetDefaultWindowFont(&windowInfos.back()->LogFont);
    1072         windowInfos.back()->IconResName=0;
    1073         windowInfos.back()->ClassName="NORMAL";
     1077        windowInfos.back()->SetIconResourceName( "" );
     1078        windowInfos.back()->SetClassName( "NORMAL" );
    10741079        windowInfos.back()->CallBackName="MainWndProc";
    10751080        windowInfos.back()->type=WNDTYPE_DEFAULT;
     
    11421147    tv.hParent=TreeView_InsertItem(hMaterialTreeView,&tv);
    11431148    hCursorTreeItemForProjectView = tv.hParent;
    1144     for(i=0;i<projectInfo.resourceManager.cursorResources.size();i++){
     1149    BOOST_FOREACH( ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.cursorResources )
     1150    {
    11451151        tv.item.iImage=6;
    11461152        tv.item.iSelectedImage=6;
    1147         lstrcpy( temporary, projectInfo.resourceManager.cursorResources[i].idName.c_str() );
     1153        lstrcpy( temporary, resourceItem.idName.c_str() );
    11481154        tv.item.pszText=temporary;
    1149         projectInfo.resourceManager.cursorResources[i].hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv);
     1155        resourceItem.hTreeItem = TreeView_InsertItem(hMaterialTreeView,&tv);
    11501156    }
    11511157
     
    11581164    tv.hParent=TreeView_InsertItem(hMaterialTreeView,&tv);
    11591165    hBitmapTreeItemForProjectView = tv.hParent;
    1160     for(i=0;i<projectInfo.resourceManager.bitmapResources.size();i++){
     1166    BOOST_FOREACH( ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.bitmapResources )
     1167    {
    11611168        tv.item.iImage=5;
    11621169        tv.item.iSelectedImage=5;
    1163         lstrcpy( temporary, projectInfo.resourceManager.bitmapResources[i].idName.c_str() );
     1170        lstrcpy( temporary, resourceItem.idName.c_str() );
    11641171        tv.item.pszText=temporary;
    1165         projectInfo.resourceManager.bitmapResources[i].hTreeItem=TreeView_InsertItem(hMaterialTreeView,&tv);
     1172        resourceItem.hTreeItem = TreeView_InsertItem(hMaterialTreeView,&tv);
    11661173    }
    11671174
     
    11741181    tv.hParent=TreeView_InsertItem(hMaterialTreeView,&tv);
    11751182    hIconTreeItemForProjectView = tv.hParent;
    1176     for(i=0;i<projectInfo.resourceManager.iconResources.size();i++){
     1183    for(i=0;i<static_cast<int>(projectInfo.resourceManager.iconResources.size());i++){
    11771184        tv.item.iImage=4;
    11781185        tv.item.iSelectedImage=4;
     
    12091216    tv.hParent=TreeView_InsertItem(hMaterialTreeView,&tv);
    12101217    projectInfo.hWindowTreeItem=tv.hParent;
    1211     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1218    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    12121219    {
    12131220        tv.item.iImage=2;
     
    13561363                            }
    13571364                        }
    1358                         else if(lstrcmpi(temporary,"icon")==0){
    1359                             for(i3=0;i3<projectInfo.resourceManager.iconResources.size();i3++){
    1360                                 if(lstrcmpi(projectInfo.resourceManager.iconResources[i3].filepath.c_str(),temp2)==0){
     1365                        else if(lstrcmpi(temporary,"icon")==0)
     1366                        {
     1367                            BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources )
     1368                            {
     1369                                if(lstrcmpi(resourceItem.filepath.c_str(),temp2)==0){
    13611370                                    NewIconEditWindow( projectInfo.GetWorkDir().GetFullPath( temp2 ).c_str() );
    13621371                                    break;
     
    14781487                        }
    14791488                        else if(lstrcmpi(temporary,"icon")==0){
    1480                             for(i3=0;i3<projectInfo.resourceManager.iconResources.size();i3++){
    1481                                 if(lstrcmpi(projectInfo.resourceManager.iconResources[i3].filepath.c_str(),temp2)==0){
     1489                            BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources )
     1490                            {
     1491                                if(lstrcmpi(resourceItem.filepath.c_str(),temp2)==0){
    14821492                                    NewIconEditWindow( projectInfo.GetWorkDir().GetFullPath( temp2 ).c_str() );
    14831493                                    break;
     
    15971607        else if(MdiInfo[WndNum].DocType==WNDTYPE_ICONEDIT){
    15981608            if(MdiInfo[WndNum].MdiIconEditInfo->bModify){
    1599                 for(i=0;i<projectInfo.resourceManager.iconResources.size();i++){
    1600                     lstrcpy(temporary,projectInfo.resourceManager.iconResources[i].filepath.c_str());
     1609                BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources )
     1610                {
     1611                    lstrcpy(temporary,resourceItem.filepath.c_str());
    16011612                    lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() );
    16021613                    if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0) sw=1;
     
    16711682        }
    16721683        else if(MdiInfo[WndNum].DocType==WNDTYPE_RAD){
    1673             BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1684            BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    16741685            {
    16751686                if(lstrcmpi(MdiInfo[WndNum].path,pWindowInfo->GetName().c_str())==0){
     
    16901701        }
    16911702        else if(MdiInfo[WndNum].DocType==WNDTYPE_ICONEDIT){
    1692             for(i=0;i<projectInfo.resourceManager.iconResources.size();i++){
    1693                 lstrcpy(temporary,projectInfo.resourceManager.iconResources[i].filepath.c_str());
     1703            BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources )
     1704            {
     1705                lstrcpy(temporary,resourceItem.filepath.c_str());
    16941706                lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() );
    16951707                if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){
    1696                     sprintf(buffer+i2,"icon,%s\r\n",projectInfo.resourceManager.iconResources[i].filepath.c_str());
     1708                    sprintf(buffer+i2,"icon,%s\r\n",resourceItem.filepath.c_str());
    16971709                    i2+=lstrlen(buffer+i2);
    16981710                    break;
  • trunk/ab5.0/abdev/abdev/RadProc.cpp

    r618 r624  
    44#include "common.h"
    55
    6 void NewRadWindow( const WindowInfo &windowInfo )
     6void NewRadWindow( const ActiveBasic::PM::WindowInfo &windowInfo )
    77{
    88    extern HINSTANCE hInst,hResInst;
     
    153153}
    154154
    155 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){
     155int InsertDlgItem(int WndNum,int WndInfoNum,int ItemNum,POINT *pPos,SIZE *pSize,const char *IdName,const char *caption,DWORD style_or_WndNum,DWORD ExStyle,int Control,ActiveBasic::PM::ImageReferenceType::EnumType ImageType,const char *ImagePath,DWORD dwInsertType){
    156156    //dwInsertType
    157157    //0 … 元に戻す、やり直し
     
    164164    char temporary[MAX_PATH];
    165165
    166     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    167 
    168     CHILDINFO *pChildInfo = new CHILDINFO();
     166    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     167
     168    ActiveBasic::PM::ChildWindowInfo *pChildInfo = new ActiveBasic::PM::ChildWindowInfo();
    169169
    170170    if(ItemNum==-1)
     
    175175    else
    176176    {
    177         std::vector<CHILDINFO *>::iterator it = pWindowInfo->childWindowInfos.begin();
     177        ActiveBasic::PM::ChildWindowInfos::iterator it = pWindowInfo->childWindowInfos.begin();
    178178        for( int i=0; i<ItemNum; i++ )
    179179        {
     
    187187    //ID
    188188    if(ItemNum==-1){
    189         for(i=lstrlen(IdName)-1;i>=0;i--){
    190             if(!('0'<=IdName[i]&&IdName[i]<='9')) break;
     189        char temp2[1024];
     190        lstrcpy( temp2, IdName );
     191        for(i=lstrlen(temp2)-1;i>=0;i--){
     192            if(!('0'<=temp2[i]&&temp2[i]<='9')) break;
    191193        }
    192194        i++;
    193195
    194         if(IdName[i]!='\0'){
    195             i2=atoi(IdName+i)+1;
     196        if(temp2[i]!='\0'){
     197            i2=atoi(temp2+i)+1;
    196198            if(dwInsertType==2) i2--;
    197             IdName[i]=0;
     199            temp2[i]=0;
    198200        }
    199201        else{
     
    202204        }
    203205
    204         if(i2==0) lstrcpy(temporary,IdName);
    205         else sprintf(temporary,"%s%d",IdName,i2);
     206        if(i2==0) lstrcpy(temporary,temp2);
     207        else sprintf(temporary,"%s%d",temp2,i2);
    206208SearchStart:
    207         for(i=0;i<pWindowInfo->childWindowInfos.size();i++){
    208             if(i!=NewItemNum){
    209                 if(lstrcmp(pWindowInfo->childWindowInfos[i]->IdName,temporary)==0){
     209        for( i=0; i<static_cast<int>(pWindowInfo->childWindowInfos.size()); i++ )
     210        {
     211            if( i != NewItemNum )
     212            {
     213                if( pWindowInfo->childWindowInfos[i]->GetName() == temporary )
     214                {
    210215                    i2++;
    211                     sprintf(temporary,"%s%d",IdName,i2);
     216                    sprintf(temporary,"%s%d",temp2,i2);
    212217                    goto SearchStart;
    213218                }
     
    216221    }
    217222    else lstrcpy(temporary,IdName);
    218     pChildInfo->IdName=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
    219     lstrcpy(pChildInfo->IdName,temporary);
     223    pChildInfo->SetName( temporary );
    220224
    221225    //位置
     
    235239    }
    236240    else lstrcpy(temporary,caption);
    237     pChildInfo->caption=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
    238     lstrcpy(pChildInfo->caption,temporary);
     241    pChildInfo->SetCaption( temporary );
    239242
    240243    //スタイル
    241     pChildInfo->style=style_or_WndNum;
     244    pChildInfo->SetStyle( style_or_WndNum );
    242245
    243246    //拡張スタイル
    244     pChildInfo->ExStyle=ExStyle;
     247    pChildInfo->SetExStyle( ExStyle );
    245248
    246249    //クラス名
     
    249252    if(Control==CT_IMAGEBOX){
    250253        //イメージ ボックスの場合
    251         pChildInfo->ImageCtrlInfo.type=ImageType;
     254        pChildInfo->image.type = ImageType;
    252255        if(!ImagePath)
    253             pChildInfo->ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,1);
     256        {
     257            pChildInfo->image.path = "";
     258        }
    254259        else{
    255             pChildInfo->ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,HEAP_ZERO_MEMORY,lstrlen(ImagePath)+1);
    256             lstrcpy(pChildInfo->ImageCtrlInfo.path,ImagePath);
     260            pChildInfo->image.path = ImagePath;
    257261        }
    258262    }
     
    269273    extern MDIINFO MdiInfo[MAX_WNDNUM];
    270274
    271     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     275    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    272276
    273277    //変更情報
     
    276280
    277281    //子ウィンドウのメモリを解放
    278     HeapDefaultFree(pWindowInfo->childWindowInfos[ItemNum]->IdName);
    279     HeapDefaultFree(pWindowInfo->childWindowInfos[ItemNum]->caption);
    280     if(pWindowInfo->childWindowInfos[ItemNum]->Control==CT_IMAGEBOX){
    281         //イメージ ボックスの場合
    282         HeapDefaultFree(pWindowInfo->childWindowInfos[ItemNum]->ImageCtrlInfo.path);
    283     }
    284282    delete pWindowInfo->childWindowInfos[ItemNum];
    285283
    286     std::vector<CHILDINFO *>::iterator it = pWindowInfo->childWindowInfos.begin();
     284    ActiveBasic::PM::ChildWindowInfos::iterator it = pWindowInfo->childWindowInfos.begin();
    287285    for( int i=0; i<ItemNum; i++ )
    288286    {
     
    346344    RECT rect;
    347345
    348     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     346    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    349347
    350348    hdc=GetDC(hwnd);
     
    352350    sw=0;
    353351    if(pobj_nv->bLineAdjust&&bLA){
    354         for(i=0;i<pWindowInfo->childWindowInfos.size();i++){
    355             const CHILDINFO *pChildInfo = pWindowInfo->childWindowInfos[i];
     352        for( i=0; i<static_cast<int>(pWindowInfo->childWindowInfos.size()); i++ )
     353        {
     354            const ActiveBasic::PM::ChildWindowInfo *pChildInfo = pWindowInfo->childWindowInfos[i];
    356355            if(i==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]) continue;
    357356            if(pChildInfo->Control !=
     
    449448    extern MDIINFO MdiInfo[MAX_WNDNUM];
    450449
    451     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     450    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    452451
    453452    if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[num]==SELECT_WINDOW){
     
    546545    SCROLLINFO ScrollInfo;
    547546
    548     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     547    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    549548
    550549    DestroyWindow(MdiInfo[WndNum].MdiRadInfo->hProp_Dlg);
     
    607606    int i;
    608607
    609     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     608    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    610609
    611610    for(i=pWindowInfo->childWindowInfos.size()-1;i>=0;i--){
    612611        if(pWindowInfo->childWindowInfos[i]->Control==CT_COMBOBOX&&
    613             (pWindowInfo->childWindowInfos[i]->style&0x000F)!=CBS_SIMPLE){
     612            (pWindowInfo->childWindowInfos[i]->GetStyle()&0x000F)!=CBS_SIMPLE){
    614613            //コンボ ボックスの場合は表示部分をターゲットに選択する(高さ20pixel)
    615614            if(x>=MdiInfo[WndNum].MdiRadInfo->ClientPos.x+pWindowInfo->childWindowInfos[i]->pos.x&&
     
    676675    RECT rect;
    677676
    678     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     677    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    679678
    680679    for(i=1;i<MAX_RAD_SELITEM;i++) MdiInfo[WndNum].MdiRadInfo->SelectingItem[i]=-1;
     
    701700    RECT rect;
    702701
    703     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     702    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    704703
    705704    if(MdiInfo[WndNum].MdiRadInfo->SelectingItem[1]!=-1){
     
    762761    SIZE NeedSize;
    763762
    764     WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     763    ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
    765764
    766765    //必要な幅、高さを共に100ピクセル余裕を持たせる
     
    817816                i=GetWndNum(GetParent(hwnd));
    818817                i2 = GetWndInfoNum(MdiInfo[i].path);
    819                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     818                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    820819
    821820                if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){
     
    897896                i=GetWndNum(hParent);
    898897                i2 = GetWndInfoNum(MdiInfo[i].path);
    899                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     898                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    900899
    901900                if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){
     
    966965                        size.cx=rect.right-rect.left;
    967966                        size.cy=rect.bottom-rect.top;
    968                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"CommandButton","Button",WS_CHILD|WS_VISIBLE,0,CT_BUTTON,0,0,1);
     967                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     968                            i,
     969                            i2,
     970                            -1,
     971                            &pos,
     972                            &size,
     973                            "CommandButton",
     974                            "Button",
     975                            WS_CHILD|WS_VISIBLE,0,CT_BUTTON,
     976                            ActiveBasic::PM::ImageReferenceType::File,
     977                            0,
     978                            1
     979                        );
    969980                    }
    970981                    if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_CHECKBOX){
     
    985996                        size.cx=rect.right-rect.left;
    986997                        size.cy=rect.bottom-rect.top;
    987                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"CheckBox","Check",WS_CHILD|WS_VISIBLE|BS_AUTOCHECKBOX,0,CT_CHECKBOX,0,0,1);
     998                        MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(
     999                            i,
     1000                            i2,
     1001                            -1,
     1002                            &pos,
     1003                            &size,
     1004                            "CheckBox",
     1005                            "Check",
     1006                            WS_CHILD|WS_VISIBLE|BS_AUTOCHECKBOX,
     1007                            0,
     1008                            CT_CHECKBOX,
     1009                            ActiveBasic::PM::ImageReferenceType::File,
     1010                            0,
     1011                            1
     1012                        );
    9881013                    }
    9891014                    if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_COMBOBOX){
     
    10041029                        size.cx=rect.right-rect.left;
    10051030                        size.cy=rect.bottom-rect.top;
    1006                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"ComboBox","",WS_CHILD|WS_VISIBLE|CBS_DROPDOWN|CBS_SORT|WS_VSCROLL,0,CT_COMBOBOX,0,0,1);
     1031                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1032                            i,
     1033                            i2,
     1034                            -1,
     1035                            &pos,
     1036                            &size,
     1037                            "ComboBox",
     1038                            "",
     1039                            WS_CHILD|WS_VISIBLE|CBS_DROPDOWN|CBS_SORT|WS_VSCROLL,
     1040                            0,
     1041                            CT_COMBOBOX,
     1042                            ActiveBasic::PM::ImageReferenceType::File,
     1043                            0,
     1044                            1
     1045                        );
    10071046                    }
    10081047                    else if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_EDIT){
     
    10231062                        size.cx=rect.right-rect.left;
    10241063                        size.cy=rect.bottom-rect.top;
    1025                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"EditBox","",WS_CHILD|WS_VISIBLE,WS_EX_CLIENTEDGE,CT_EDIT,0,0,1);
     1064                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1065                            i,
     1066                            i2,
     1067                            -1,
     1068                            &pos,
     1069                            &size,
     1070                            "EditBox",
     1071                            "",
     1072                            WS_CHILD|WS_VISIBLE,WS_EX_CLIENTEDGE,
     1073                            CT_EDIT,
     1074                            ActiveBasic::PM::ImageReferenceType::File,
     1075                            0,
     1076                            1
     1077                        );
    10261078                    }
    10271079                    else if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_GROUPBOX){
     
    10421094                        size.cx=rect.right-rect.left;
    10431095                        size.cy=rect.bottom-rect.top;
    1044                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"GroupBox","Group",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,0,CT_GROUPBOX,0,0,1);
     1096                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1097                            i,
     1098                            i2,
     1099                            -1,
     1100                            &pos,
     1101                            &size,
     1102                            "GroupBox",
     1103                            "Group",
     1104                            WS_CHILD|WS_VISIBLE|BS_GROUPBOX,
     1105                            0,
     1106                            CT_GROUPBOX,
     1107                            ActiveBasic::PM::ImageReferenceType::File,
     1108                            0,
     1109                            1
     1110                        );
    10451111                    }
    10461112                    else if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_HSCROLLBAR){
     
    10611127                        size.cx=rect.right-rect.left;
    10621128                        size.cy=rect.bottom-rect.top;
    1063                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"HScrollBar","",WS_CHILD|WS_VISIBLE|SBS_HORZ,0,CT_HSCROLLBAR,0,0,1);
     1129                        MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(
     1130                            i,
     1131                            i2,
     1132                            -1,
     1133                            &pos,
     1134                            &size,
     1135                            "HScrollBar",
     1136                            "",
     1137                            WS_CHILD|WS_VISIBLE|SBS_HORZ,
     1138                            0,
     1139                            CT_HSCROLLBAR,
     1140                            ActiveBasic::PM::ImageReferenceType::File,
     1141                            0,
     1142                            1
     1143                        );
    10641144                    }
    10651145                    else if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_IMAGEBOX){
     
    10801160                        size.cx=rect.right-rect.left;
    10811161                        size.cy=rect.bottom-rect.top;
    1082                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"ImageBox","",WS_CHILD|WS_VISIBLE|SS_BLACKFRAME,0,CT_IMAGEBOX,IMGTYPE_FILE,0,1);
     1162                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1163                            i,
     1164                            i2,
     1165                            -1,
     1166                            &pos,
     1167                            &size,
     1168                            "ImageBox",
     1169                            "",
     1170                            WS_CHILD|WS_VISIBLE|SS_BLACKFRAME,0,CT_IMAGEBOX,
     1171                            ActiveBasic::PM::ImageReferenceType::File,
     1172                            0,
     1173                            1
     1174                        );
    10831175                    }
    10841176                    else if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_LISTBOX){
     
    10991191                        size.cx=rect.right-rect.left;
    11001192                        size.cy=rect.bottom-rect.top;
    1101                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"ListBox","",WS_CHILD|WS_VISIBLE|WS_VSCROLL|LBS_SORT|LBS_NOTIFY,WS_EX_CLIENTEDGE,CT_LISTBOX,0,0,1);
     1193                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1194                            i,
     1195                            i2,
     1196                            -1,
     1197                            &pos,
     1198                            &size,
     1199                            "ListBox",
     1200                            "",
     1201                            WS_CHILD|WS_VISIBLE|WS_VSCROLL|LBS_SORT|LBS_NOTIFY,WS_EX_CLIENTEDGE,
     1202                            CT_LISTBOX,
     1203                            ActiveBasic::PM::ImageReferenceType::File,
     1204                            0,
     1205                            1
     1206                        );
    11021207                    }
    11031208                    else if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_LISTVIEW){
     
    11181223                        size.cx=rect.right-rect.left;
    11191224                        size.cy=rect.bottom-rect.top;
    1120                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"ListView","",WS_CHILD|WS_VISIBLE,WS_EX_CLIENTEDGE,CT_LISTVIEW,0,0,1);
     1225                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1226                            i,
     1227                            i2,
     1228                            -1,
     1229                            &pos,
     1230                            &size,
     1231                            "ListView",
     1232                            "",
     1233                            WS_CHILD|WS_VISIBLE,WS_EX_CLIENTEDGE,
     1234                            CT_LISTVIEW,
     1235                            ActiveBasic::PM::ImageReferenceType::File,
     1236                            0,
     1237                            1
     1238                        );
    11211239                    }
    11221240                    if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_PROGRESSBAR){
     
    11371255                        size.cx=rect.right-rect.left;
    11381256                        size.cy=rect.bottom-rect.top;
    1139                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"ProgressBar","",WS_CHILD|WS_VISIBLE,WS_EX_STATICEDGE,CT_PROGRESSBAR,0,0,1);
     1257                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1258                            i,
     1259                            i2,
     1260                            -1,
     1261                            &pos,
     1262                            &size,
     1263                            "ProgressBar",
     1264                            "",
     1265                            WS_CHILD|WS_VISIBLE,WS_EX_STATICEDGE,
     1266                            CT_PROGRESSBAR,
     1267                            ActiveBasic::PM::ImageReferenceType::File,
     1268                            0,
     1269                            1
     1270                        );
    11401271                    }
    11411272                    if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_RADIOBUTTON){
     
    11561287                        size.cx=rect.right-rect.left;
    11571288                        size.cy=rect.bottom-rect.top;
    1158                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"RadioButton","radio",WS_CHILD|WS_VISIBLE|BS_AUTORADIOBUTTON,0,CT_RADIOBUTTON,0,0,1);
     1289                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1290                            i,
     1291                            i2,
     1292                            -1,
     1293                            &pos,
     1294                            &size,
     1295                            "RadioButton",
     1296                            "radio",
     1297                            WS_CHILD|WS_VISIBLE|BS_AUTORADIOBUTTON,
     1298                            0,
     1299                            CT_RADIOBUTTON,
     1300                            ActiveBasic::PM::ImageReferenceType::File,
     1301                            0,
     1302                            1
     1303                        );
    11591304                    }
    11601305                    else if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_STATIC){
     
    11751320                        size.cx=rect.right-rect.left;
    11761321                        size.cy=rect.bottom-rect.top;
    1177                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"Static","Text",WS_CHILD|WS_VISIBLE,0,CT_STATIC,0,0,1);
     1322                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1323                            i,
     1324                            i2,
     1325                            -1,
     1326                            &pos,
     1327                            &size,
     1328                            "Static",
     1329                            "Text",
     1330                            WS_CHILD|WS_VISIBLE,
     1331                            0,
     1332                            CT_STATIC,
     1333                            ActiveBasic::PM::ImageReferenceType::File,
     1334                            0,
     1335                            1
     1336                        );
    11781337                    }
    11791338                    else if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_TRACKBAR){
     
    11941353                        size.cx=rect.right-rect.left;
    11951354                        size.cy=rect.bottom-rect.top;
    1196                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"TrackBar","",WS_CHILD|WS_VISIBLE|TBS_BOTH|TBS_NOTICKS,0,CT_TRACKBAR,0,0,1);
     1355                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1356                            i,
     1357                            i2,
     1358                            -1,
     1359                            &pos,
     1360                            &size,
     1361                            "TrackBar",
     1362                            "",
     1363                            WS_CHILD|WS_VISIBLE|TBS_BOTH|TBS_NOTICKS,
     1364                            0,
     1365                            CT_TRACKBAR,
     1366                            ActiveBasic::PM::ImageReferenceType::File,
     1367                            0,
     1368                            1
     1369                        );
    11971370                    }
    11981371                    else if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_TREEVIEW){
     
    12131386                        size.cx=rect.right-rect.left;
    12141387                        size.cy=rect.bottom-rect.top;
    1215                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"TreeView","",WS_CHILD|WS_VISIBLE,WS_EX_CLIENTEDGE,CT_TREEVIEW,0,0,1);
     1388                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1389                            i,
     1390                            i2,
     1391                            -1,
     1392                            &pos,
     1393                            &size,
     1394                            "TreeView",
     1395                            "",
     1396                            WS_CHILD|WS_VISIBLE,
     1397                            WS_EX_CLIENTEDGE,
     1398                            CT_TREEVIEW,
     1399                            ActiveBasic::PM::ImageReferenceType::File,
     1400                            0,
     1401                            1
     1402                        );
    12161403                    }
    12171404                    else if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_UPDOWN){
     
    12321419                        size.cx=rect.right-rect.left;
    12331420                        size.cy=rect.bottom-rect.top;
    1234                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"UpDown","",WS_CHILD|WS_VISIBLE,0,CT_UPDOWN,0,0,1);
     1421                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1422                            i,
     1423                            i2,
     1424                            -1,
     1425                            &pos,
     1426                            &size,
     1427                            "UpDown",
     1428                            "",
     1429                            WS_CHILD|WS_VISIBLE,
     1430                            0,
     1431                            CT_UPDOWN,
     1432                            ActiveBasic::PM::ImageReferenceType::File,
     1433                            0,
     1434                            1
     1435                        );
    12351436                    }
    12361437                    else if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_VSCROLLBAR){
     
    12511452                        size.cx=rect.right-rect.left;
    12521453                        size.cy=rect.bottom-rect.top;
    1253                         MdiInfo[i].MdiRadInfo->SelectingItem[0]=InsertDlgItem(i,i2,-1,&pos,&size,"VScrollBar","",WS_CHILD|WS_VISIBLE|SBS_VERT,0,CT_VSCROLLBAR,0,0,1);
     1454                        MdiInfo[i].MdiRadInfo->SelectingItem[0] = InsertDlgItem(
     1455                            i,
     1456                            i2,
     1457                            -1,
     1458                            &pos,
     1459                            &size,
     1460                            "VScrollBar",
     1461                            "",
     1462                            WS_CHILD|WS_VISIBLE|SBS_VERT,
     1463                            0,
     1464                            CT_VSCROLLBAR,
     1465                            ActiveBasic::PM::ImageReferenceType::File,
     1466                            0,
     1467                            1
     1468                        );
    12541469                    }
    12551470                    SendMessage(GetWindow(MdiInfo[i].MdiRadInfo->hTools,GW_CHILD),WM_COMMAND,IDC_TOOL_MOUSE,0);
     
    12751490                i=GetWndNum(hParent);
    12761491                i2 = GetWndInfoNum(MdiInfo[i].path);
    1277                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1492                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    12781493
    12791494                if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){
     
    14401655                i=GetWndNum(hParent);
    14411656                i2=GetWndInfoNum(MdiInfo[i].path);
    1442                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1657                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    14431658                if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){
    14441659                    if(MdiInfo[i].MdiRadInfo->SelectingItem[0]!=SELECT_WINDOW){
     
    14521667                            sprintf(temporary,"%s_%s_Click",
    14531668                                pWindowInfo->GetName().c_str(),
    1454                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName
     1669                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str()
    14551670                            );
    14561671                        }
     
    14591674                            sprintf(temporary,"%s_%s_EditChange",
    14601675                                pWindowInfo->GetName().c_str(),
    1461                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
     1676                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    14621677                        }
    14631678                        else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_EDIT)
     
    14651680                            sprintf(temporary,"%s_%s_Change",
    14661681                                pWindowInfo->GetName().c_str(),
    1467                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
     1682                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    14681683                        }
    14691684                        else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_LISTBOX)
     
    14711686                            sprintf(temporary,"%s_%s_SelChange",
    14721687                                pWindowInfo->GetName().c_str(),
    1473                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
     1688                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    14741689                        }
    14751690                        else temporary[0]=0;
     
    14831698                hParent=GetParent(hwnd);
    14841699                i=GetWndNum(hParent);
    1485                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1700                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    14861701                if(MdiInfo[i].MdiRadInfo->ButtonSelect==IDC_TOOL_MOUSE){
    14871702                    if(MdiInfo[i].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){
  • trunk/ab5.0/abdev/abdev/RadSupport.cpp

    r623 r624  
    4040    HFONT *lphFont;
    4141    HANDLE *lphImage;
    42     int i2,i3;
     42    int i2;
    4343    char temporary[MAX_PATH];
    4444
     
    5050    }
    5151
    52     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    53 
    54     if(pWindowInfo->style&WS_CHILD){
     52    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     53
     54    if(pWindowInfo->GetStyle()&WS_CHILD){
    5555        //"チャイルドウィンドウをテスト表示することはできません"
    5656        MessageBox(hOwner,STRING_RAD_ERROR_CANT_CHILDTEST,STRING_ERROR,MB_OK|MB_ICONEXCLAMATION);
     
    6464
    6565    //テスト用のメインウィンドウを作成
    66     hWnd=CreateWindowEx(pWindowInfo->ExStyle,
     66    hWnd=CreateWindowEx(pWindowInfo->GetExStyle(),
    6767        "TestWindow",
    6868        pWindowInfo->GetName().c_str(),
    69         pWindowInfo->style|WS_VISIBLE,
     69        pWindowInfo->GetStyle()|WS_VISIBLE,
    7070        CW_USEDEFAULT,CW_USEDEFAULT,
    7171        pWindowInfo->size.cx,pWindowInfo->size.cy,
     
    7373
    7474    //子ウィンドウ作成
    75     for(i2=0;i2<pWindowInfo->childWindowInfos.size();i2++){
     75    for( i2=0; i2<static_cast<int>(pWindowInfo->childWindowInfos.size()); i2++ )
     76    {
    7677        if(pWindowInfo->childWindowInfos[i2]->Control==CT_UPDOWN){
    7778            CreateUpDownControl(
    78                 pWindowInfo->childWindowInfos[i2]->style,
     79                pWindowInfo->childWindowInfos[i2]->GetStyle(),
    7980                pWindowInfo->childWindowInfos[i2]->pos.x,pWindowInfo->childWindowInfos[i2]->pos.y,
    8081                pWindowInfo->childWindowInfos[i2]->size.cx,pWindowInfo->childWindowInfos[i2]->size.cy,
     
    8586            GetItemClassName(temporary,pWindowInfo->childWindowInfos[i2]->Control);
    8687            hChild=CreateWindowEx(
    87                 pWindowInfo->childWindowInfos[i2]->ExStyle,
     88                pWindowInfo->childWindowInfos[i2]->GetExStyle(),
    8889                temporary,
    89                 pWindowInfo->childWindowInfos[i2]->caption,
    90                 pWindowInfo->childWindowInfos[i2]->style,
     90                pWindowInfo->childWindowInfos[i2]->GetCaption().c_str(),
     91                pWindowInfo->childWindowInfos[i2]->GetStyle(),
    9192                pWindowInfo->childWindowInfos[i2]->pos.x,
    9293                pWindowInfo->childWindowInfos[i2]->pos.y,
     
    102103                // イメージ ボックスの場合
    103104                ///////////////////////////
    104                 if((pWindowInfo->childWindowInfos[i2]->style&0x000F)==SS_ICON){
    105                     if(pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.type==IMGTYPE_FILE)
    106                         lstrcpy(temporary,pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path);
    107                     else{
    108                         for(i3=0;i3<projectInfo.resourceManager.iconResources.size();i3++)
     105                if((pWindowInfo->childWindowInfos[i2]->GetStyle()&0x000F)==SS_ICON){
     106                    if(pWindowInfo->childWindowInfos[i2]->image.IsFile())
     107                    {
     108                        lstrcpy(temporary,pWindowInfo->childWindowInfos[i2]->image.path.c_str());
     109                    }
     110                    else
     111                    {
     112                        temporary[0] = 0;
     113                        BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources )
    109114                        {
    110                             if( projectInfo.resourceManager.iconResources[i3].idName == pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path )
     115                            if( resourceItem.idName == pWindowInfo->childWindowInfos[i2]->image.path )
    111116                            {
     117                                lstrcpy( temporary, resourceItem.filepath.c_str() );
    112118                                break;
    113119                            }
    114120                        }
    115                         if(i3==projectInfo.resourceManager.iconResources.size()) temporary[0]=0;
    116                         else lstrcpy(temporary,projectInfo.resourceManager.iconResources[i3].filepath.c_str());
    117121                    }
    118122                    if(temporary[0]){
     
    123127                    }
    124128                }
    125                 else if((pWindowInfo->childWindowInfos[i2]->style&0x000F)==SS_BITMAP){
    126                     if(pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.type==IMGTYPE_FILE)
    127                         lstrcpy(temporary,pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path);
    128                     else{
    129                         for(i3=0;i3<projectInfo.resourceManager.bitmapResources.size();i3++){
    130                             if( projectInfo.resourceManager.bitmapResources[i3].idName == pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path )
     129                else if((pWindowInfo->childWindowInfos[i2]->GetStyle()&0x000F)==SS_BITMAP){
     130                    if(pWindowInfo->childWindowInfos[i2]->image.IsFile())
     131                    {
     132                        lstrcpy(temporary,pWindowInfo->childWindowInfos[i2]->image.path.c_str());
     133                    }
     134                    else
     135                    {
     136                        temporary[0] = 0;
     137                        BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.bitmapResources )
     138                        {
     139                            if( resourceItem.idName == pWindowInfo->childWindowInfos[i2]->image.path )
    131140                            {
     141                                lstrcpy( temporary, resourceItem.filepath.c_str() );
    132142                                break;
    133143                            }
    134144                        }
    135                         if(i3==projectInfo.resourceManager.bitmapResources.size()) temporary[0]=0;
    136                         else lstrcpy(temporary,projectInfo.resourceManager.bitmapResources[i3].filepath.c_str());
    137145                    }
    138146                    if(temporary[0]){
     
    155163
    156164    //フォントハンドルを破棄
    157     for(i2=0;i2<pWindowInfo->childWindowInfos.size();i2++){
     165    for(i2=0;i2<static_cast<int>(pWindowInfo->childWindowInfos.size());i2++){
    158166        if(lphFont[i2]) DeleteObject(lphFont[i2]);
    159167    }
     
    161169
    162170    //イメージハンドルを破棄
    163     for(i2=0;i2<pWindowInfo->childWindowInfos.size();i2++){
     171    for(i2=0;i2<static_cast<int>(pWindowInfo->childWindowInfos.size());i2++){
    164172        if(lphImage[i2]){
    165             if((pWindowInfo->childWindowInfos[i2]->style&0x000F)==SS_ICON)
     173            if((pWindowInfo->childWindowInfos[i2]->GetStyle()&0x000F)==SS_ICON)
    166174                DestroyIcon((HICON)lphImage[i2]);
    167             else if((pWindowInfo->childWindowInfos[i2]->style&0x000F)==SS_BITMAP)
     175            else if((pWindowInfo->childWindowInfos[i2]->GetStyle()&0x000F)==SS_BITMAP)
    168176                DeleteObject(lphImage[i2]);
    169177        }
     
    176184}
    177185
    178 void SetSupportDlgData(int WndNum, const WindowInfo &windowInfo )
     186void SetSupportDlgData(int WndNum, const ActiveBasic::PM::WindowInfo &windowInfo )
    179187{
    180188    ////////////////////////////////////
     
    307315
    308316            i=GetWndNum(GetParent(hwnd));
    309             WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     317            ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    310318
    311319            for(i3=0;;i3++){
  • trunk/ab5.0/abdev/abdev/RadToolsAndPropertyProc.cpp

    r623 r624  
    360360                SetPosCenter(hwnd);
    361361                i=GetWndNum(GetWindow(hClient,GW_CHILD));
    362                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     362                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    363363                sprintf(temporary,"h%s",pWindowInfo->GetName().c_str());
    364364                sprintf(temp2,"%sProc",pWindowInfo->GetName().c_str());
     
    394394
    395395                        i=GetWndNum(GetWindow(hClient,GW_CHILD));
    396                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     396                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    397397
    398398                        RAD_UNDOSTATE_NAME names,NoticeNames;
     
    481481                SetPosCenter(hwnd);
    482482                i=GetWndNum(GetWindow(hClient,GW_CHILD));
    483                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    484                 if(pWindowInfo->ExStyle&WS_EX_TOPMOST) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOPMOST,BM_SETCHECK,BST_CHECKED,0);
    485                 if(pWindowInfo->ExStyle&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0);
    486                 if(pWindowInfo->ExStyle&WS_EX_TRANSPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_SETCHECK,BST_CHECKED,0);
    487                 if(pWindowInfo->ExStyle&WS_EX_TOOLWINDOW) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOOLWINDOW,BM_SETCHECK,BST_CHECKED,0);
    488                 if(pWindowInfo->ExStyle&WS_EX_CLIENTEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_SETCHECK,BST_CHECKED,0);
    489                 if(pWindowInfo->ExStyle&WS_EX_STATICEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_SETCHECK,BST_CHECKED,0);
    490                 if(pWindowInfo->ExStyle&WS_EX_NOPARENTNOTIFY) SendDlgItemMessage(hwnd,IDC_EXSTYLE_NOPARENTNOTIFY,BM_SETCHECK,BST_CHECKED,0);
    491                 if(pWindowInfo->ExStyle&WS_EX_CONTEXTHELP) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTEXTHELP,BM_SETCHECK,BST_CHECKED,0);
    492                 if(pWindowInfo->ExStyle&WS_EX_CONTROLPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTROLPARENT,BM_SETCHECK,BST_CHECKED,0);
     483                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     484                if(pWindowInfo->GetExStyle()&WS_EX_TOPMOST) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOPMOST,BM_SETCHECK,BST_CHECKED,0);
     485                if(pWindowInfo->GetExStyle()&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0);
     486                if(pWindowInfo->GetExStyle()&WS_EX_TRANSPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_SETCHECK,BST_CHECKED,0);
     487                if(pWindowInfo->GetExStyle()&WS_EX_TOOLWINDOW) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TOOLWINDOW,BM_SETCHECK,BST_CHECKED,0);
     488                if(pWindowInfo->GetExStyle()&WS_EX_CLIENTEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_SETCHECK,BST_CHECKED,0);
     489                if(pWindowInfo->GetExStyle()&WS_EX_STATICEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_SETCHECK,BST_CHECKED,0);
     490                if(pWindowInfo->GetExStyle()&WS_EX_NOPARENTNOTIFY) SendDlgItemMessage(hwnd,IDC_EXSTYLE_NOPARENTNOTIFY,BM_SETCHECK,BST_CHECKED,0);
     491                if(pWindowInfo->GetExStyle()&WS_EX_CONTEXTHELP) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTEXTHELP,BM_SETCHECK,BST_CHECKED,0);
     492                if(pWindowInfo->GetExStyle()&WS_EX_CONTROLPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CONTROLPARENT,BM_SETCHECK,BST_CHECKED,0);
    493493                break;
    494494            }
     
    520520                            style|=WS_EX_CONTROLPARENT;
    521521
    522                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    523 
    524                         if(style==pWindowInfo->ExStyle){
     522                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     523
     524                        if(style==pWindowInfo->GetExStyle()){
    525525                            SendMessage(hwnd,WM_COMMAND,IDCANCEL,0);
    526526                            return 1;
     
    528528
    529529                        //変更情報
    530                         Rad_NoticeChanging(i,RAD_UNDO_EXSTYLE,SELECT_WINDOW,pWindowInfo->ExStyle);
    531 
    532                         pWindowInfo->ExStyle=style;
     530                        Rad_NoticeChanging(i,RAD_UNDO_EXSTYLE,SELECT_WINDOW,pWindowInfo->GetExStyle());
     531
     532                        pWindowInfo->SetExStyle( style );
    533533                        EndDialog(hwnd,1);
    534534                        return 1;
     
    553553                bInitial=1;
    554554                i=GetWndNum(GetParent(GetParent(hwnd)));
    555                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     555                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    556556
    557557                SetDlgItemText(hwnd,IDC_WINDOWNAME,pWindowInfo->GetName().c_str());
    558558                SetDlgItemText(hwnd,IDC_HANDLE,pWindowInfo->GetHandleName().c_str());
    559                 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->caption);
     559                SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->GetCaption().c_str());
    560560
    561561                //"3D FACE(標準)"
     
    564564                SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_BGCOLOR2);
    565565
    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());
     566                BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.bitmapResources )
     567                {
     568                    SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_ADDSTRING,0,(long)resourceItem.idName.c_str());
     569                }
    568570                if(pWindowInfo->type==WNDTYPE_MODALDLG||
    569571                    pWindowInfo->type==WNDTYPE_MODELESSDLG){
     
    572574                }
    573575                else{
    574                     if(pWindowInfo->bgColor==COLOR_3DFACE){
     576                    if(pWindowInfo->GetBackgroundColor()==COLOR_3DFACE){
    575577                        //3DFACE
    576578                        SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_SETCURSEL,0,0);
    577579                    }
    578                     else if(pWindowInfo->bgColor<=0){
     580                    else if(pWindowInfo->GetBackgroundColor()<=0){
    579581                        //色指定
    580582                        SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_SETCURSEL,1,0);
    581583                    }
    582                     else if(pWindowInfo->bgColor>=0x1000){
     584                    else if(pWindowInfo->GetBackgroundColor()>=0x1000){
    583585                        //ビットマップ指定
    584                         SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_SETCURSEL,2+pWindowInfo->bgColor-0x1000,0);
     586                        SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_SETCURSEL,2+pWindowInfo->GetBackgroundColor()-0x1000,0);
    585587                    }
    586588                }
     
    595597
    596598                for(i3=0,i4=0;i3<projectInfo.NumberOfMenu;i3++){
    597                     if(pWindowInfo->MenuID){
    598                         if(lstrcmpi(projectInfo.pMenuInfo[i3].IdName,pWindowInfo->MenuID)==0)
     599                    if( pWindowInfo->HasMenu() )
     600                    {
     601                        if(lstrcmpi(projectInfo.pMenuInfo[i3].IdName,pWindowInfo->GetMenuIdName().c_str())==0)
    599602                            i4=i3+1;
    600603                    }
    601604                    SendDlgItemMessage(hwnd,IDC_WINDOWMENU,CB_ADDSTRING,0,(long)projectInfo.pMenuInfo[i3].IdName);
    602605                }
    603                 if(i4==0&&pWindowInfo->MenuID){
     606                if(i4==0&&pWindowInfo->HasMenu()){
    604607                    //メニューが存在しない場合、無効にする
    605                     HeapDefaultFree(pWindowInfo->MenuID);
    606                     pWindowInfo->MenuID=0;
     608                    pWindowInfo->SetMenuIdName( "" );
    607609                    DrawRadWindow(i,pWindowInfo);
    608610                }
     
    617619                SendDlgItemMessage(hwnd,IDC_ICONRES,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_ICONDEFAULT);
    618620
    619                 for(i3=0,i4=0;i3<projectInfo.resourceManager.iconResources.size();i3++){
     621                for(i3=0,i4=0;i3<static_cast<int>(projectInfo.resourceManager.iconResources.size());i3++){
    620622                    SendDlgItemMessage(hwnd,IDC_ICONRES,CB_ADDSTRING,0,(long)projectInfo.resourceManager.iconResources[i3].idName.c_str());
    621623
    622                     if( pWindowInfo->IconResName )
     624                    if( pWindowInfo->HasIcon() )
    623625                    {
    624                         if( projectInfo.resourceManager.iconResources[i3].idName == pWindowInfo->IconResName )
     626                        if( projectInfo.resourceManager.iconResources[i3].idName == pWindowInfo->GetIconResourceName() )
    625627                        {
    626628                            i4=i3+1;
     
    628630                    }
    629631                }
    630                 if(i4==0&&pWindowInfo->IconResName){
     632                if( i4 == 0 && pWindowInfo->HasIcon() )
     633                {
    631634                    //アイコンが存在しない場合、無効にする
    632                     HeapDefaultFree(pWindowInfo->IconResName);
    633                     pWindowInfo->IconResName=0;
     635                    pWindowInfo->SetIconResourceName( "" );
    634636                    DrawRadWindow(i,pWindowInfo);
    635637                }
     
    648650                SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_ADDSTRING,0,(long)STRING_WINDOWPROP_STYLE_CHILD);
    649651
    650                 if(pWindowInfo->style&WS_POPUP) SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_SETCURSEL,1,0);
    651                 else if(pWindowInfo->style&WS_CHILD) SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_SETCURSEL,2,0);
     652                if(pWindowInfo->GetStyle()&WS_POPUP) SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_SETCURSEL,1,0);
     653                else if(pWindowInfo->GetStyle()&WS_CHILD) SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_SETCURSEL,2,0);
    652654                else SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_SETCURSEL,0,0);
    653655
     
    660662
    661663                //WS_CAPTION(WS_BORDER含む)を考慮してWS_THICKFRAMEを最初に比較する
    662                 if(pWindowInfo->style&WS_THICKFRAME) SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_SETCURSEL,2,0);
    663                 else if(pWindowInfo->style&WS_BORDER) SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_SETCURSEL,1,0);
     664                if(pWindowInfo->GetStyle()&WS_THICKFRAME) SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_SETCURSEL,2,0);
     665                else if(pWindowInfo->GetStyle()&WS_BORDER) SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_SETCURSEL,1,0);
    664666                else SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_SETCURSEL,0,0);
    665667
    666                 if(pWindowInfo->style&WS_CAPTION) SendDlgItemMessage(hwnd,IDC_STYLE_CAPTION,BM_SETCHECK,BST_CHECKED,0);
    667                 if(pWindowInfo->style&WS_SYSMENU) SendDlgItemMessage(hwnd,IDC_STYLE_SYSMENU,BM_SETCHECK,BST_CHECKED,0);
    668                 if(pWindowInfo->style&WS_MINIMIZEBOX) SendDlgItemMessage(hwnd,IDC_STYLE_MINIMIZEBOX,BM_SETCHECK,BST_CHECKED,0);
    669                 if(pWindowInfo->style&WS_MAXIMIZEBOX) SendDlgItemMessage(hwnd,IDC_STYLE_MAXIMIZEBOX,BM_SETCHECK,BST_CHECKED,0);
    670                 if(pWindowInfo->style&WS_MINIMIZE) SendDlgItemMessage(hwnd,IDC_STYLE_MINIMIZE,BM_SETCHECK,BST_CHECKED,0);
    671                 if(pWindowInfo->style&WS_MAXIMIZE) SendDlgItemMessage(hwnd,IDC_STYLE_MAXIMIZE,BM_SETCHECK,BST_CHECKED,0);
    672                 if(pWindowInfo->style&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLLBAR,BM_SETCHECK,BST_CHECKED,0);
    673                 if(pWindowInfo->style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLLBAR,BM_SETCHECK,BST_CHECKED,0);
    674                 if(pWindowInfo->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    675                 if(pWindowInfo->style&WS_CLIPSIBLINGS) SendDlgItemMessage(hwnd,IDC_STYLE_CLIPSIBLINGS,BM_SETCHECK,BST_CHECKED,0);
    676                 if(pWindowInfo->style&WS_CLIPCHILDREN) SendDlgItemMessage(hwnd,IDC_STYLE_CLIPCHILDREN,BM_SETCHECK,BST_CHECKED,0);
    677                 if(pWindowInfo->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     668                if(pWindowInfo->GetStyle()&WS_CAPTION) SendDlgItemMessage(hwnd,IDC_STYLE_CAPTION,BM_SETCHECK,BST_CHECKED,0);
     669                if(pWindowInfo->GetStyle()&WS_SYSMENU) SendDlgItemMessage(hwnd,IDC_STYLE_SYSMENU,BM_SETCHECK,BST_CHECKED,0);
     670                if(pWindowInfo->GetStyle()&WS_MINIMIZEBOX) SendDlgItemMessage(hwnd,IDC_STYLE_MINIMIZEBOX,BM_SETCHECK,BST_CHECKED,0);
     671                if(pWindowInfo->GetStyle()&WS_MAXIMIZEBOX) SendDlgItemMessage(hwnd,IDC_STYLE_MAXIMIZEBOX,BM_SETCHECK,BST_CHECKED,0);
     672                if(pWindowInfo->GetStyle()&WS_MINIMIZE) SendDlgItemMessage(hwnd,IDC_STYLE_MINIMIZE,BM_SETCHECK,BST_CHECKED,0);
     673                if(pWindowInfo->GetStyle()&WS_MAXIMIZE) SendDlgItemMessage(hwnd,IDC_STYLE_MAXIMIZE,BM_SETCHECK,BST_CHECKED,0);
     674                if(pWindowInfo->GetStyle()&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLLBAR,BM_SETCHECK,BST_CHECKED,0);
     675                if(pWindowInfo->GetStyle()&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLLBAR,BM_SETCHECK,BST_CHECKED,0);
     676                if(pWindowInfo->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     677                if(pWindowInfo->GetStyle()&WS_CLIPSIBLINGS) SendDlgItemMessage(hwnd,IDC_STYLE_CLIPSIBLINGS,BM_SETCHECK,BST_CHECKED,0);
     678                if(pWindowInfo->GetStyle()&WS_CLIPCHILDREN) SendDlgItemMessage(hwnd,IDC_STYLE_CLIPCHILDREN,BM_SETCHECK,BST_CHECKED,0);
     679                if(pWindowInfo->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    678680
    679681                SetDlgItemText(hwnd,IDC_SETFONT,pWindowInfo->LogFont.lfFaceName);
    680682
    681                 RadProperty_Window_Window_StylingOrder(hwnd,&pWindowInfo->style);
     683                DWORD tempStyle = pWindowInfo->GetStyle();
     684                RadProperty_Window_Window_StylingOrder(hwnd,&tempStyle);
     685                pWindowInfo->SetStyle( tempStyle );
    682686
    683687
     
    706710                        if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW_RENAME),hwnd,(DLGPROC)DlgRadProperty_Window_Rename)) return 1;
    707711                        i=GetWndNum(GetParent(GetParent(hwnd)));
    708                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     712                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    709713                        SetDlgItemText(hwnd,IDC_WINDOWNAME,pWindowInfo->GetName().c_str());
    710714                        SetDlgItemText(hwnd,IDC_HANDLE,pWindowInfo->GetHandleName().c_str());
     
    715719                        if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMECAPTION),hwnd,(DLGPROC)DlgRadProperty_Item_RenameCaption)) return 1;
    716720                        i=GetWndNum(GetParent(GetParent(hwnd)));
    717                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    718                         SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->caption);
     721                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     722                        SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->GetCaption().c_str());
    719723                        return 1;
    720724                    }
     
    722726                    {
    723727                        i=GetWndNum(GetParent(GetParent(hwnd)));
    724                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     728                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    725729                        LOGFONT lf;
    726730                        lf=pWindowInfo->LogFont;
     
    737741                    if(HIWORD(wParam)==CBN_SELCHANGE){
    738742                        i=GetWndNum(GetParent(GetParent(hwnd)));
    739                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     743                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    740744
    741745                        i3=SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_GETCURSEL,0,0);
     
    744748
    745749                            //変更情報
    746                             Rad_NoticeChanging(i,RAD_UNDO_BGCOLOR,SELECT_WINDOW,pWindowInfo->bgColor);
    747 
    748                             pWindowInfo->bgColor=COLOR_3DFACE;
     750                            Rad_NoticeChanging(i,RAD_UNDO_BGCOLOR,SELECT_WINDOW,pWindowInfo->GetBackgroundColor());
     751
     752                            pWindowInfo->SetBackgroundColor( COLOR_3DFACE );
    749753                        }
    750754                        else if(i3==1){
     
    770774                            cc.lStructSize=sizeof(CHOOSECOLOR);
    771775                            cc.hwndOwner=hwnd;
    772                             if(pWindowInfo->bgColor<=0)
    773                                 cc.rgbResult=-pWindowInfo->bgColor;
     776                            if(pWindowInfo->GetBackgroundColor()<=0)
     777                                cc.rgbResult=-pWindowInfo->GetBackgroundColor();
    774778                            else cc.rgbResult=RGB(255,255,255);
    775779                            cc.lpCustColors=CusColors;
     
    777781                            if(!ChooseColor(&cc)){
    778782                                //キャンセル動作
    779                                 if(pWindowInfo->bgColor==COLOR_3DFACE){
     783                                if(pWindowInfo->GetBackgroundColor()==COLOR_3DFACE){
    780784                                    //3DFACE
    781785                                    SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_SETCURSEL,0,0);
    782786                                }
    783                                 else if(pWindowInfo->bgColor<=0){
     787                                else if(pWindowInfo->GetBackgroundColor()<=0){
    784788                                    //色指定
    785789                                    SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_SETCURSEL,1,0);
    786790                                }
    787                                 else if(pWindowInfo->bgColor>=0x1000){
     791                                else if(pWindowInfo->GetBackgroundColor()>=0x1000){
    788792                                    //ビットマップ指定
    789                                     SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_SETCURSEL,2+pWindowInfo->bgColor-0x1000,0);
     793                                    SendDlgItemMessage(hwnd,IDC_BGCOLOR,CB_SETCURSEL,2+pWindowInfo->GetBackgroundColor()-0x1000,0);
    790794                                }
    791795                                return 1;
     
    793797
    794798                            //変更情報
    795                             Rad_NoticeChanging(i,RAD_UNDO_BGCOLOR,SELECT_WINDOW,pWindowInfo->bgColor);
    796 
    797                             pWindowInfo->bgColor=-(int)cc.rgbResult;
     799                            Rad_NoticeChanging(i,RAD_UNDO_BGCOLOR,SELECT_WINDOW,pWindowInfo->GetBackgroundColor());
     800
     801                            pWindowInfo->SetBackgroundColor( -(int)cc.rgbResult );
    798802                        }
    799803                        else{
     
    802806
    803807                            //変更情報
    804                             Rad_NoticeChanging(i,RAD_UNDO_BGCOLOR,SELECT_WINDOW,pWindowInfo->bgColor);
    805 
    806                             pWindowInfo->bgColor=0x1000+i3;
     808                            Rad_NoticeChanging(i,RAD_UNDO_BGCOLOR,SELECT_WINDOW,pWindowInfo->GetBackgroundColor());
     809
     810                            pWindowInfo->SetBackgroundColor( 0x1000+i3 );
    807811                        }
    808812                        DrawRadWindow(i,pWindowInfo);
     
    813817                    if(HIWORD(wParam)==CBN_SELCHANGE){
    814818                        i=GetWndNum(GetParent(GetParent(hwnd)));
    815                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     819                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    816820
    817821                        //変更情報
    818                         Rad_NoticeChanging(i,RAD_UNDO_WINDOWMENU,SELECT_WINDOW,(long)pWindowInfo->MenuID);
     822                        Rad_NoticeChanging(i,RAD_UNDO_WINDOWMENU,SELECT_WINDOW,(DWORD)&pWindowInfo->GetMenuIdName());
    819823
    820824                        i3=SendDlgItemMessage(hwnd,IDC_WINDOWMENU,CB_GETCURSEL,0,0);
    821                         if(pWindowInfo->MenuID)
    822                             HeapDefaultFree(pWindowInfo->MenuID);
    823                         if(i3==0) pWindowInfo->MenuID=0;
    824                         else{
    825                             pWindowInfo->MenuID=(char *)HeapAlloc(hHeap,0,SendDlgItemMessage(hwnd,IDC_WINDOWMENU,CB_GETLBTEXTLEN,i3,0)+1);
    826                             SendDlgItemMessage(hwnd,IDC_WINDOWMENU,CB_GETLBTEXT,i3,(long)pWindowInfo->MenuID);
     825
     826                        if(i3==0)
     827                        {
     828                            pWindowInfo->SetMenuIdName( "" );
     829                        }
     830                        else
     831                        {
     832                            char temporary[1024];
     833                            SendDlgItemMessage(hwnd,IDC_WINDOWMENU,CB_GETLBTEXT,i3,(long)temporary);
     834                            pWindowInfo->SetMenuIdName( temporary );
    827835                        }
    828836                        DrawRadWindow(i,pWindowInfo);
     
    833841                    if(HIWORD(wParam)==CBN_SELCHANGE){
    834842                        i=GetWndNum(GetParent(GetParent(hwnd)));
    835                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     843                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    836844
    837845                        //変更情報
    838                         Rad_NoticeChanging(i,RAD_UNDO_ICONRES,SELECT_WINDOW,(long)pWindowInfo->IconResName);
     846                        Rad_NoticeChanging(i,RAD_UNDO_ICONRES,SELECT_WINDOW,(DWORD)&pWindowInfo->GetIconResourceName());
    839847
    840848                        i3=SendDlgItemMessage(hwnd,IDC_ICONRES,CB_GETCURSEL,0,0);
    841                         if(pWindowInfo->IconResName)
    842                             HeapDefaultFree(pWindowInfo->IconResName);
    843                         if(i3==0) pWindowInfo->IconResName=0;
    844                         else{
    845                             pWindowInfo->IconResName=(char *)HeapAlloc(hHeap,0,SendDlgItemMessage(hwnd,IDC_ICONRES,CB_GETLBTEXTLEN,i3,0)+1);
    846                             SendDlgItemMessage(hwnd,IDC_ICONRES,CB_GETLBTEXT,i3,(long)pWindowInfo->IconResName);
     849                        if(i3==0)
     850                        {
     851                            pWindowInfo->SetIconResourceName( "" );
     852                        }
     853                        else
     854                        {
     855                            char temporary[1024];
     856                            SendDlgItemMessage(hwnd,IDC_ICONRES,CB_GETLBTEXT,i3,(long)temporary);
     857                            pWindowInfo->SetIconResourceName( temporary );
    847858                        }
    848859                        DrawRadWindow(i,pWindowInfo);
     
    854865                    if(HIWORD(wParam)==CBN_SELCHANGE){
    855866                        i=GetWndNum(GetParent(GetParent(hwnd)));
    856                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     867                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    857868
    858869                        //変更情報
    859                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     870                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    860871
    861872                        i3=SendDlgItemMessage(hwnd,IDC_WINDOWSTYLE,CB_GETCURSEL,0,0);
    862                         pWindowInfo->style&=0x3FFFFFFF;
    863                         if(i3==1) pWindowInfo->style|=WS_POPUP;
    864                         else if(i3==2) pWindowInfo->style|=WS_CHILD;
    865                         RadProperty_Window_Window_StylingOrder(hwnd,&pWindowInfo->style);
     873                        pWindowInfo->SetStyle( pWindowInfo->GetStyle() & 0x3FFFFFFF );
     874                        if(i3==1) pWindowInfo->AddStyle( WS_POPUP );
     875                        else if(i3==2) pWindowInfo->AddStyle( WS_CHILD );
     876
     877                        DWORD tempStyle = pWindowInfo->GetStyle();
     878                        RadProperty_Window_Window_StylingOrder(hwnd,&tempStyle);
     879                        pWindowInfo->SetStyle( tempStyle );
     880
    866881                        DrawRadWindow(i,pWindowInfo);
    867882                        return 1;
     
    871886                    if(HIWORD(wParam)==CBN_SELCHANGE){
    872887                        i=GetWndNum(GetParent(GetParent(hwnd)));
    873                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     888                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    874889
    875890                        //変更情報
    876                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     891                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    877892
    878893                        i3=SendDlgItemMessage(hwnd,IDC_BORDERSTYLE,CB_GETCURSEL,0,0);
    879                         pWindowInfo->style&=~(WS_BORDER|WS_THICKFRAME);
    880                         if(i3==1) pWindowInfo->style|=WS_BORDER;
     894                        pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~(WS_BORDER|WS_THICKFRAME) );
     895                        if(i3==1) pWindowInfo->AddStyle( WS_BORDER );
    881896                        else if(i3==2){
    882                             pWindowInfo->style|=WS_BORDER;
    883                             pWindowInfo->style|=WS_THICKFRAME;
    884                         }
    885                         RadProperty_Window_Border_StylingOrder(hwnd,&pWindowInfo->style);
     897                            pWindowInfo->AddStyle( WS_BORDER );
     898                            pWindowInfo->AddStyle( WS_THICKFRAME );
     899                        }
     900                        DWORD tempStyle = pWindowInfo->GetStyle();
     901                        RadProperty_Window_Border_StylingOrder(hwnd,&tempStyle);
     902                        pWindowInfo->SetStyle( tempStyle );
     903
    886904                        DrawRadWindow(i,pWindowInfo);
    887905                        return 1;
     
    892910                    if(HIWORD(wParam)==BN_CLICKED){
    893911                        i=GetWndNum(GetParent(GetParent(hwnd)));
    894                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     912                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    895913
    896914                        //変更情報
    897                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     915                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    898916
    899917                        if(SendDlgItemMessage(hwnd,IDC_STYLE_CAPTION,BM_GETCHECK,0,0))
    900                             pWindowInfo->style|=WS_CAPTION;
     918                            pWindowInfo->AddStyle( WS_CAPTION );
    901919                        else
    902                             pWindowInfo->style&=~WS_CAPTION;
    903                         RadProperty_Window_Caption_StylingOrder(hwnd,&pWindowInfo->style);
     920                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_CAPTION );
     921                        DWORD tempStyle = pWindowInfo->GetStyle();
     922                        RadProperty_Window_Caption_StylingOrder(hwnd,&tempStyle);
     923                        pWindowInfo->SetStyle( tempStyle );
    904924                        DrawRadWindow(i,pWindowInfo);
    905925                        return 1;
     
    909929                    if(HIWORD(wParam)==BN_CLICKED){
    910930                        i=GetWndNum(GetParent(GetParent(hwnd)));
    911                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     931                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    912932
    913933                        //変更情報
    914                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     934                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    915935
    916936                        if(SendDlgItemMessage(hwnd,IDC_STYLE_SYSMENU,BM_GETCHECK,0,0))
    917                             pWindowInfo->style|=WS_SYSMENU;
     937                            pWindowInfo->AddStyle( WS_SYSMENU );
    918938                        else
    919                             pWindowInfo->style&=~WS_SYSMENU;
     939                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_SYSMENU );
    920940                        DrawRadWindow(i,pWindowInfo);
    921941                        return 1;
     
    925945                    if(HIWORD(wParam)==BN_CLICKED){
    926946                        i=GetWndNum(GetParent(GetParent(hwnd)));
    927                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     947                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    928948
    929949                        //変更情報
    930                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     950                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    931951
    932952                        if(SendDlgItemMessage(hwnd,IDC_STYLE_MINIMIZEBOX,BM_GETCHECK,0,0))
    933                             pWindowInfo->style|=WS_MINIMIZEBOX;
     953                            pWindowInfo->AddStyle( WS_MINIMIZEBOX );
    934954                        else
    935                             pWindowInfo->style&=~WS_MINIMIZEBOX;
     955                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_MINIMIZEBOX );
    936956                        DrawRadWindow(i,pWindowInfo);
    937957                        return 1;
     
    941961                    if(HIWORD(wParam)==BN_CLICKED){
    942962                        i=GetWndNum(GetParent(GetParent(hwnd)));
    943                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     963                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    944964
    945965                        //変更情報
    946                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     966                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    947967
    948968                        if(SendDlgItemMessage(hwnd,IDC_STYLE_MAXIMIZEBOX,BM_GETCHECK,0,0))
    949                             pWindowInfo->style|=WS_MAXIMIZEBOX;
     969                            pWindowInfo->AddStyle( WS_MAXIMIZEBOX );
    950970                        else
    951                             pWindowInfo->style&=~WS_MAXIMIZEBOX;
     971                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_MAXIMIZEBOX );
    952972                        DrawRadWindow(i,pWindowInfo);
    953973                        return 1;
     
    957977                    if(HIWORD(wParam)==BN_CLICKED){
    958978                        i=GetWndNum(GetParent(GetParent(hwnd)));
    959                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     979                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    960980
    961981                        //変更情報
    962                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     982                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    963983
    964984                        if(SendDlgItemMessage(hwnd,IDC_STYLE_MINIMIZE,BM_GETCHECK,0,0))
    965                             pWindowInfo->style|=WS_MINIMIZE;
     985                            pWindowInfo->AddStyle( WS_MINIMIZE );
    966986                        else
    967                             pWindowInfo->style&=~WS_MINIMIZE;
     987                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_MINIMIZE );
    968988                        DrawRadWindow(i,pWindowInfo);
    969989                        return 1;
     
    973993                    if(HIWORD(wParam)==BN_CLICKED){
    974994                        i=GetWndNum(GetParent(GetParent(hwnd)));
    975                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     995                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    976996
    977997                        //変更情報
    978                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     998                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    979999
    9801000                        if(SendDlgItemMessage(hwnd,IDC_STYLE_MAXIMIZE,BM_GETCHECK,0,0))
    981                             pWindowInfo->style|=WS_MAXIMIZE;
     1001                            pWindowInfo->AddStyle( WS_MAXIMIZE );
    9821002                        else
    983                             pWindowInfo->style&=~WS_MAXIMIZE;
     1003                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_MAXIMIZE );
    9841004                        DrawRadWindow(i,pWindowInfo);
    9851005                        return 1;
     
    9881008                    if(HIWORD(wParam)==BN_CLICKED){
    9891009                        i=GetWndNum(GetParent(GetParent(hwnd)));
    990                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1010                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    9911011
    9921012                        //変更情報
    993                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     1013                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    9941014
    9951015                        if(SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLLBAR,BM_GETCHECK,0,0))
    996                             pWindowInfo->style|=WS_HSCROLL;
     1016                            pWindowInfo->AddStyle( WS_HSCROLL );
    9971017                        else
    998                             pWindowInfo->style&=~WS_HSCROLL;
     1018                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_HSCROLL );
    9991019                        DrawRadWindow(i,pWindowInfo);
    10001020                        return 1;
     
    10031023                    if(HIWORD(wParam)==BN_CLICKED){
    10041024                        i=GetWndNum(GetParent(GetParent(hwnd)));
    1005                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1025                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    10061026
    10071027                        //変更情報
    1008                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     1028                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    10091029
    10101030                        if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLLBAR,BM_GETCHECK,0,0))
    1011                             pWindowInfo->style|=WS_VSCROLL;
     1031                            pWindowInfo->AddStyle( WS_VSCROLL );
    10121032                        else
    1013                             pWindowInfo->style&=~WS_VSCROLL;
     1033                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_VSCROLL );
    10141034                        DrawRadWindow(i,pWindowInfo);
    10151035                        return 1;
     
    10191039                    if(HIWORD(wParam)==BN_CLICKED){
    10201040                        i=GetWndNum(GetParent(GetParent(hwnd)));
    1021                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1041                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    10221042
    10231043                        //変更情報
    1024                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     1044                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    10251045
    10261046                        if(SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_GETCHECK,0,0))
    1027                             pWindowInfo->style|=WS_DISABLED;
     1047                            pWindowInfo->AddStyle( WS_DISABLED );
    10281048                        else
    1029                             pWindowInfo->style&=~WS_DISABLED;
     1049                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_DISABLED );
    10301050                        DrawRadWindow(i,pWindowInfo);
    10311051                        return 1;
     
    10351055                    if(HIWORD(wParam)==BN_CLICKED){
    10361056                        i=GetWndNum(GetParent(GetParent(hwnd)));
    1037                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1057                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    10381058
    10391059                        //変更情報
    1040                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     1060                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    10411061
    10421062                        if(SendDlgItemMessage(hwnd,IDC_STYLE_CLIPSIBLINGS,BM_GETCHECK,0,0))
    1043                             pWindowInfo->style|=WS_CLIPSIBLINGS;
     1063                            pWindowInfo->AddStyle( WS_CLIPSIBLINGS );
    10441064                        else
    1045                             pWindowInfo->style&=~WS_CLIPSIBLINGS;
     1065                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_CLIPSIBLINGS );
    10461066                        DrawRadWindow(i,pWindowInfo);
    10471067                        return 1;
     
    10511071                    if(HIWORD(wParam)==BN_CLICKED){
    10521072                        i=GetWndNum(GetParent(GetParent(hwnd)));
    1053                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1073                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    10541074
    10551075                        //変更情報
    1056                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     1076                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    10571077
    10581078                        if(SendDlgItemMessage(hwnd,IDC_STYLE_CLIPCHILDREN,BM_GETCHECK,0,0))
    1059                             pWindowInfo->style|=WS_CLIPCHILDREN;
     1079                            pWindowInfo->AddStyle( WS_CLIPCHILDREN );
    10601080                        else
    1061                             pWindowInfo->style&=~WS_CLIPCHILDREN;
     1081                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_CLIPCHILDREN );
    10621082                        DrawRadWindow(i,pWindowInfo);
    10631083                        return 1;
     
    10671087                    if(HIWORD(wParam)==BN_CLICKED){
    10681088                        i=GetWndNum(GetParent(GetParent(hwnd)));
    1069                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1089                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    10701090
    10711091                        //変更情報
    1072                         Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->style);
     1092                        Rad_NoticeChanging(i,RAD_UNDO_STYLE,SELECT_WINDOW,pWindowInfo->GetStyle());
    10731093
    10741094                        if(SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_GETCHECK,0,0))
    1075                             pWindowInfo->style|=WS_VISIBLE;
     1095                            pWindowInfo->AddStyle( WS_VISIBLE );
    10761096                        else
    1077                             pWindowInfo->style&=~WS_VISIBLE;
     1097                            pWindowInfo->SetStyle( pWindowInfo->GetStyle() & ~WS_VISIBLE );
    10781098                        DrawRadWindow(i,pWindowInfo);
    10791099                        return 1;
     
    10921112                    if(HIWORD(wParam)==BN_CLICKED){
    10931113                        i=GetWndNum(GetParent(GetParent(hwnd)));
    1094                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1114                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    10951115
    10961116                        //変更情報
     
    11241144                SetPosCenter(hwnd);
    11251145                i=GetWndNum(GetWindow(hClient,GW_CHILD));
    1126                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1146                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    11271147                if(MdiInfo[i].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW)
    1128                     SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->caption);
     1148                    SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->GetCaption().c_str());
    11291149                else
    1130                     SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption);
     1150                    SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());
    11311151                break;
    11321152            }
     
    11361156                    {
    11371157                        i=GetWndNum(GetWindow(hClient,GW_CHILD));
    1138                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1158                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    11391159
    11401160                        i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_CAPTION))+1;
     
    11421162                        GetDlgItemText(hwnd,IDC_CAPTION,temporary,i3);
    11431163                        if(MdiInfo[i].MdiRadInfo->SelectingItem[0]==SELECT_WINDOW){
    1144                             if(lstrcmp(temporary,pWindowInfo->caption)==0){
     1164                            if( pWindowInfo->GetCaption() == temporary){
    11451165                                HeapDefaultFree(temporary);
    11461166                                SendMessage(hwnd,WM_COMMAND,IDCANCEL,0);
     
    11491169
    11501170                            //変更情報を更新
    1151                             Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)pWindowInfo->caption);
    1152 
    1153                             HeapDefaultFree(pWindowInfo->caption);
    1154                             pWindowInfo->caption=temporary;
     1171                            Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->GetCaption());
     1172
     1173                            pWindowInfo->SetCaption( temporary );
    11551174                        }
    11561175                        else{
    1157                             if(lstrcmp(temporary,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption)==0){
     1176                            if( pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption() == temporary )
     1177                            {
    11581178                                HeapDefaultFree(temporary);
    11591179                                SendMessage(hwnd,WM_COMMAND,IDCANCEL,0);
     
    11621182
    11631183                            //変更情報を更新
    1164                             Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption);
    1165 
    1166                             HeapDefaultFree(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption);
    1167                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption=temporary;
     1184                            Rad_NoticeChanging(i,RAD_UNDO_CAPTION,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption());
     1185
     1186                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->SetCaption( temporary );
    11681187
    11691188                            if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->Control==CT_STATIC){
     
    12331252                        DrawRadWindow(i,pWindowInfo);
    12341253                        EndDialog(hwnd,1);
     1254
     1255                        HeapDefaultFree(temporary);
    12351256                        return 1;
    12361257                    }
     
    12551276                SetPosCenter(hwnd);
    12561277                i=GetWndNum(GetWindow(hClient,GW_CHILD));
    1257                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    1258                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
     1278                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1279                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    12591280            }
    12601281            break;
     
    12641285                    {
    12651286                        i=GetWndNum(GetWindow(hClient,GW_CHILD));
    1266                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1287                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    12671288
    12681289                        i3=GetWindowTextLength(GetDlgItem(hwnd,IDC_IDNAME))+1;
     
    12741295                        temporary=(char *)HeapAlloc(hHeap,0,i3);
    12751296                        GetDlgItemText(hwnd,IDC_IDNAME,temporary,i3);
    1276                         if(lstrcmp(temporary,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName)==0){
     1297                        if( pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName() == temporary )
     1298                        {
    12771299                            HeapDefaultFree(temporary);
    12781300                            SendMessage(hwnd,WM_COMMAND,IDCANCEL,0);
     
    12841306
    12851307                        //変更情報を更新
    1286                         Rad_NoticeChanging(i,RAD_UNDO_NAME,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
    1287 
    1288                         HeapDefaultFree(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
    1289                         pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName=temporary;
     1308                        Rad_NoticeChanging(i,RAD_UNDO_NAME,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName());
     1309
     1310                        pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->SetName( temporary );
    12901311
    12911312                        EndDialog(hwnd,1);
     
    13041325    extern MDIINFO MdiInfo[MAX_WNDNUM];
    13051326
    1306     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     1327    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    13071328
    13081329    switch(LOWORD(wParam)){
    13091330        case IDC_RENAMEID:
    13101331            if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMEID),hwnd,(DLGPROC)DlgRadProperty_Item_RenameID)) return 1;
    1311             SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->IdName);
     1332            SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    13121333            return 1;
    13131334        case IDC_RENAMECAPTION:
    13141335            if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMECAPTION),hwnd,(DLGPROC)DlgRadProperty_Item_RenameCaption)) return 1;
    1315             SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->caption);
     1336            SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());
    13161337            return 1;
    13171338        case IDC_STYLE_DISABLED:
    13181339            if(HIWORD(wParam)==BN_CLICKED){
    13191340                //変更情報
    1320                 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style);
     1341                Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetStyle());
    13211342
    13221343                if(SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_GETCHECK,0,0))
    1323                     pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style|=WS_DISABLED;
     1344                    pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->AddStyle( WS_DISABLED );
    13241345                else
    1325                     pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style&=~WS_DISABLED;
     1346                    pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_DISABLED );
    13261347                DrawRadWindow(WndNum,pWindowInfo);
    13271348                return 1;
     
    13311352            if(HIWORD(wParam)==BN_CLICKED){
    13321353                //変更情報
    1333                 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style);
     1354                Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetStyle());
    13341355
    13351356                if(SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_GETCHECK,0,0))
    1336                     pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style|=WS_VISIBLE;
     1357                    pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VISIBLE );
    13371358                else
    1338                     pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style&=~WS_VISIBLE;
     1359                    pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VISIBLE );
    13391360                return 1;
    13401361            }
     
    13431364            if(HIWORD(wParam)==BN_CLICKED){
    13441365                //変更情報
    1345                 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style);
     1366                Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetStyle());
    13461367
    13471368                if(SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_GETCHECK,0,0))
    1348                     pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style|=WS_GROUP;
     1369                    pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->AddStyle( WS_GROUP );
    13491370                else
    1350                     pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style&=~WS_GROUP;
     1371                    pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_GROUP );
    13511372                return 1;
    13521373            }
     
    13551376            if(HIWORD(wParam)==BN_CLICKED){
    13561377                //変更情報
    1357                 Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style);
     1378                Rad_NoticeChanging(WndNum,RAD_UNDO_STYLE,MdiInfo[WndNum].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->GetStyle());
    13581379
    13591380                if(SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_GETCHECK,0,0))
    1360                     pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style|=WS_TABSTOP;
     1381                    pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->AddStyle( WS_TABSTOP );
    13611382                else
    1362                     pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->style&=~WS_TABSTOP;
     1383                    pWindowInfo->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_TABSTOP );
    13631384                return 1;
    13641385            }
     
    13761397                SetPosCenter(hwnd);
    13771398                i=GetWndNum(GetWindow(hClient,GW_CHILD));
    1378                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    1379                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0);
    1380                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle&WS_EX_TRANSPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_SETCHECK,BST_CHECKED,0);
    1381                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle&WS_EX_DLGMODALFRAME) SendDlgItemMessage(hwnd,IDC_EXSTYLE_DLGMODALFRAME,BM_SETCHECK,BST_CHECKED,0);
    1382                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle&WS_EX_CLIENTEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_SETCHECK,BST_CHECKED,0);
    1383                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle&WS_EX_STATICEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_SETCHECK,BST_CHECKED,0);
     1399                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1400                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_ACCEPTFILES) SendDlgItemMessage(hwnd,IDC_EXSTYLE_ACCEPTFILES,BM_SETCHECK,BST_CHECKED,0);
     1401                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_TRANSPARENT) SendDlgItemMessage(hwnd,IDC_EXSTYLE_TRANSPARENT,BM_SETCHECK,BST_CHECKED,0);
     1402                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_DLGMODALFRAME) SendDlgItemMessage(hwnd,IDC_EXSTYLE_DLGMODALFRAME,BM_SETCHECK,BST_CHECKED,0);
     1403                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_CLIENTEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_CLIENTEDGE,BM_SETCHECK,BST_CHECKED,0);
     1404                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetExStyle()&WS_EX_STATICEDGE) SendDlgItemMessage(hwnd,IDC_EXSTYLE_STATICEDGE,BM_SETCHECK,BST_CHECKED,0);
    13841405                break;
    13851406            }
     
    13891410                    {
    13901411                        i=GetWndNum(GetWindow(hClient,GW_CHILD));
    1391                         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1412                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    13921413
    13931414                        DWORD style;
     
    14041425                            style|=WS_EX_STATICEDGE;
    14051426
    1406                         if(style==pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle){
     1427                        if(style==pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetExStyle()){
    14071428                            SendMessage(hwnd,WM_COMMAND,IDCANCEL,0);
    14081429                            return 1;
     
    14101431
    14111432                        //変更情報
    1412                         Rad_NoticeChanging(i,RAD_UNDO_EXSTYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle);
    1413 
    1414                         pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ExStyle=style;
     1433                        Rad_NoticeChanging(i,RAD_UNDO_EXSTYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetExStyle());
     1434
     1435                        pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->SetExStyle( style );
    14151436                        EndDialog(hwnd,1);
    14161437                        return 1;
     
    14391460                bInitial=1;
    14401461                i=GetWndNum(GetParent(GetParent(hwnd)));
    1441                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    1442 
    1443                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
    1444                 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption);
     1462                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1463
     1464                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
     1465                SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());
    14451466
    14461467
     
    14481469                //スタイル
    14491470
    1450                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    1451                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    1452                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    1453                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    1454 
    1455                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_OWNERDRAW)==BS_OWNERDRAW) SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_CHECKED,0);
    1456                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_DEFPUSHBUTTON) SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_CHECKED,0);
    1457 
    1458                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);
    1459                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);
    1460                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);
    1461                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
     1471                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     1472                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     1473                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     1474                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     1475
     1476                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_OWNERDRAW)==BS_OWNERDRAW) SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_CHECKED,0);
     1477                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_DEFPUSHBUTTON) SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_CHECKED,0);
     1478
     1479                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);
     1480                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);
     1481                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);
     1482                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
    14621483
    14631484
     
    14761497
    14771498                //ビットを考慮してBS_CENTERを最初に比較する
    1478                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);
    1479                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);
    1480                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);
     1499                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);
     1500                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);
     1501                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);
    14811502                else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0);
    14821503
     
    14961517
    14971518                //ビットを考慮してBS_VCENTERを最初に比較する
    1498                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);
    1499                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);
    1500                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);
     1519                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);
     1520                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);
     1521                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);
    15011522                else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0);
    15021523
     
    15101531                if(i==-1) return 1;
    15111532                i2=GetWndInfoNum(MdiInfo[i].path);
    1512                 WindowInfo *pWindowInfo = projectInfo.windowInfos[i2];
     1533                ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[i2];
    15131534
    15141535                //共通スタイル
     
    15211542                        if(HIWORD(wParam)==BN_CLICKED){
    15221543                            //変更情報
    1523                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1544                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    15241545
    15251546                            if(SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_GETCHECK,0,0)){
    1526                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_OWNERDRAW;
    1527                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_DEFPUSHBUTTON;
     1547                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_OWNERDRAW );
     1548                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_DEFPUSHBUTTON );
    15281549                                SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_SETCHECK,BST_UNCHECKED,0);
    15291550                            }
    15301551                            else
    1531                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_DEFPUSHBUTTON;
     1552                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_DEFPUSHBUTTON );
    15321553                            DrawRadWindow(i,pWindowInfo);
    15331554                            return 1;
     
    15371558                        if(HIWORD(wParam)==BN_CLICKED){
    15381559                            //変更情報
    1539                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1560                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    15401561
    15411562                            if(SendDlgItemMessage(hwnd,IDC_BS_OWNERDRAW,BM_GETCHECK,0,0)){
    1542                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_DEFPUSHBUTTON;
    1543                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_OWNERDRAW;
     1563                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_DEFPUSHBUTTON );
     1564                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_OWNERDRAW );
    15441565                                SendDlgItemMessage(hwnd,IDC_BS_DEFPUSHBUTTON,BM_SETCHECK,BST_UNCHECKED,0);
    15451566                            }
    15461567                            else
    1547                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_OWNERDRAW;
     1568                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_OWNERDRAW );
    15481569                            DrawRadWindow(i,pWindowInfo);
    15491570                            return 1;
     
    15531574                        if(HIWORD(wParam)==BN_CLICKED){
    15541575                            //変更情報
    1555                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1576                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    15561577
    15571578                            if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){
    1558                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_ICON;
    1559                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP;
     1579                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON );
     1580                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );
    15601581                                SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0);
    15611582                            }
    15621583                            else
    1563                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON;
     1584                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );
    15641585                            DrawRadWindow(i,pWindowInfo);
    15651586                            return 1;
     
    15691590                        if(HIWORD(wParam)==BN_CLICKED){
    15701591                            //変更情報
    1571                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1592                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    15721593
    15731594                            if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){
    1574                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BITMAP;
    1575                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON;
     1595                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP );
     1596                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );
    15761597                                SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0);
    15771598                            }
    15781599                            else
    1579                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP;
     1600                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );
    15801601                            DrawRadWindow(i,pWindowInfo);
    15811602                            return 1;
     
    15851606                        if(HIWORD(wParam)==BN_CLICKED){
    15861607                            //変更情報
    1587                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1608                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    15881609
    15891610                            if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0))
    1590                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_MULTILINE;
    1591                             else
    1592                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_MULTILINE;
     1611                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_MULTILINE );
     1612                            else
     1613                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_MULTILINE );
    15931614                            DrawRadWindow(i,pWindowInfo);
    15941615                            return 1;
     
    15981619                        if(HIWORD(wParam)==BN_CLICKED){
    15991620                            //変更情報
    1600                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1621                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    16011622
    16021623                            if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0))
    1603                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_NOTIFY;
    1604                             else
    1605                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_NOTIFY;
     1624                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY );
     1625                            else
     1626                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY );
    16061627                            return 1;
    16071628                        }
     
    16111632                        if(HIWORD(wParam)==CBN_SELCHANGE){
    16121633                            //変更情報
    1613                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1634                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    16141635
    16151636                            i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0);
    1616                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_LEFT|BS_RIGHT|BS_CENTER);
    1617                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFT;
    1618                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_RIGHT;
    1619                             else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CENTER;
     1637                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFT|BS_RIGHT|BS_CENTER );
     1638                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT );
     1639                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT );
     1640                            else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER );
    16201641                            DrawRadWindow(i,pWindowInfo);
    16211642                            return 1;
     
    16251646                        if(HIWORD(wParam)==CBN_SELCHANGE){
    16261647                            //変更情報
    1627                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1648                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    16281649
    16291650                            i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0);
    1630                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER);
    1631                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_TOP;
    1632                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BOTTOM;
    1633                             else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_VCENTER;
     1651                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_TOP|BS_BOTTOM|BS_VCENTER );
     1652                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_TOP );
     1653                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BOTTOM );
     1654                            else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_VCENTER );
    16341655                            DrawRadWindow(i,pWindowInfo);
    16351656                            return 1;
     
    16611682                bInitial=1;
    16621683                i=GetWndNum(GetParent(GetParent(hwnd)));
    1663                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    1664 
    1665                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
    1666                 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption);
     1684                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1685
     1686                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
     1687                SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());
    16671688
    16681689
     
    16701691                //スタイル
    16711692
    1672                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    1673                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    1674                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    1675                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    1676 
    1677                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_AUTOCHECKBOX)==BS_AUTOCHECKBOX) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0);
    1678                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_AUTO3STATE)==BS_AUTO3STATE){
     1693                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     1694                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     1695                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     1696                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     1697
     1698                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_AUTOCHECKBOX)==BS_AUTOCHECKBOX) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0);
     1699                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_AUTO3STATE)==BS_AUTO3STATE){
    16791700                    SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0);
    16801701                    SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0);
    16811702                }
    1682                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_3STATE)==BS_3STATE) SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0);
    1683                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0);
    1684                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0);
    1685                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);
    1686                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);
    1687                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);
    1688                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
     1703                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_3STATE)==BS_3STATE) SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_SETCHECK,BST_CHECKED,0);
     1704                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0);
     1705                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0);
     1706                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);
     1707                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);
     1708                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);
     1709                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
    16891710
    16901711
     
    17031724
    17041725                //ビットを考慮してBS_CENTERを最初に比較する
    1705                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);
    1706                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);
    1707                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);
     1726                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);
     1727                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);
     1728                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);
    17081729                else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0);
    17091730
     
    17231744
    17241745                //ビットを考慮してBS_VCENTERを最初に比較する
    1725                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);
    1726                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);
    1727                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);
     1746                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);
     1747                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);
     1748                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);
    17281749                else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0);
    17291750
     
    17371758                if(i==-1) return 1;
    17381759                i2=GetWndInfoNum(MdiInfo[i].path);
    1739                 WindowInfo *pWindowInfo = projectInfo.windowInfos[i2];
     1760                ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[i2];
    17401761
    17411762                //共通スタイル
     
    17481769                        if(HIWORD(wParam)==BN_CLICKED){
    17491770                            //変更情報
    1750                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1771                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    17511772
    17521773                            if(SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_GETCHECK,0,0)){
    1753                                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x04){
     1774                                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x04){
    17541775                                    //3state
    1755                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0;
    1756                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_AUTO3STATE;
     1776                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );
     1777                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTO3STATE );
    17571778                                }
    17581779                                else{
    17591780                                    //2state
    1760                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0;
    1761                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_AUTOCHECKBOX;
     1781                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );
     1782                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTOCHECKBOX );
    17621783                                }
    17631784                            }
    17641785                            else{
    1765                                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x04){
     1786                                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x04){
    17661787                                    //3state
    1767                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0;
    1768                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_3STATE;
     1788                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );
     1789                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_3STATE );
    17691790                                }
    17701791                                else{
    17711792                                    //2state
    1772                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0;
    1773                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CHECKBOX;
     1793                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );
     1794                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CHECKBOX );
    17741795                                }
    17751796                            }
     
    17801801                        if(HIWORD(wParam)==BN_CLICKED){
    17811802                            //変更情報
    1782                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1803                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    17831804
    17841805                            if(SendDlgItemMessage(hwnd,IDC_BS_3STATE,BM_GETCHECK,0,0)){
    1785                                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0F)==BS_CHECKBOX){
    1786                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0;
    1787                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_3STATE;
     1806                                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_CHECKBOX){
     1807                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );
     1808                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_3STATE );
    17881809                                }
    1789                                 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0F)==BS_AUTOCHECKBOX){
     1810                                else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_AUTOCHECKBOX){
    17901811                                    //自動チェック
    1791                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0;
    1792                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_AUTO3STATE;
     1812                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );
     1813                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTO3STATE );
    17931814                                }
    17941815                            }
    17951816                            else{
    1796                                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0F)==BS_3STATE){
    1797                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0;
    1798                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CHECKBOX;
     1817                                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_3STATE){
     1818                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );
     1819                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CHECKBOX );
    17991820                                }
    1800                                 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0F)==BS_AUTO3STATE){
     1821                                else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0F)==BS_AUTO3STATE){
    18011822                                    //自動チェック
    1802                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0;
    1803                                     pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_AUTOCHECKBOX;
     1823                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );
     1824                                    pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTOCHECKBOX );
    18041825                                }
    18051826                            }
     
    18101831                        if(HIWORD(wParam)==BN_CLICKED){
    18111832                            //変更情報
    1812                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1833                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    18131834
    18141835                            if(SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_GETCHECK,0,0))
    1815                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_PUSHLIKE;
    1816                             else
    1817                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_PUSHLIKE;
     1836                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_PUSHLIKE );
     1837                            else
     1838                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_PUSHLIKE );
    18181839                            DrawRadWindow(i,pWindowInfo);
    18191840                            return 1;
     
    18231844                        if(HIWORD(wParam)==BN_CLICKED){
    18241845                            //変更情報
    1825                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1846                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    18261847
    18271848                            if(SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_GETCHECK,0,0))
    1828                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFTTEXT;
    1829                             else
    1830                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_LEFTTEXT;
     1849                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFTTEXT );
     1850                            else
     1851                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFTTEXT );
    18311852                            DrawRadWindow(i,pWindowInfo);
    18321853                            return 1;
     
    18361857                        if(HIWORD(wParam)==BN_CLICKED){
    18371858                            //変更情報
    1838                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1859                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    18391860
    18401861                            if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){
    1841                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_ICON;
    1842                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP;
     1862                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON );
     1863                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );
    18431864                                SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0);
    18441865                            }
    18451866                            else
    1846                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON;
     1867                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );
    18471868                            DrawRadWindow(i,pWindowInfo);
    18481869                            return 1;
     
    18521873                        if(HIWORD(wParam)==BN_CLICKED){
    18531874                            //変更情報
    1854                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1875                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    18551876
    18561877                            if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){
    1857                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BITMAP;
    1858                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON;
     1878                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP );
     1879                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );
    18591880                                SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0);
    18601881                            }
    18611882                            else
    1862                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP;
     1883                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );
    18631884                            DrawRadWindow(i,pWindowInfo);
    18641885                            return 1;
     
    18681889                        if(HIWORD(wParam)==BN_CLICKED){
    18691890                            //変更情報
    1870                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1891                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    18711892
    18721893                            if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0))
    1873                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_MULTILINE;
    1874                             else
    1875                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_MULTILINE;
     1894                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_MULTILINE );
     1895                            else
     1896                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_MULTILINE );
    18761897                            DrawRadWindow(i,pWindowInfo);
    18771898                            return 1;
     
    18811902                        if(HIWORD(wParam)==BN_CLICKED){
    18821903                            //変更情報
    1883                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1904                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    18841905
    18851906                            if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0))
    1886                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_NOTIFY;
    1887                             else
    1888                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_NOTIFY;
     1907                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY );
     1908                            else
     1909                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY );
    18891910                            return 1;
    18901911                        }
     
    18941915                        if(HIWORD(wParam)==CBN_SELCHANGE){
    18951916                            //変更情報
    1896                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1917                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    18971918
    18981919                            i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0);
    1899                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_LEFT|BS_RIGHT|BS_CENTER);
    1900                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFT;
    1901                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_RIGHT;
    1902                             else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CENTER;
     1920                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFT|BS_RIGHT|BS_CENTER );
     1921                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT );
     1922                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT );
     1923                            else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER );
    19031924                            DrawRadWindow(i,pWindowInfo);
    19041925                            return 1;
     
    19081929                        if(HIWORD(wParam)==CBN_SELCHANGE){
    19091930                            //変更情報
    1910                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     1931                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    19111932
    19121933                            i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0);
    1913                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER);
    1914                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_TOP;
    1915                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BOTTOM;
    1916                             else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_VCENTER;
     1934                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_TOP|BS_BOTTOM|BS_VCENTER );
     1935                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_TOP );
     1936                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BOTTOM );
     1937                            else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_VCENTER );
    19171938                            DrawRadWindow(i,pWindowInfo);
    19181939                            return 1;
     
    19521973                bInitial=1;
    19531974                i=GetWndNum(GetParent(GetParent(hwnd)));
    1954                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    1955 
    1956                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
     1975                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     1976
     1977                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    19571978
    19581979
     
    19611982                ////////////
    19621983
    1963                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    1964                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    1965                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    1966                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     1984                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     1985                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     1986                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     1987                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    19671988
    19681989                ////////
     
    19781999
    19792000                //ビットを考慮してCBS_DROPDOWNLISTを最初に比較する
    1980                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_DROPDOWNLIST)==CBS_DROPDOWNLIST) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,2,0);
    1981                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_SIMPLE) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,0,0);
    1982                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_DROPDOWN) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,1,0);
     2001                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_DROPDOWNLIST)==CBS_DROPDOWNLIST) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,2,0);
     2002                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_SIMPLE) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,0,0);
     2003                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_DROPDOWN) SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_SETCURSEL,1,0);
    19832004
    19842005
     
    19942015                SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_OWNERDRAW_VARIABLE);
    19952016
    1996                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,1,0);
    1997                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,2,0);
     2017                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,1,0);
     2018                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,2,0);
    19982019                else SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_SETCURSEL,0,0);
    19992020
    2000                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0);
    2001                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_SORT) SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_SETCHECK,BST_CHECKED,0);
    2002                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_NOINTEGRALHEIGHT) SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_SETCHECK,BST_CHECKED,0);
    2003                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0);
    2004                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);
    2005                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0);
    2006                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0);
    2007                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_UPPERCASE) SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_SETCHECK,BST_CHECKED,0);
    2008                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&CBS_LOWERCASE) SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_SETCHECK,BST_CHECKED,0);
    2009 
    2010                 RadProperty_ComboBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2021                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0);
     2022                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_SORT) SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_SETCHECK,BST_CHECKED,0);
     2023                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_NOINTEGRALHEIGHT) SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_SETCHECK,BST_CHECKED,0);
     2024                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0);
     2025                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);
     2026                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0);
     2027                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0);
     2028                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_UPPERCASE) SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_SETCHECK,BST_CHECKED,0);
     2029                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&CBS_LOWERCASE) SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_SETCHECK,BST_CHECKED,0);
     2030
     2031                DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle();
     2032                RadProperty_ComboBox_StylingOrder(hwnd,&tempStyle);
     2033                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );
    20112034
    20122035
     
    20192042                if(i==-1) return 1;
    20202043                i2=GetWndInfoNum(MdiInfo[i].path);
    2021                 WindowInfo *pWindowInfo = projectInfo.windowInfos[i2];
     2044                ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[i2];
    20222045
    20232046                //共通スタイル
     
    20302053                        if(HIWORD(wParam)==CBN_SELCHANGE){
    20312054                            //変更情報
    2032                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2055                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    20332056
    20342057                            i3=SendDlgItemMessage(hwnd,IDC_CBS_TYPE,CB_GETCURSEL,0,0);
    20352058                            //CBS_DROPDOWNLIST=CBS_SIMPLE | CBS_DROPDOWN
    2036                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(CBS_DROPDOWNLIST);
    2037                             if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_SIMPLE;
    2038                             else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_DROPDOWN;
    2039                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_DROPDOWNLIST;
     2059                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_DROPDOWNLIST );
     2060                            if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_SIMPLE );
     2061                            else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_DROPDOWN );
     2062                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_DROPDOWNLIST );
    20402063
    20412064                            DrawRadWindow(i,pWindowInfo);
     
    20462069                        if(HIWORD(wParam)==CBN_SELCHANGE){
    20472070                            //変更情報
    2048                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2071                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    20492072
    20502073                            i3=SendDlgItemMessage(hwnd,IDC_CBS_OWNERDRAW,CB_GETCURSEL,0,0);
    2051                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(CBS_OWNERDRAWFIXED|CBS_OWNERDRAWVARIABLE);
    2052                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_OWNERDRAWFIXED;
    2053                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_OWNERDRAWVARIABLE;
    2054 
    2055                             RadProperty_ComboBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2074                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_OWNERDRAWFIXED|CBS_OWNERDRAWVARIABLE );
     2075                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_OWNERDRAWFIXED );
     2076                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_OWNERDRAWVARIABLE );
     2077
     2078                            DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle();
     2079                            RadProperty_ComboBox_StylingOrder(hwnd,&tempStyle);
     2080                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );
    20562081                            return 1;
    20572082                        }
     
    20612086                        if(HIWORD(wParam)==BN_CLICKED){
    20622087                            //変更情報
    2063                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2088                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    20642089
    20652090                            if(SendDlgItemMessage(hwnd,IDC_CBS_HASSTRINGS,BM_GETCHECK,0,0))
    2066                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_HASSTRINGS;
    2067                             else
    2068                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_HASSTRINGS;
     2091                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_HASSTRINGS );
     2092                            else
     2093                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_HASSTRINGS );
    20692094                            return 1;
    20702095                        }
     
    20732098                        if(HIWORD(wParam)==BN_CLICKED){
    20742099                            //変更情報
    2075                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2100                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    20762101
    20772102                            if(SendDlgItemMessage(hwnd,IDC_CBS_SORT,BM_GETCHECK,0,0))
    2078                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_SORT;
    2079                             else
    2080                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_SORT;
     2103                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_SORT );
     2104                            else
     2105                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_SORT );
    20812106                            return 1;
    20822107                        }
     
    20852110                        if(HIWORD(wParam)==BN_CLICKED){
    20862111                            //変更情報
    2087                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2112                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    20882113
    20892114                            if(SendDlgItemMessage(hwnd,IDC_CBS_NOINTEGRALHEIGHT,BM_GETCHECK,0,0))
    2090                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_NOINTEGRALHEIGHT;
    2091                             else
    2092                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_NOINTEGRALHEIGHT;
     2115                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_NOINTEGRALHEIGHT );
     2116                            else
     2117                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_NOINTEGRALHEIGHT );
    20932118                            return 1;
    20942119                        }
     
    20972122                        if(HIWORD(wParam)==BN_CLICKED){
    20982123                            //変更情報
    2099                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2124                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    21002125
    21012126                            if(SendDlgItemMessage(hwnd,IDC_CBS_OEMCONVERT,BM_GETCHECK,0,0))
    2102                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_OEMCONVERT;
    2103                             else
    2104                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_OEMCONVERT;
     2127                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_OEMCONVERT );
     2128                            else
     2129                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_OEMCONVERT );
    21052130                            return 1;
    21062131                        }
     
    21092134                        if(HIWORD(wParam)==BN_CLICKED){
    21102135                            //変更情報
    2111                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2136                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    21122137
    21132138                            if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0))
    2114                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=WS_VSCROLL;
    2115                             else
    2116                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~WS_VSCROLL;
     2139                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VSCROLL );
     2140                            else
     2141                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VSCROLL );
    21172142                            DrawRadWindow(i,pWindowInfo);
    21182143                            return 1;
     
    21222147                        if(HIWORD(wParam)==BN_CLICKED){
    21232148                            //変更情報
    2124                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2149                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    21252150
    21262151                            if(SendDlgItemMessage(hwnd,IDC_CBS_AUTOHSCROLL,BM_GETCHECK,0,0))
    2127                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_AUTOHSCROLL;
    2128                             else
    2129                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_AUTOHSCROLL;
     2152                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_AUTOHSCROLL );
     2153                            else
     2154                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_AUTOHSCROLL );
    21302155                            return 1;
    21312156                        }
     
    21342159                        if(HIWORD(wParam)==BN_CLICKED){
    21352160                            //変更情報
    2136                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2161                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    21372162
    21382163                            if(SendDlgItemMessage(hwnd,IDC_CBS_DISABLENOSCROLL,BM_GETCHECK,0,0))
    2139                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_DISABLENOSCROLL;
    2140                             else
    2141                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_DISABLENOSCROLL;
     2164                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_DISABLENOSCROLL );
     2165                            else
     2166                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_DISABLENOSCROLL );
    21422167                            DrawRadWindow(i,pWindowInfo);
    21432168                            return 1;
     
    21472172                        if(HIWORD(wParam)==BN_CLICKED){
    21482173                            //変更情報
    2149                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2174                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    21502175
    21512176                            if(SendDlgItemMessage(hwnd,IDC_CBS_UPPERCASE,BM_GETCHECK,0,0))
    2152                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_UPPERCASE;
    2153                             else
    2154                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_UPPERCASE;
     2177                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_UPPERCASE );
     2178                            else
     2179                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_UPPERCASE );
    21552180                            return 1;
    21562181                        }
     
    21592184                        if(HIWORD(wParam)==BN_CLICKED){
    21602185                            //変更情報
    2161                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2186                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    21622187
    21632188                            if(SendDlgItemMessage(hwnd,IDC_CBS_LOWERCASE,BM_GETCHECK,0,0))
    2164                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=CBS_LOWERCASE;
    2165                             else
    2166                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~CBS_LOWERCASE;
     2189                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( CBS_LOWERCASE );
     2190                            else
     2191                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( CBS_LOWERCASE );
    21672192                            return 1;
    21682193                        }
     
    22162241                bInitial=1;
    22172242                i=GetWndNum(GetParent(GetParent(hwnd)));
    2218                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    2219 
    2220                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
    2221                 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption);
     2243                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     2244
     2245                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
     2246                SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());
    22222247
    22232248
     
    22262251                ////////////
    22272252
    2228                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    2229                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    2230                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    2231                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    2232 
    2233                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_MULTILINE) SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_SETCHECK,BST_CHECKED,0);
    2234                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_NUMBER) SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_SETCHECK,BST_CHECKED,0);
    2235                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0);
    2236                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0);
    2237                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);
    2238                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_AUTOVSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_SETCHECK,BST_CHECKED,0);
    2239                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_PASSWORD) SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_SETCHECK,BST_CHECKED,0);
    2240                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_NOHIDESEL) SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_SETCHECK,BST_CHECKED,0);
    2241                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0);
    2242                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_WANTRETURN) SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_SETCHECK,BST_CHECKED,0);
    2243                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_UPPERCASE) SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_CHECKED,0);
    2244                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_LOWERCASE) SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_CHECKED,0);
    2245                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_READONLY) SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_SETCHECK,BST_CHECKED,0);
     2253                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     2254                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     2255                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     2256                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     2257
     2258                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_MULTILINE) SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_SETCHECK,BST_CHECKED,0);
     2259                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_NUMBER) SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_SETCHECK,BST_CHECKED,0);
     2260                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0);
     2261                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_AUTOHSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_SETCHECK,BST_CHECKED,0);
     2262                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);
     2263                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_AUTOVSCROLL) SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_SETCHECK,BST_CHECKED,0);
     2264                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_PASSWORD) SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_SETCHECK,BST_CHECKED,0);
     2265                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_NOHIDESEL) SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_SETCHECK,BST_CHECKED,0);
     2266                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_OEMCONVERT) SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_SETCHECK,BST_CHECKED,0);
     2267                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_WANTRETURN) SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_SETCHECK,BST_CHECKED,0);
     2268                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_UPPERCASE) SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_CHECKED,0);
     2269                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_LOWERCASE) SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_CHECKED,0);
     2270                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_READONLY) SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_SETCHECK,BST_CHECKED,0);
    22462271
    22472272
     
    22582283
    22592284                //ビットを考慮してES_LEFTを最後に検討する
    2260                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_CENTER) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,1,0);
    2261                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&ES_RIGHT) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,2,0);
     2285                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_CENTER) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,1,0);
     2286                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&ES_RIGHT) SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,2,0);
    22622287                else SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_SETCURSEL,0,0);
    22632288
    2264                 RadProperty_Edit_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2289                DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle();
     2290                RadProperty_Edit_StylingOrder(hwnd,&tempStyle);
     2291                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );
    22652292
    22662293
     
    22732300                if(i==-1) return 1;
    22742301                i2=GetWndInfoNum(MdiInfo[i].path);
    2275                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     2302                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    22762303
    22772304                //共通スタイル
     
    22842311                        if(HIWORD(wParam)==BN_CLICKED){
    22852312                            //変更情報
    2286                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2313                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    22872314
    22882315                            if(SendDlgItemMessage(hwnd,IDC_ES_MULTILINE,BM_GETCHECK,0,0))
    2289                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_MULTILINE;
    2290                             else
    2291                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_MULTILINE;
    2292                             RadProperty_Edit_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2316                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_MULTILINE );
     2317                            else
     2318                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_MULTILINE );
     2319
     2320                            DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle();
     2321                            RadProperty_Edit_StylingOrder(hwnd,&tempStyle);
     2322                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );
    22932323                            DrawRadWindow(i,pWindowInfo);
    22942324                            return 1;
     
    22982328                        if(HIWORD(wParam)==BN_CLICKED){
    22992329                            //変更情報
    2300                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2330                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    23012331
    23022332                            if(SendDlgItemMessage(hwnd,IDC_ES_NUMBER,BM_GETCHECK,0,0))
    2303                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_NUMBER;
    2304                             else
    2305                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_NUMBER;
     2333                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_NUMBER );
     2334                            else
     2335                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_NUMBER );
    23062336                            return 1;
    23072337                        }
     
    23102340                        if(HIWORD(wParam)==BN_CLICKED){
    23112341                            //変更情報
    2312                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2342                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    23132343
    23142344                            if(SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_GETCHECK,0,0))
    2315                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=WS_HSCROLL;
    2316                             else
    2317                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~WS_HSCROLL;
     2345                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( WS_HSCROLL );
     2346                            else
     2347                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_HSCROLL );
    23182348                            DrawRadWindow(i,pWindowInfo);
    23192349                            return 1;
     
    23232353                        if(HIWORD(wParam)==BN_CLICKED){
    23242354                            //変更情報
    2325                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2355                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    23262356
    23272357                            if(SendDlgItemMessage(hwnd,IDC_ES_AUTOHSCROLL,BM_GETCHECK,0,0))
    2328                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_AUTOHSCROLL;
    2329                             else
    2330                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_AUTOHSCROLL;
     2358                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_AUTOHSCROLL );
     2359                            else
     2360                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_AUTOHSCROLL );
    23312361                            DrawRadWindow(i,pWindowInfo);
    23322362                            return 1;
     
    23362366                        if(HIWORD(wParam)==BN_CLICKED){
    23372367                            //変更情報
    2338                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2368                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    23392369
    23402370                            if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0))
    2341                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=WS_VSCROLL;
    2342                             else
    2343                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~WS_VSCROLL;
     2371                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VSCROLL );
     2372                            else
     2373                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VSCROLL );
    23442374                            DrawRadWindow(i,pWindowInfo);
    23452375                            return 1;
     
    23492379                        if(HIWORD(wParam)==BN_CLICKED){
    23502380                            //変更情報
    2351                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2381                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    23522382
    23532383                            if(SendDlgItemMessage(hwnd,IDC_ES_AUTOVSCROLL,BM_GETCHECK,0,0))
    2354                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_AUTOVSCROLL;
    2355                             else
    2356                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_AUTOVSCROLL;
     2384                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_AUTOVSCROLL );
     2385                            else
     2386                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_AUTOVSCROLL );
    23572387                            DrawRadWindow(i,pWindowInfo);
    23582388                            return 1;
     
    23622392                        if(HIWORD(wParam)==BN_CLICKED){
    23632393                            //変更情報
    2364                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2394                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    23652395
    23662396                            if(SendDlgItemMessage(hwnd,IDC_ES_PASSWORD,BM_GETCHECK,0,0))
    2367                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_PASSWORD;
    2368                             else
    2369                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_PASSWORD;
     2397                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_PASSWORD );
     2398                            else
     2399                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_PASSWORD );
    23702400                            DrawRadWindow(i,pWindowInfo);
    23712401                            return 1;
     
    23752405                        if(HIWORD(wParam)==BN_CLICKED){
    23762406                            //変更情報
    2377                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2407                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    23782408
    23792409                            if(SendDlgItemMessage(hwnd,IDC_ES_NOHIDESEL,BM_GETCHECK,0,0))
    2380                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_NOHIDESEL;
    2381                             else
    2382                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_NOHIDESEL;
     2410                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_NOHIDESEL );
     2411                            else
     2412                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_NOHIDESEL );
    23832413                            DrawRadWindow(i,pWindowInfo);
    23842414                            return 1;
     
    23882418                        if(HIWORD(wParam)==BN_CLICKED){
    23892419                            //変更情報
    2390                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2420                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    23912421
    23922422                            if(SendDlgItemMessage(hwnd,IDC_ES_OEMCONVERT,BM_GETCHECK,0,0))
    2393                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_OEMCONVERT;
    2394                             else
    2395                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_OEMCONVERT;
     2423                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_OEMCONVERT );
     2424                            else
     2425                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_OEMCONVERT );
    23962426                            DrawRadWindow(i,pWindowInfo);
    23972427                            return 1;
     
    24012431                        if(HIWORD(wParam)==BN_CLICKED){
    24022432                            //変更情報
    2403                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2433                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    24042434
    24052435                            if(SendDlgItemMessage(hwnd,IDC_ES_WANTRETURN,BM_GETCHECK,0,0))
    2406                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_WANTRETURN;
    2407                             else
    2408                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_WANTRETURN;
     2436                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_WANTRETURN );
     2437                            else
     2438                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_WANTRETURN );
    24092439                            DrawRadWindow(i,pWindowInfo);
    24102440                            return 1;
     
    24142444                        if(HIWORD(wParam)==BN_CLICKED){
    24152445                            //変更情報
    2416                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2446                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    24172447
    24182448                            if(SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_GETCHECK,0,0)){
    2419                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_LOWERCASE;
    2420                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_UPPERCASE;
     2449                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_LOWERCASE );
     2450                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_UPPERCASE );
    24212451                                SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_SETCHECK,BST_UNCHECKED,0);
    24222452                            }
    24232453                            else
    2424                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_UPPERCASE;
     2454                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_UPPERCASE );
    24252455                            DrawRadWindow(i,pWindowInfo);
    24262456                            return 1;
     
    24302460                        if(HIWORD(wParam)==BN_CLICKED){
    24312461                            //変更情報
    2432                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2462                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    24332463
    24342464                            if(SendDlgItemMessage(hwnd,IDC_ES_LOWERCASE,BM_GETCHECK,0,0)){
    2435                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_UPPERCASE;
    2436                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_LOWERCASE;
     2465                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_UPPERCASE );
     2466                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_LOWERCASE );
    24372467                                SendDlgItemMessage(hwnd,IDC_ES_UPPERCASE,BM_SETCHECK,BST_UNCHECKED,0);
    24382468                            }
    24392469                            else
    2440                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_LOWERCASE;
     2470                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_LOWERCASE );
    24412471                            DrawRadWindow(i,pWindowInfo);
    24422472                            return 1;
     
    24462476                        if(HIWORD(wParam)==BN_CLICKED){
    24472477                            //変更情報
    2448                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2478                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    24492479
    24502480                            if(SendDlgItemMessage(hwnd,IDC_ES_READONLY,BM_GETCHECK,0,0))
    2451                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_READONLY;
    2452                             else
    2453                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~ES_READONLY;
     2481                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_READONLY );
     2482                            else
     2483                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_READONLY );
    24542484                            DrawRadWindow(i,pWindowInfo);
    24552485                            return 1;
     
    24602490                        if(HIWORD(wParam)==CBN_SELCHANGE){
    24612491                            //変更情報
    2462                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2492                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    24632493
    24642494                            i3=SendDlgItemMessage(hwnd,IDC_ES_TEXTPOS,CB_GETCURSEL,0,0);
    24652495                            //ES_LEFT=0
    2466                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(ES_CENTER|ES_RIGHT);
    2467                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_CENTER;
    2468                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=ES_RIGHT;
     2496                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( ES_CENTER|ES_RIGHT );
     2497                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_CENTER );
     2498                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( ES_RIGHT );
    24692499                            DrawRadWindow(i,pWindowInfo);
    24702500                            return 1;
     
    24972527                bInitial=1;
    24982528                i=GetWndNum(GetParent(GetParent(hwnd)));
    2499                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    2500 
    2501                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
    2502                 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption);
     2529                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     2530
     2531                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
     2532                SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());
    25032533
    25042534
     
    25072537                ////////////
    25082538
    2509                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    2510                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    2511                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    2512                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     2539                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     2540                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     2541                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     2542                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    25132543
    25142544
     
    25272557
    25282558                //ビットを考慮してBS_CENTERを最初に検討する
    2529                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,3,0);
    2530                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,1,0);
    2531                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,2,0);
     2559                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,3,0);
     2560                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,1,0);
     2561                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,2,0);
    25322562                else SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_SETCURSEL,0,0);
    25332563
    2534                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);
    2535                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);
    2536                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
     2564                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);
     2565                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);
     2566                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
    25372567
    25382568
     
    25452575                if(i==-1) return 1;
    25462576                i2=GetWndInfoNum(MdiInfo[i].path);
    2547                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     2577                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    25482578
    25492579                //共通スタイル
     
    25562586                        if(HIWORD(wParam)==CBN_SELCHANGE){
    25572587                            //変更情報
    2558                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2588                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    25592589
    25602590                            i3=SendDlgItemMessage(hwnd,IDC_BS_POSITION,CB_GETCURSEL,0,0);
    25612591                            //BS_CENTER=BS_LEFT | BS_RIGHT
    2562                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_CENTER);
    2563                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFT;
    2564                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_RIGHT;
    2565                             else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CENTER;
     2592                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_CENTER );
     2593                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT );
     2594                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT );
     2595                            else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER );
    25662596                            DrawRadWindow(i,pWindowInfo);
    25672597                            return 1;
     
    25722602                        if(HIWORD(wParam)==BN_CLICKED){
    25732603                            //変更情報
    2574                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2604                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    25752605
    25762606                            if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0))
    2577                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_ICON;
    2578                             else
    2579                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON;
     2607                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON );
     2608                            else
     2609                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );
    25802610                            DrawRadWindow(i,pWindowInfo);
    25812611                            return 1;
     
    25852615                        if(HIWORD(wParam)==BN_CLICKED){
    25862616                            //変更情報
    2587                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2617                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    25882618
    25892619                            if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0))
    2590                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BITMAP;
    2591                             else
    2592                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP;
     2620                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP );
     2621                            else
     2622                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );
    25932623                            DrawRadWindow(i,pWindowInfo);
    25942624                            return 1;
     
    25982628                        if(HIWORD(wParam)==BN_CLICKED){
    25992629                            //変更情報
    2600                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2630                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    26012631
    26022632                            if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0))
    2603                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_NOTIFY;
    2604                             else
    2605                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_NOTIFY;
     2633                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY );
     2634                            else
     2635                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY );
    26062636                            return 1;
    26072637                        }
     
    26502680                bInitial=1;
    26512681                i=GetWndNum(GetParent(GetParent(hwnd)));
    2652                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    2653 
    2654                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
     2682                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     2683
     2684                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    26552685
    26562686
     
    26592689                ////////////
    26602690
    2661                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    2662                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    2663                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    2664                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     2691                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     2692                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     2693                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     2694                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    26652695
    26662696                //////////
     
    26872717                SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_ADDSTRING,0,(long)STRING_IMAGEBOXPROP_STYLE_BITMAP);
    26882718
    2689                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BLACKFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,0,0);
    2690                 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_GRAYFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,1,0);
    2691                 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_WHITEFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,2,0);
    2692                 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000001F)==SS_ETCHEDFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,3,0);
    2693                 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BLACKRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,4,0);
    2694                 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_GRAYRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,5,0);
    2695                 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_WHITERECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,6,0);
    2696                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON||
    2697                     (pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){
    2698                     if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,7,0);
    2699                     else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,8,0);
     2719                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BLACKFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,0,0);
     2720                else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_GRAYFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,1,0);
     2721                else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_WHITEFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,2,0);
     2722                else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000001F)==SS_ETCHEDFRAME) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,3,0);
     2723                else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BLACKRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,4,0);
     2724                else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_GRAYRECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,5,0);
     2725                else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_WHITERECT) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,6,0);
     2726                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON||
     2727                    (pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){
     2728                    if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,7,0);
     2729                    else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP) SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_SETCURSEL,8,0);
    27002730
    27012731                    //リソース/ファイル スイッチチェックを表示
     
    27062736                    ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_SHOW);
    27072737
    2708                     if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_FILE){
     2738                    if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.IsFile()){
    27092739                        //ファイル指定を表示
    27102740                        ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW);
    27112741                        ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW);
    2712                         SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path);
     2742                        SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.path.c_str());
    27132743
    27142744                        //イメージ状態テキスト
     
    27182748                        SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0);
    27192749                    }
    2720                     else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_RES){
     2750                    else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.IsResource()){
    27212751                        //リソース指定を表示
    27222752                        ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW);
     
    27302760                        SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0);
    27312761
    2732                         if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){
     2762                        if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON){
    27332763                            //アイコンリソースをコンボボックスに挿入
    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());
    2736                         }
    2737                         else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){
     2764                            BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources )
     2765                            {
     2766                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)resourceItem.idName.c_str());
     2767                            }
     2768                        }
     2769                        else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){
    27382770                            //ビットマップリソースをコンボボックスに挿入
    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());
     2771                            BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.bitmapResources )
     2772                            {
     2773                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)resourceItem.idName.c_str());
     2774                            }
    27412775                        }
    27422776
    27432777                        //リストから選択
    2744                         i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_FINDSTRING,0,(long)pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path);
     2778                        i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_FINDSTRING,0,(long)pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.path.c_str());
    27452779                        SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0);
    27462780                    }
    27472781                }
    27482782
    2749                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
    2750                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_CENTERIMAGE) SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_SETCHECK,BST_CHECKED,0);
    2751                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_RIGHTJUST) SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_SETCHECK,BST_CHECKED,0);
    2752 
    2753                 RadProperty_ImageBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2783                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
     2784                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_CENTERIMAGE) SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_SETCHECK,BST_CHECKED,0);
     2785                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_RIGHTJUST) SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_SETCHECK,BST_CHECKED,0);
     2786
     2787                DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle();
     2788                RadProperty_ImageBox_StylingOrder(hwnd,&tempStyle);
     2789                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );
    27542790
    27552791                bInitial=0;
     
    27612797                if(i==-1) return 1;
    27622798                i2=GetWndInfoNum(MdiInfo[i].path);
    2763                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     2799                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    27642800
    27652801                //共通スタイル
     
    27722808                        if(HIWORD(wParam)==CBN_SELCHANGE){
    27732809                            //変更情報
    2774                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2810                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    27752811
    27762812                            i3=SendDlgItemMessage(hwnd,IDC_IMAGE_TYPE,CB_GETCURSEL,0,0);
    2777                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(0x0000001F);
    2778                             if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_BLACKFRAME;
    2779                             else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_GRAYFRAME;
    2780                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_WHITEFRAME;
    2781                             else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_ETCHEDFRAME;
    2782                             else if(i3==4) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_BLACKRECT;
    2783                             else if(i3==5) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_GRAYRECT;
    2784                             else if(i3==6) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_WHITERECT;
    2785                             else if(i3==7) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_ICON;
    2786                             else if(i3==8) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_BITMAP;
    2787 
    2788                             if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON||
    2789                                 (pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){
     2813                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( 0x0000001F );
     2814                            if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_BLACKFRAME );
     2815                            else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_GRAYFRAME );
     2816                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_WHITEFRAME );
     2817                            else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_ETCHEDFRAME );
     2818                            else if(i3==4) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_BLACKRECT );
     2819                            else if(i3==5) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_GRAYRECT );
     2820                            else if(i3==6) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_WHITERECT );
     2821                            else if(i3==7) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_ICON );
     2822                            else if(i3==8) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_BITMAP );
     2823
     2824                            if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON||
     2825                                (pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){
    27902826                                //リソース/ファイル スイッチチェックを表示
    27912827                                ShowWindow(GetDlgItem(hwnd,IDC_FILE),SW_SHOW);
     
    27952831                                ShowWindow(GetDlgItem(hwnd,IDC_IMAGE_SITUATION),SW_SHOW);
    27962832
    2797                                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_FILE){
     2833                                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.IsFile()){
    27982834                                    //ファイル指定を表示
    27992835                                    ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW);
    28002836                                    ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW);
    2801                                     SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path);
     2837                                    SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.path.c_str());
    28022838
    28032839                                    //イメージ状態テキスト
     
    28072843                                    SendDlgItemMessage(hwnd,IDC_FILE,BM_SETCHECK,BST_CHECKED,0);
    28082844                                }
    2809                                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_RES){
     2845                                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.IsResource()){
    28102846                                    //リソース指定を表示
    28112847                                    ShowWindow(GetDlgItem(hwnd,IDC_RESCOMBO),SW_SHOW);
     
    28192855                                    SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0);
    28202856
    2821                                     if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){
     2857                                    if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON){
    28222858                                        //アイコンリソースをコンボボックスに挿入
    2823                                         for(i3=0;i3<projectInfo.resourceManager.iconResources.size();i3++){
     2859                                        for(i3=0;i3<static_cast<int>(projectInfo.resourceManager.iconResources.size());i3++){
    28242860                                            SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.resourceManager.iconResources[i3].idName.c_str());
    28252861
    2826                                             if( projectInfo.resourceManager.iconResources[i3].idName == pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path )
     2862                                            if( projectInfo.resourceManager.iconResources[i3].idName == pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.path )
    28272863                                            {
    28282864                                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0);
     
    28302866                                        }
    28312867                                    }
    2832                                     else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){
     2868                                    else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){
    28332869                                        //ビットマップリソースをコンボボックスに挿入
    2834                                         for(i3=0;i3<projectInfo.resourceManager.bitmapResources.size();i3++){
     2870                                        for(i3=0;i3<static_cast<int>(projectInfo.resourceManager.bitmapResources.size());i3++){
    28352871                                            SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.resourceManager.bitmapResources[i3].idName.c_str());
    28362872
    2837                                             if( projectInfo.resourceManager.bitmapResources[i3].idName == pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path )
     2873                                            if( projectInfo.resourceManager.bitmapResources[i3].idName == pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.path )
    28382874                                            {
    28392875                                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_SETCURSEL,i3,0);
     
    28592895                            }
    28602896
    2861                             RadProperty_ImageBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     2897                            DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle();
     2898                            RadProperty_ImageBox_StylingOrder(hwnd,&tempStyle);
     2899                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );
    28622900                            DrawRadWindow(i,pWindowInfo);
    28632901                            return 1;
     
    28662904
    28672905                    case IDC_FILE:
    2868                         if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_FILE){
     2906                        if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.IsFile()){
    28692907                            //変更無し
    28702908                            break;
     
    28722910
    28732911                        //変更情報
    2874                         Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo);
    2875 
    2876                         pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type=IMGTYPE_FILE;
     2912                        Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image);
     2913
     2914                        pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.type
     2915                            = ActiveBasic::PM::ImageReferenceType::File;
    28772916
    28782917                        //ファイル指定を表示
    28792918                        ShowWindow(GetDlgItem(hwnd,IDC_PATH),SW_SHOW);
    28802919                        ShowWindow(GetDlgItem(hwnd,IDC_CHANGEPATH),SW_SHOW);
    2881                         SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path);
     2920                        SetDlgItemText(hwnd,IDC_PATH,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.path.c_str());
    28822921
    28832922                        //リソース指定を非表示
     
    28922931
    28932932                    case IDC_RESOURCE:
    2894                         if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_RES){
     2933                        if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.IsResource()){
    28952934                            //変更無し
    28962935                            break;
     
    28982937
    28992938                        //変更情報
    2900                         Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo);
    2901 
    2902                         pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type=IMGTYPE_RES;
     2939                        Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image);
     2940
     2941                        pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.type
     2942                            = ActiveBasic::PM::ImageReferenceType::Resource;
    29032943
    29042944                        //ファイル指定を非表示
     
    29172957                        SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_RESETCONTENT,0,0);
    29182958
    2919                         if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_ICON){
     2959                        if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_ICON){
    29202960                            //アイコンリソースをコンボボックスに挿入
    2921                             for(i3=0;i3<projectInfo.resourceManager.iconResources.size();i3++)
     2961                            BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.iconResources )
    29222962                            {
    2923                                 SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)projectInfo.resourceManager.iconResources[i3].idName.c_str());
     2963                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)resourceItem.idName.c_str());
    29242964                            }
    29252965                        }
    2926                         else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x0000000F)==SS_BITMAP){
     2966                        else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x0000000F)==SS_BITMAP){
    29272967                            //ビットマップリソースをコンボボックスに挿入
    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());
     2968                            BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, projectInfo.resourceManager.bitmapResources )
     2969                            {
     2970                                SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_ADDSTRING,0,(long)resourceItem.idName.c_str());
     2971                            }
    29302972                        }
    29312973                        break;
     
    29342976                        if(HIWORD(wParam)==CBN_SELCHANGE){
    29352977                            //変更情報
    2936                             Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo);
     2978                            Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image);
    29372979
    29382980                            i3=SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_GETCURSEL,0,0);
    29392981                            SendDlgItemMessage(hwnd,IDC_RESCOMBO,CB_GETLBTEXT,i3,(long)temporary);
    29402982
    2941                             HeapDefaultFree(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path);
    2942                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
    2943                             lstrcpy(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path,temporary);
     2983                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.path = temporary;
    29442984
    29452985                            DrawRadWindow(i,pWindowInfo);
     
    29492989                    case IDC_CHANGEPATH:
    29502990                        if(HIWORD(wParam)==BN_CLICKED){
    2951                             if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.type==IMGTYPE_FILE){
    2952                                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x000F)==SS_ICON){
     2991                            if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.IsFile()){
     2992                                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x000F)==SS_ICON){
    29532993                                    extern LPSTR IconFileFilter;
    29542994                                    //"アイコン ファイルを指定して下さい"
    29552995                                    if(!GetFilePathDialog(hwnd,temporary,IconFileFilter,STRING_IMAGEBOXPROP_GETPATH_ICON,1)) return 1;
    29562996                                }
    2957                                 else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&0x000F)==SS_BITMAP){
     2997                                else if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&0x000F)==SS_BITMAP){
    29582998                                    extern LPSTR BitmapFileFilter;
    29592999                                    //"ビットマップ ファイルを指定して下さい"
     
    29623002
    29633003                                //変更情報
    2964                                 Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo);
     3004                                Rad_NoticeChanging(i,RAD_UNDO_IMAGESTATE,MdiInfo[i].MdiRadInfo->SelectingItem[0],(DWORD)&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image);
    29653005
    29663006                                lstrcpy( temporary, projectInfo.GetWorkDir().GetRelationalPath( temporary ).c_str() );
    2967                                 HeapDefaultFree(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path);
    2968                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
    2969                                 lstrcpy(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->ImageCtrlInfo.path,temporary);
     3007                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->image.path = temporary;
    29703008
    29713009                                SetDlgItemText(hwnd,IDC_PATH,temporary);
     
    29793017                        if(HIWORD(wParam)==BN_CLICKED){
    29803018                            //変更情報
    2981                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3019                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    29823020
    29833021                            if(SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_GETCHECK,0,0))
    2984                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_NOTIFY;
    2985                             else
    2986                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_NOTIFY;
     3022                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_NOTIFY );
     3023                            else
     3024                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_NOTIFY );
    29873025                            return 1;
    29883026                        }
     
    29913029                        if(HIWORD(wParam)==BN_CLICKED){
    29923030                            //変更情報
    2993                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3031                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    29943032
    29953033                            if(SendDlgItemMessage(hwnd,IDC_SS_CENTERIMAGE,BM_GETCHECK,0,0))
    2996                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_CENTERIMAGE;
    2997                             else
    2998                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_CENTERIMAGE;
     3034                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_CENTERIMAGE );
     3035                            else
     3036                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_CENTERIMAGE );
    29993037                            return 1;
    30003038                        }
     
    30033041                        if(HIWORD(wParam)==BN_CLICKED){
    30043042                            //変更情報
    3005                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3043                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    30063044
    30073045                            if(SendDlgItemMessage(hwnd,IDC_SS_RIGHTJUST,BM_GETCHECK,0,0))
    3008                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_RIGHTJUST;
    3009                             else
    3010                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_RIGHTJUST;
     3046                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_RIGHTJUST );
     3047                            else
     3048                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_RIGHTJUST );
    30113049                            return 1;
    30123050                        }
     
    30373075                bInitial=1;
    30383076                i=GetWndNum(GetParent(GetParent(hwnd)));
    3039                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    3040 
    3041                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
     3077                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     3078
     3079                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    30423080
    30433081
     
    30463084                ////////////
    30473085
    3048                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    3049                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    3050                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    3051                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     3086                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     3087                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     3088                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     3089                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    30523090
    30533091                ////////
     
    30653103
    30663104                //ビットを考慮してLVS_LISTを最初に比較する
    3067                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_LIST)==LVS_LIST) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,2,0);
    3068                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SMALLICON) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,1,0);
    3069                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_REPORT) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,3,0);
     3105                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_LIST)==LVS_LIST) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,2,0);
     3106                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SMALLICON) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,1,0);
     3107                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_REPORT) SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,3,0);
    30703108                else SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_SETCURSEL,0,0);
    30713109
     
    30803118                SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_ADDSTRING,0,(long)STRING_LEFT);
    30813119
    3082                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,1,0);
     3120                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,1,0);
    30833121                else SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_SETCURSEL,0,0);
    30843122
     
    30953133                SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_ADDSTRING,0,(long)STRING_SORT_DESCENDING);
    30963134
    3097                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SORTASCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,1,0);
    3098                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SORTDESCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,2,0);
     3135                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SORTASCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,1,0);
     3136                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SORTDESCENDING) SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,2,0);
    30993137                else SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_SETCURSEL,0,0);
    31003138
    3101                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SINGLESEL) SendDlgItemMessage(hwnd,IDC_LVS_SINGLESEL,BM_SETCHECK,BST_CHECKED,0);
    3102                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_AUTOARRANGE) SendDlgItemMessage(hwnd,IDC_LVS_AUTOARRANGE,BM_SETCHECK,BST_CHECKED,0);
    3103                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_NOLABELWRAP) SendDlgItemMessage(hwnd,IDC_LVS_NOLABELWRAP,BM_SETCHECK,BST_CHECKED,0);
    3104                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_LVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0);
    3105                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_LVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0);
    3106                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_NOCOLUMNHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOCOLUMNHEADER,BM_SETCHECK,BST_CHECKED,0);
    3107                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_NOSORTHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOSORTHEADER,BM_SETCHECK,BST_CHECKED,0);
    3108                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_LVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0);
    3109                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LVS_OWNERDRAWFIXED,BM_SETCHECK,BST_CHECKED,0);
    3110                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LVS_SHAREIMAGELISTS) SendDlgItemMessage(hwnd,IDC_LVS_SHAREIMAGELISTS,BM_SETCHECK,BST_CHECKED,0);
     3139                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SINGLESEL) SendDlgItemMessage(hwnd,IDC_LVS_SINGLESEL,BM_SETCHECK,BST_CHECKED,0);
     3140                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_AUTOARRANGE) SendDlgItemMessage(hwnd,IDC_LVS_AUTOARRANGE,BM_SETCHECK,BST_CHECKED,0);
     3141                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOLABELWRAP) SendDlgItemMessage(hwnd,IDC_LVS_NOLABELWRAP,BM_SETCHECK,BST_CHECKED,0);
     3142                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_LVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0);
     3143                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_LVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0);
     3144                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOCOLUMNHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOCOLUMNHEADER,BM_SETCHECK,BST_CHECKED,0);
     3145                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_NOSORTHEADER) SendDlgItemMessage(hwnd,IDC_LVS_NOSORTHEADER,BM_SETCHECK,BST_CHECKED,0);
     3146                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_LVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0);
     3147                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LVS_OWNERDRAWFIXED,BM_SETCHECK,BST_CHECKED,0);
     3148                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LVS_SHAREIMAGELISTS) SendDlgItemMessage(hwnd,IDC_LVS_SHAREIMAGELISTS,BM_SETCHECK,BST_CHECKED,0);
    31113149
    31123150
     
    31193157                if(i==-1) return 1;
    31203158                i2=GetWndInfoNum(MdiInfo[i].path);
    3121                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     3159                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    31223160
    31233161                //共通スタイル
     
    31303168                        if(HIWORD(wParam)==CBN_SELCHANGE){
    31313169                            //変更情報
    3132                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3170                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    31333171
    31343172                            i3=SendDlgItemMessage(hwnd,IDC_LVS_VIEW,CB_GETCURSEL,0,0);
    3135                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(LVS_SMALLICON|LVS_LIST|LVS_REPORT);
    3136                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SMALLICON;
    3137                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_LIST;
    3138                             else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_REPORT;
     3173                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SMALLICON|LVS_LIST|LVS_REPORT );
     3174                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SMALLICON );
     3175                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_LIST );
     3176                            else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_REPORT );
    31393177                            DrawRadWindow(i,pWindowInfo);
    31403178                            return 1;
     
    31443182                        if(HIWORD(wParam)==CBN_SELCHANGE){
    31453183                            //変更情報
    3146                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3184                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    31473185
    31483186                            i3=SendDlgItemMessage(hwnd,IDC_LVS_POSITION,CB_GETCURSEL,0,0);
    3149                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(LVS_ALIGNLEFT);
    3150                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_ALIGNLEFT;
     3187                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_ALIGNLEFT );
     3188                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_ALIGNLEFT );
    31513189                            return 1;
    31523190                        }
     
    31553193                        if(HIWORD(wParam)==CBN_SELCHANGE){
    31563194                            //変更情報
    3157                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3195                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    31583196
    31593197                            i3=SendDlgItemMessage(hwnd,IDC_LVS_SORT,CB_GETCURSEL,0,0);
    3160                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(LVS_SORTASCENDING|LVS_SORTDESCENDING);
    3161                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SORTASCENDING;
    3162                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SORTDESCENDING;
     3198                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SORTASCENDING|LVS_SORTDESCENDING );
     3199                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SORTASCENDING );
     3200                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SORTDESCENDING );
    31633201                            return 1;
    31643202                        }
     
    31683206                        if(HIWORD(wParam)==BN_CLICKED){
    31693207                            //変更情報
    3170                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3208                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    31713209
    31723210                            if(SendDlgItemMessage(hwnd,IDC_LVS_SINGLESEL,BM_GETCHECK,0,0))
    3173                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SINGLESEL;
    3174                             else
    3175                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_SINGLESEL;
     3211                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SINGLESEL );
     3212                            else
     3213                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SINGLESEL );
    31763214                            return 1;
    31773215                        }
     
    31803218                        if(HIWORD(wParam)==BN_CLICKED){
    31813219                            //変更情報
    3182                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3220                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    31833221
    31843222                            if(SendDlgItemMessage(hwnd,IDC_LVS_AUTOARRANGE,BM_GETCHECK,0,0))
    3185                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_AUTOARRANGE;
    3186                             else
    3187                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_AUTOARRANGE;
     3223                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_AUTOARRANGE );
     3224                            else
     3225                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_AUTOARRANGE );
    31883226                            return 1;
    31893227                        }
     
    31923230                        if(HIWORD(wParam)==BN_CLICKED){
    31933231                            //変更情報
    3194                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3232                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    31953233
    31963234                            if(SendDlgItemMessage(hwnd,IDC_LVS_NOLABELWRAP,BM_GETCHECK,0,0))
    3197                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_NOLABELWRAP;
    3198                             else
    3199                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_NOLABELWRAP;
     3235                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOLABELWRAP );
     3236                            else
     3237                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOLABELWRAP );
    32003238                            return 1;
    32013239                        }
     
    32043242                        if(HIWORD(wParam)==BN_CLICKED){
    32053243                            //変更情報
    3206                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3244                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    32073245
    32083246                            if(SendDlgItemMessage(hwnd,IDC_LVS_EDITLABELS,BM_GETCHECK,0,0))
    3209                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_EDITLABELS;
    3210                             else
    3211                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_EDITLABELS;
     3247                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_EDITLABELS );
     3248                            else
     3249                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_EDITLABELS );
    32123250                            return 1;
    32133251                        }
     
    32163254                        if(HIWORD(wParam)==BN_CLICKED){
    32173255                            //変更情報
    3218                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3256                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    32193257
    32203258                            if(SendDlgItemMessage(hwnd,IDC_LVS_NOSCROLL,BM_GETCHECK,0,0))
    3221                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_NOSCROLL;
    3222                             else
    3223                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_NOSCROLL;
     3259                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOSCROLL );
     3260                            else
     3261                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOSCROLL );
    32243262                            DrawRadWindow(i,pWindowInfo);
    32253263                            return 1;
     
    32293267                        if(HIWORD(wParam)==BN_CLICKED){
    32303268                            //変更情報
    3231                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3269                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    32323270
    32333271                            if(SendDlgItemMessage(hwnd,IDC_LVS_NOCOLUMNHEADER,BM_GETCHECK,0,0))
    3234                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_NOCOLUMNHEADER;
    3235                             else
    3236                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_NOCOLUMNHEADER;
     3272                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOCOLUMNHEADER );
     3273                            else
     3274                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOCOLUMNHEADER );
    32373275                            return 1;
    32383276                        }
     
    32413279                        if(HIWORD(wParam)==BN_CLICKED){
    32423280                            //変更情報
    3243                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3281                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    32443282
    32453283                            if(SendDlgItemMessage(hwnd,IDC_LVS_NOSORTHEADER,BM_GETCHECK,0,0))
    3246                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_NOSORTHEADER;
    3247                             else
    3248                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_NOSORTHEADER;
     3284                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_NOSORTHEADER );
     3285                            else
     3286                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_NOSORTHEADER );
    32493287                            return 1;
    32503288                        }
     
    32533291                        if(HIWORD(wParam)==BN_CLICKED){
    32543292                            //変更情報
    3255                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3293                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    32563294
    32573295                            if(SendDlgItemMessage(hwnd,IDC_LVS_SHOWSELALWAYS,BM_GETCHECK,0,0))
    3258                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SHOWSELALWAYS;
    3259                             else
    3260                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_SHOWSELALWAYS;
     3296                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SHOWSELALWAYS );
     3297                            else
     3298                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SHOWSELALWAYS );
    32613299                            return 1;
    32623300                        }
     
    32653303                        if(HIWORD(wParam)==BN_CLICKED){
    32663304                            //変更情報
    3267                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3305                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    32683306
    32693307                            if(SendDlgItemMessage(hwnd,IDC_LVS_OWNERDRAWFIXED,BM_GETCHECK,0,0))
    3270                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_OWNERDRAWFIXED;
    3271                             else
    3272                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_OWNERDRAWFIXED;
     3308                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_OWNERDRAWFIXED );
     3309                            else
     3310                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_OWNERDRAWFIXED );
    32733311                            return 1;
    32743312                        }
     
    32773315                        if(HIWORD(wParam)==BN_CLICKED){
    32783316                            //変更情報
    3279                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3317                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    32803318
    32813319                            if(SendDlgItemMessage(hwnd,IDC_LVS_SHAREIMAGELISTS,BM_GETCHECK,0,0))
    3282                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LVS_SHAREIMAGELISTS;
    3283                             else
    3284                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LVS_SHAREIMAGELISTS;
     3320                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LVS_SHAREIMAGELISTS );
     3321                            else
     3322                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LVS_SHAREIMAGELISTS );
    32853323                            return 1;
    32863324                        }
     
    33293367                bInitial=1;
    33303368                i=GetWndNum(GetParent(GetParent(hwnd)));
    3331                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    3332 
    3333                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
     3369                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     3370
     3371                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    33343372
    33353373
     
    33383376                ////////////
    33393377
    3340                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    3341                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    3342                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    3343                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     3378                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     3379                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     3380                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     3381                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    33443382
    33453383                ////////
     
    33563394                SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_ADDSTRING,0,(long)STRING_NONE_);
    33573395
    3358                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_MULTIPLESEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,1,0);
    3359                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_EXTENDEDSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,2,0);
    3360                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_NOSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,3,0);
     3396                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_MULTIPLESEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,1,0);
     3397                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_EXTENDEDSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,2,0);
     3398                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_NOSEL) SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,3,0);
    33613399                else SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_SETCURSEL,0,0);
    33623400
     
    33733411                SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_ADDSTRING,0,(long)STRING_OWNERDRAW_VARIABLE);
    33743412
    3375                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,1,0);
    3376                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,2,0);
     3413                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_OWNERDRAWFIXED) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,1,0);
     3414                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_OWNERDRAWVARIABLE) SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,2,0);
    33773415                else SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_SETCURSEL,0,0);
    33783416
    3379                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_LBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0);
    3380                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_SORT) SendDlgItemMessage(hwnd,IDC_LBS_SORT,BM_SETCHECK,BST_CHECKED,0);
    3381                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_NOTIFY) SendDlgItemMessage(hwnd,IDC_LBS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
    3382                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_MULTICOLUMN) SendDlgItemMessage(hwnd,IDC_LBS_MULTICOLUMN,BM_SETCHECK,BST_CHECKED,0);
    3383                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0);
    3384                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);
    3385                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_LBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0);
    3386                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_NOREDRAW) SendDlgItemMessage(hwnd,IDC_LBS_NOREDRAW,BM_SETCHECK,BST_CHECKED,0);
    3387                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_USETABSTOPS) SendDlgItemMessage(hwnd,IDC_LBS_USETABSTOPS,BM_SETCHECK,BST_CHECKED,0);
    3388                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&LBS_WANTKEYBOARDINPUT) SendDlgItemMessage(hwnd,IDC_LBS_WANTKEYBOARDINPUT,BM_SETCHECK,BST_CHECKED,0);
    3389 
    3390                 RadProperty_ListBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3417                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_HASSTRINGS) SendDlgItemMessage(hwnd,IDC_LBS_HASSTRINGS,BM_SETCHECK,BST_CHECKED,0);
     3418                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_SORT) SendDlgItemMessage(hwnd,IDC_LBS_SORT,BM_SETCHECK,BST_CHECKED,0);
     3419                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_NOTIFY) SendDlgItemMessage(hwnd,IDC_LBS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
     3420                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_MULTICOLUMN) SendDlgItemMessage(hwnd,IDC_LBS_MULTICOLUMN,BM_SETCHECK,BST_CHECKED,0);
     3421                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_HSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_SETCHECK,BST_CHECKED,0);
     3422                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VSCROLL) SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_SETCHECK,BST_CHECKED,0);
     3423                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_DISABLENOSCROLL) SendDlgItemMessage(hwnd,IDC_LBS_DISABLENOSCROLL,BM_SETCHECK,BST_CHECKED,0);
     3424                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_NOREDRAW) SendDlgItemMessage(hwnd,IDC_LBS_NOREDRAW,BM_SETCHECK,BST_CHECKED,0);
     3425                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_USETABSTOPS) SendDlgItemMessage(hwnd,IDC_LBS_USETABSTOPS,BM_SETCHECK,BST_CHECKED,0);
     3426                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&LBS_WANTKEYBOARDINPUT) SendDlgItemMessage(hwnd,IDC_LBS_WANTKEYBOARDINPUT,BM_SETCHECK,BST_CHECKED,0);
     3427
     3428                DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle();
     3429                RadProperty_ListBox_StylingOrder(hwnd,&tempStyle);
     3430                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );
    33913431
    33923432
     
    33993439                if(i==-1) return 1;
    34003440                i2=GetWndInfoNum(MdiInfo[i].path);
    3401                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     3441                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    34023442
    34033443                //共通スタイル
     
    34103450                        if(HIWORD(wParam)==CBN_SELCHANGE){
    34113451                            //変更情報
    3412                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3452                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    34133453
    34143454                            i3=SendDlgItemMessage(hwnd,IDC_LBS_SELECT,CB_GETCURSEL,0,0);
    3415                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(LBS_MULTIPLESEL|LBS_EXTENDEDSEL|LBS_NOSEL);
    3416                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_MULTIPLESEL;
    3417                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_EXTENDEDSEL;
    3418                             else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_NOSEL;
     3455                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_MULTIPLESEL|LBS_EXTENDEDSEL|LBS_NOSEL );
     3456                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_MULTIPLESEL );
     3457                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_EXTENDEDSEL );
     3458                            else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_NOSEL );
    34193459                            return 1;
    34203460                        }
     
    34233463                        if(HIWORD(wParam)==CBN_SELCHANGE){
    34243464                            //変更情報
    3425                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3465                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    34263466
    34273467                            i3=SendDlgItemMessage(hwnd,IDC_LBS_OWNERDRAW,CB_GETCURSEL,0,0);
    3428                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(LBS_OWNERDRAWFIXED|LBS_OWNERDRAWVARIABLE);
    3429                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_OWNERDRAWFIXED;
    3430                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_OWNERDRAWVARIABLE;
    3431 
    3432                             RadProperty_ListBox_StylingOrder(hwnd,&pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3468                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_OWNERDRAWFIXED|LBS_OWNERDRAWVARIABLE );
     3469                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_OWNERDRAWFIXED );
     3470                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_OWNERDRAWVARIABLE );
     3471
     3472                            DWORD tempStyle = pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle();
     3473                            RadProperty_ListBox_StylingOrder(hwnd,&tempStyle);
     3474                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->SetStyle( tempStyle );
    34333475                            return 1;
    34343476                        }
     
    34383480                        if(HIWORD(wParam)==BN_CLICKED){
    34393481                            //変更情報
    3440                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3482                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    34413483
    34423484                            if(SendDlgItemMessage(hwnd,IDC_LBS_HASSTRINGS,BM_GETCHECK,0,0))
    3443                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_HASSTRINGS;
    3444                             else
    3445                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_HASSTRINGS;
     3485                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_HASSTRINGS );
     3486                            else
     3487                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_HASSTRINGS );
    34463488                            return 1;
    34473489                        }
     
    34503492                        if(HIWORD(wParam)==BN_CLICKED){
    34513493                            //変更情報
    3452                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3494                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    34533495
    34543496                            if(SendDlgItemMessage(hwnd,IDC_LBS_SORT,BM_GETCHECK,0,0))
    3455                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_SORT;
    3456                             else
    3457                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_SORT;
     3497                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_SORT );
     3498                            else
     3499                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_SORT );
    34583500                            return 1;
    34593501                        }
     
    34623504                        if(HIWORD(wParam)==BN_CLICKED){
    34633505                            //変更情報
    3464                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3506                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    34653507
    34663508                            if(SendDlgItemMessage(hwnd,IDC_LBS_NOTIFY,BM_GETCHECK,0,0))
    3467                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_NOTIFY;
    3468                             else
    3469                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_NOTIFY;
     3509                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_NOTIFY );
     3510                            else
     3511                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_NOTIFY );
    34703512                            return 1;
    34713513                        }
     
    34743516                        if(HIWORD(wParam)==BN_CLICKED){
    34753517                            //変更情報
    3476                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3518                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    34773519
    34783520                            if(SendDlgItemMessage(hwnd,IDC_LBS_MULTICOLUMN,BM_GETCHECK,0,0))
    3479                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_MULTICOLUMN;
    3480                             else
    3481                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_MULTICOLUMN;
     3521                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_MULTICOLUMN );
     3522                            else
     3523                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_MULTICOLUMN );
    34823524                            return 1;
    34833525                        }
     
    34863528                        if(HIWORD(wParam)==BN_CLICKED){
    34873529                            //変更情報
    3488                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3530                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    34893531
    34903532                            if(SendDlgItemMessage(hwnd,IDC_STYLE_HSCROLL,BM_GETCHECK,0,0))
    3491                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=WS_HSCROLL;
    3492                             else
    3493                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~WS_HSCROLL;
     3533                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( WS_HSCROLL );
     3534                            else
     3535                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_HSCROLL );
    34943536                            DrawRadWindow(i,pWindowInfo);
    34953537                            return 1;
     
    34993541                        if(HIWORD(wParam)==BN_CLICKED){
    35003542                            //変更情報
    3501                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3543                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    35023544
    35033545                            if(SendDlgItemMessage(hwnd,IDC_STYLE_VSCROLL,BM_GETCHECK,0,0))
    3504                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=WS_VSCROLL;
    3505                             else
    3506                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~WS_VSCROLL;
     3546                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( WS_VSCROLL );
     3547                            else
     3548                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( WS_VSCROLL );
    35073549                            DrawRadWindow(i,pWindowInfo);
    35083550                            return 1;
     
    35123554                        if(HIWORD(wParam)==BN_CLICKED){
    35133555                            //変更情報
    3514                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3556                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    35153557
    35163558                            if(SendDlgItemMessage(hwnd,IDC_LBS_DISABLENOSCROLL,BM_GETCHECK,0,0))
    3517                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_DISABLENOSCROLL;
    3518                             else
    3519                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_DISABLENOSCROLL;
     3559                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_DISABLENOSCROLL );
     3560                            else
     3561                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_DISABLENOSCROLL );
    35203562                            DrawRadWindow(i,pWindowInfo);
    35213563                            return 1;
     
    35253567                        if(HIWORD(wParam)==BN_CLICKED){
    35263568                            //変更情報
    3527                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3569                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    35283570
    35293571                            if(SendDlgItemMessage(hwnd,IDC_LBS_NOREDRAW,BM_GETCHECK,0,0))
    3530                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_NOREDRAW;
    3531                             else
    3532                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_NOREDRAW;
     3572                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_NOREDRAW );
     3573                            else
     3574                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_NOREDRAW );
    35333575                            return 1;
    35343576                        }
     
    35373579                        if(HIWORD(wParam)==BN_CLICKED){
    35383580                            //変更情報
    3539                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3581                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    35403582
    35413583                            if(SendDlgItemMessage(hwnd,IDC_LBS_USETABSTOPS,BM_GETCHECK,0,0))
    3542                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_USETABSTOPS;
    3543                             else
    3544                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_USETABSTOPS;
     3584                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_USETABSTOPS );
     3585                            else
     3586                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_USETABSTOPS );
    35453587                            return 1;
    35463588                        }
     
    35493591                        if(HIWORD(wParam)==BN_CLICKED){
    35503592                            //変更情報
    3551                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3593                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    35523594
    35533595                            if(SendDlgItemMessage(hwnd,IDC_LBS_WANTKEYBOARDINPUT,BM_GETCHECK,0,0))
    3554                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=LBS_WANTKEYBOARDINPUT;
    3555                             else
    3556                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~LBS_WANTKEYBOARDINPUT;
     3596                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( LBS_WANTKEYBOARDINPUT );
     3597                            else
     3598                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( LBS_WANTKEYBOARDINPUT );
    35573599                            return 1;
    35583600                        }
     
    35833625                bInitial=1;
    35843626                i=GetWndNum(GetParent(GetParent(hwnd)));
    3585                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    3586 
    3587                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
    3588                 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption);
     3627                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     3628
     3629                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
     3630                SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());
    35893631
    35903632
     
    35923634                //スタイル
    35933635
    3594                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    3595                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    3596                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    3597                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    3598 
    3599                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&PBS_VERTICAL) SendDlgItemMessage(hwnd,IDC_PBS_VERTICAL,BM_SETCHECK,BST_CHECKED,0);
    3600                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&PBS_SMOOTH) SendDlgItemMessage(hwnd,IDC_PBS_SMOOTH,BM_SETCHECK,BST_CHECKED,0);
     3636                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     3637                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     3638                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     3639                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     3640
     3641                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&PBS_VERTICAL) SendDlgItemMessage(hwnd,IDC_PBS_VERTICAL,BM_SETCHECK,BST_CHECKED,0);
     3642                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&PBS_SMOOTH) SendDlgItemMessage(hwnd,IDC_PBS_SMOOTH,BM_SETCHECK,BST_CHECKED,0);
    36013643
    36023644
     
    36093651                if(i==-1) return 1;
    36103652                i2=GetWndInfoNum(MdiInfo[i].path);
    3611                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     3653                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    36123654
    36133655                //共通スタイル
     
    36203662                        if(HIWORD(wParam)==BN_CLICKED){
    36213663                            //変更情報
    3622                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3664                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    36233665
    36243666                            if(SendDlgItemMessage(hwnd,IDC_PBS_VERTICAL,BM_GETCHECK,0,0))
    3625                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=PBS_VERTICAL;
    3626                             else
    3627                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~PBS_VERTICAL;
     3667                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( PBS_VERTICAL );
     3668                            else
     3669                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( PBS_VERTICAL );
    36283670                            DrawRadWindow(i,pWindowInfo);
    36293671                            return 1;
     
    36333675                        if(HIWORD(wParam)==BN_CLICKED){
    36343676                            //変更情報
    3635                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3677                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    36363678
    36373679                            if(SendDlgItemMessage(hwnd,IDC_PBS_SMOOTH,BM_GETCHECK,0,0))
    3638                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=PBS_SMOOTH;
    3639                             else
    3640                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~PBS_SMOOTH;
     3680                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( PBS_SMOOTH );
     3681                            else
     3682                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( PBS_SMOOTH );
    36413683                            DrawRadWindow(i,pWindowInfo);
    36423684                            return 1;
     
    36683710                bInitial=1;
    36693711                i=GetWndNum(GetParent(GetParent(hwnd)));
    3670                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    3671 
    3672                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
    3673                 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption);
     3712                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     3713
     3714                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
     3715                SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());
    36743716
    36753717
     
    36783720                ////////////
    36793721
    3680                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    3681                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    3682                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    3683                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    3684 
    3685                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_AUTORADIOBUTTON)==BS_AUTORADIOBUTTON) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0);
    3686                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0);
    3687                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0);
    3688                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);
    3689                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);
    3690                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);
    3691                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
     3722                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     3723                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     3724                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     3725                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     3726
     3727                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_AUTORADIOBUTTON)==BS_AUTORADIOBUTTON) SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_SETCHECK,BST_CHECKED,0);
     3728                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_PUSHLIKE) SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_SETCHECK,BST_CHECKED,0);
     3729                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFTTEXT) SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_SETCHECK,BST_CHECKED,0);
     3730                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_ICON) SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_CHECKED,0);
     3731                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BITMAP) SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_CHECKED,0);
     3732                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_MULTILINE) SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_SETCHECK,BST_CHECKED,0);
     3733                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_NOTIFY) SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
    36923734
    36933735
     
    37063748
    37073749                //ビットを考慮してBS_CENTERを最初に比較する
    3708                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);
    3709                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);
    3710                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);
     3750                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_CENTER)==BS_CENTER) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,3,0);
     3751                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_LEFT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,1,0);
     3752                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_RIGHT) SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,2,0);
    37113753                else SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_SETCURSEL,0,0);
    37123754
     
    37263768
    37273769                //ビットを考慮してBS_VCENTERを最初に比較する
    3728                 if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);
    3729                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);
    3730                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);
     3770                if((pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_VCENTER)==BS_VCENTER) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,3,0);
     3771                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_TOP) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,1,0);
     3772                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&BS_BOTTOM) SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,2,0);
    37313773                else SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_SETCURSEL,0,0);
    37323774
     
    37403782                if(i==-1) return 1;
    37413783                i2=GetWndInfoNum(MdiInfo[i].path);
    3742                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     3784                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    37433785
    37443786                //共通スタイル
     
    37513793                        if(HIWORD(wParam)==BN_CLICKED){
    37523794                            //変更情報
    3753                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3795                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    37543796
    37553797                            if(SendDlgItemMessage(hwnd,IDC_BS_AUTO,BM_GETCHECK,0,0)){
    3756                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0;
    3757                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_AUTORADIOBUTTON;
     3798                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );
     3799                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_AUTORADIOBUTTON );
    37583800                            }
    37593801                            else{
    3760                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=0xFFFFFFF0;
    3761                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_RADIOBUTTON;
     3802                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AndStyle( 0xFFFFFFF0 );
     3803                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RADIOBUTTON );
    37623804                            }
    37633805                            return 1;
     
    37673809                        if(HIWORD(wParam)==BN_CLICKED){
    37683810                            //変更情報
    3769                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3811                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    37703812
    37713813                            if(SendDlgItemMessage(hwnd,IDC_BS_PUSHLIKE,BM_GETCHECK,0,0))
    3772                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_PUSHLIKE;
    3773                             else
    3774                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_PUSHLIKE;
     3814                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_PUSHLIKE );
     3815                            else
     3816                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_PUSHLIKE );
    37753817                            DrawRadWindow(i,pWindowInfo);
    37763818                            return 1;
     
    37803822                        if(HIWORD(wParam)==BN_CLICKED){
    37813823                            //変更情報
    3782                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3824                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    37833825
    37843826                            if(SendDlgItemMessage(hwnd,IDC_BS_LEFTTEXT,BM_GETCHECK,0,0))
    3785                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFTTEXT;
    3786                             else
    3787                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_LEFTTEXT;
     3827                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFTTEXT );
     3828                            else
     3829                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFTTEXT );
    37883830                            DrawRadWindow(i,pWindowInfo);
    37893831                            return 1;
     
    37933835                        if(HIWORD(wParam)==BN_CLICKED){
    37943836                            //変更情報
    3795                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3837                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    37963838
    37973839                            if(SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_GETCHECK,0,0)){
    3798                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_ICON;
    3799                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP;
     3840                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_ICON );
     3841                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );
    38003842                                SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_SETCHECK,BST_UNCHECKED,0);
    38013843                            }
    38023844                            else
    3803                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON;
     3845                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );
    38043846                            DrawRadWindow(i,pWindowInfo);
    38053847                            return 1;
     
    38093851                        if(HIWORD(wParam)==BN_CLICKED){
    38103852                            //変更情報
    3811                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3853                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    38123854
    38133855                            if(SendDlgItemMessage(hwnd,IDC_BS_BITMAP,BM_GETCHECK,0,0)){
    3814                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BITMAP;
    3815                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_ICON;
     3856                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BITMAP );
     3857                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_ICON );
    38163858                                SendDlgItemMessage(hwnd,IDC_BS_ICON,BM_SETCHECK,BST_UNCHECKED,0);
    38173859                            }
    38183860                            else
    3819                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_BITMAP;
     3861                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_BITMAP );
    38203862                            DrawRadWindow(i,pWindowInfo);
    38213863                            return 1;
     
    38253867                        if(HIWORD(wParam)==BN_CLICKED){
    38263868                            //変更情報
    3827                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3869                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    38283870
    38293871                            if(SendDlgItemMessage(hwnd,IDC_BS_MULTILINE,BM_GETCHECK,0,0))
    3830                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_MULTILINE;
    3831                             else
    3832                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_MULTILINE;
     3872                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_MULTILINE );
     3873                            else
     3874                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_MULTILINE );
    38333875                            DrawRadWindow(i,pWindowInfo);
    38343876                            return 1;
     
    38383880                        if(HIWORD(wParam)==BN_CLICKED){
    38393881                            //変更情報
    3840                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3882                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    38413883
    38423884                            if(SendDlgItemMessage(hwnd,IDC_BS_NOTIFY,BM_GETCHECK,0,0))
    3843                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_NOTIFY;
    3844                             else
    3845                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~BS_NOTIFY;
     3885                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_NOTIFY );
     3886                            else
     3887                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_NOTIFY );
    38463888                            return 1;
    38473889                        }
     
    38513893                        if(HIWORD(wParam)==CBN_SELCHANGE){
    38523894                            //変更情報
    3853                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3895                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    38543896
    38553897                            i3=SendDlgItemMessage(hwnd,IDC_BS_HPOS,CB_GETCURSEL,0,0);
    3856                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_LEFT|BS_RIGHT|BS_CENTER);
    3857                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_LEFT;
    3858                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_RIGHT;
    3859                             else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_CENTER;
     3898                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_LEFT|BS_RIGHT|BS_CENTER );
     3899                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_LEFT );
     3900                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_RIGHT );
     3901                            else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_CENTER );
    38603902                            DrawRadWindow(i,pWindowInfo);
    38613903                            return 1;
     
    38653907                        if(HIWORD(wParam)==CBN_SELCHANGE){
    38663908                            //変更情報
    3867                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3909                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    38683910
    38693911                            i3=SendDlgItemMessage(hwnd,IDC_BS_VPOS,CB_GETCURSEL,0,0);
    3870                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(BS_TOP|BS_BOTTOM|BS_VCENTER);
    3871                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_TOP;
    3872                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_BOTTOM;
    3873                             else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=BS_VCENTER;
     3912                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( BS_TOP|BS_BOTTOM|BS_VCENTER );
     3913                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_TOP );
     3914                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_BOTTOM );
     3915                            else if(i3==3) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( BS_VCENTER );
    38743916                            DrawRadWindow(i,pWindowInfo);
    38753917                            return 1;
     
    39023944                bInitial=1;
    39033945                i=GetWndNum(GetParent(GetParent(hwnd)));
    3904                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    3905 
    3906                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
     3946                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     3947
     3948                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    39073949
    39083950
     
    39113953                ////////////
    39123954
    3913                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    3914                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    3915                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    3916                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     3955                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     3956                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     3957                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     3958                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    39173959
    39183960
     
    39283970                SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_ADDSTRING,0,(long)STRING_SCROLLBARPROP_STYLE_BOTTOMORRIGHT);
    39293971
    3930                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SBS_TOPALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,1,0);
    3931                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SBS_BOTTOMALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,2,0);
     3972                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&SBS_TOPALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,1,0);
     3973                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&SBS_BOTTOMALIGN) SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,2,0);
    39323974                else SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_SETCURSEL,0,0);
    39333975
     
    39413983                if(i==-1) return 1;
    39423984                i2=GetWndInfoNum(MdiInfo[i].path);
    3943                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     3985                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    39443986
    39453987                //共通スタイル
     
    39523994                        if(HIWORD(wParam)==CBN_SELCHANGE){
    39533995                            //変更情報
    3954                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     3996                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    39553997
    39563998                            i3=SendDlgItemMessage(hwnd,IDC_SBS_POSITION,CB_GETCURSEL,0,0);
    3957                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(SBS_TOPALIGN|SBS_BOTTOMALIGN);
    3958                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SBS_TOPALIGN;
    3959                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SBS_BOTTOMALIGN;
     3999                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( SBS_TOPALIGN|SBS_BOTTOMALIGN );
     4000                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SBS_TOPALIGN );
     4001                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SBS_BOTTOMALIGN );
    39604002                            return 1;
    39614003                        }
     
    39874029                bInitial=1;
    39884030                i=GetWndNum(GetParent(GetParent(hwnd)));
    3989                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    3990 
    3991                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
    3992                 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption);
     4031                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     4032
     4033                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
     4034                SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());
    39934035
    39944036
     
    39974039                ////////////
    39984040
    3999                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    4000                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    4001                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    4002                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    4003 
    4004                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_NOPREFIX) SendDlgItemMessage(hwnd,IDC_SS_NOPREFIX,BM_SETCHECK,BST_CHECKED,0);
    4005                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_LEFTNOWORDWRAP) SendDlgItemMessage(hwnd,IDC_SS_LEFTNOWORDWRAP,BM_SETCHECK,BST_CHECKED,0);
    4006                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
     4041                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     4042                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     4043                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     4044                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     4045
     4046                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_NOPREFIX) SendDlgItemMessage(hwnd,IDC_SS_NOPREFIX,BM_SETCHECK,BST_CHECKED,0);
     4047                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_LEFTNOWORDWRAP) SendDlgItemMessage(hwnd,IDC_SS_LEFTNOWORDWRAP,BM_SETCHECK,BST_CHECKED,0);
     4048                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_NOTIFY) SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_SETCHECK,BST_CHECKED,0);
    40074049
    40084050
     
    40194061
    40204062                //ビットを考慮してSS_LEFTを最後に検討する
    4021                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_CENTER) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,1,0);
    4022                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&SS_RIGHT) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,2,0);
     4063                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_CENTER) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,1,0);
     4064                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&SS_RIGHT) SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,2,0);
    40234065                else SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_SETCURSEL,0,0);
    40244066
     
    40324074                if(i==-1) return 1;
    40334075                i2=GetWndInfoNum(MdiInfo[i].path);
    4034                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     4076                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    40354077
    40364078                //共通スタイル
     
    40434085                        if(HIWORD(wParam)==BN_CLICKED){
    40444086                            //変更情報
    4045                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4087                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    40464088
    40474089                            if(SendDlgItemMessage(hwnd,IDC_SS_NOPREFIX,BM_GETCHECK,0,0))
    4048                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_NOPREFIX;
    4049                             else
    4050                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_NOPREFIX;
     4090                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_NOPREFIX );
     4091                            else
     4092                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_NOPREFIX );
    40514093                            return 1;
    40524094                        }
     
    40554097                        if(HIWORD(wParam)==BN_CLICKED){
    40564098                            //変更情報
    4057                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4099                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    40584100
    40594101                            if(SendDlgItemMessage(hwnd,IDC_SS_LEFTNOWORDWRAP,BM_GETCHECK,0,0))
    4060                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_LEFTNOWORDWRAP;
    4061                             else
    4062                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_LEFTNOWORDWRAP;
     4102                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_LEFTNOWORDWRAP );
     4103                            else
     4104                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_LEFTNOWORDWRAP );
    40634105
    40644106                            DrawRadWindow(i,pWindowInfo);
     
    40694111                        if(HIWORD(wParam)==BN_CLICKED){
    40704112                            //変更情報
    4071                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4113                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    40724114
    40734115                            if(SendDlgItemMessage(hwnd,IDC_SS_NOTIFY,BM_GETCHECK,0,0))
    4074                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_NOTIFY;
    4075                             else
    4076                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~SS_NOTIFY;
     4116                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_NOTIFY );
     4117                            else
     4118                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_NOTIFY );
    40774119                            return 1;
    40784120                        }
     
    40824124                        if(HIWORD(wParam)==CBN_SELCHANGE){
    40834125                            //変更情報
    4084                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4126                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    40854127
    40864128                            i3=SendDlgItemMessage(hwnd,IDC_SS_TEXTPOS,CB_GETCURSEL,0,0);
    40874129                            //SS_LEFT=0
    4088                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(SS_CENTER|SS_RIGHT);
    4089                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_CENTER;
    4090                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=SS_RIGHT;
     4130                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( SS_CENTER|SS_RIGHT );
     4131                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_CENTER );
     4132                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( SS_RIGHT );
    40914133                            DrawRadWindow(i,pWindowInfo);
    40924134                            return 1;
     
    41184160                bInitial=1;
    41194161                i=GetWndNum(GetParent(GetParent(hwnd)));
    4120                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    4121 
    4122                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
     4162                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     4163
     4164                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    41234165
    41244166
     
    41274169                ////////////
    41284170
    4129                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    4130                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    4131                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    4132                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     4171                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     4172                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     4173                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     4174                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    41334175
    41344176
     
    41424184                SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_ADDSTRING,0,(long)STRING_DIRECTION_VERTICAL);
    41434185
    4144                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_VERT) SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_SETCURSEL,1,0);
     4186                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_VERT) SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_SETCURSEL,1,0);
    41454187                else SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_SETCURSEL,0,0);
    41464188
     
    41574199                SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_ADDSTRING,0,(long)STRING_TRACKBARPROP_STYLE_POSITION_BOTTOMORRIGHT);
    41584200
    4159                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_BOTH) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,0,0);
    4160                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_TOP) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,1,0);
     4201                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_BOTH) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,0,0);
     4202                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_TOP) SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,1,0);
    41614203                else SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_SETCURSEL,2,0);
    41624204
    4163                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_NOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_NOTICKS,BM_SETCHECK,BST_CHECKED,0);
    4164                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_AUTOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_AUTOTICKS,BM_SETCHECK,BST_CHECKED,0);
    4165                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TBS_ENABLESELRANGE) SendDlgItemMessage(hwnd,IDC_TBS_ENABLESELRANGE,BM_SETCHECK,BST_CHECKED,0);
     4205                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_NOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_NOTICKS,BM_SETCHECK,BST_CHECKED,0);
     4206                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_AUTOTICKS) SendDlgItemMessage(hwnd,IDC_TBS_AUTOTICKS,BM_SETCHECK,BST_CHECKED,0);
     4207                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TBS_ENABLESELRANGE) SendDlgItemMessage(hwnd,IDC_TBS_ENABLESELRANGE,BM_SETCHECK,BST_CHECKED,0);
    41664208
    41674209
     
    41744216                if(i==-1) return 1;
    41754217                i2=GetWndInfoNum(MdiInfo[i].path);
    4176                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     4218                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    41774219
    41784220                //共通スタイル
     
    41854227                        if(HIWORD(wParam)==CBN_SELCHANGE){
    41864228                            //変更情報
    4187                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4229                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    41884230
    41894231                            i3=SendDlgItemMessage(hwnd,IDC_TBS_SITUATION,CB_GETCURSEL,0,0);
    4190                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TBS_VERT;
    4191                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_VERT;
     4232                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_VERT );
     4233                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_VERT );
    41924234                            DrawRadWindow(i,pWindowInfo);
    41934235                            return 1;
     
    41974239                        if(HIWORD(wParam)==CBN_SELCHANGE){
    41984240                            //変更情報
    4199                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4241                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    42004242
    42014243                            i3=SendDlgItemMessage(hwnd,IDC_TBS_POINT,CB_GETCURSEL,0,0);
    4202                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(TBS_BOTH|TBS_TOP);
    4203                             if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_BOTH;
    4204                             else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_TOP;
     4244                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_BOTH|TBS_TOP );
     4245                            if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_BOTH );
     4246                            else if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_TOP );
    42054247                            DrawRadWindow(i,pWindowInfo);
    42064248                            return 1;
     
    42114253                        if(HIWORD(wParam)==BN_CLICKED){
    42124254                            //変更情報
    4213                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4255                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    42144256
    42154257                            if(SendDlgItemMessage(hwnd,IDC_TBS_NOTICKS,BM_GETCHECK,0,0))
    4216                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_NOTICKS;
    4217                             else
    4218                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TBS_NOTICKS;
     4258                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_NOTICKS );
     4259                            else
     4260                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_NOTICKS );
    42194261                            DrawRadWindow(i,pWindowInfo);
    42204262                            return 1;
     
    42244266                        if(HIWORD(wParam)==BN_CLICKED){
    42254267                            //変更情報
    4226                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4268                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    42274269
    42284270                            if(SendDlgItemMessage(hwnd,IDC_TBS_AUTOTICKS,BM_GETCHECK,0,0))
    4229                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_AUTOTICKS;
    4230                             else
    4231                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TBS_AUTOTICKS;
     4271                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_AUTOTICKS );
     4272                            else
     4273                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_AUTOTICKS );
    42324274                            return 1;
    42334275                        }
     
    42364278                        if(HIWORD(wParam)==BN_CLICKED){
    42374279                            //変更情報
    4238                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4280                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    42394281
    42404282                            if(SendDlgItemMessage(hwnd,IDC_TBS_ENABLESELRANGE,BM_GETCHECK,0,0))
    4241                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TBS_ENABLESELRANGE;
    4242                             else
    4243                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TBS_ENABLESELRANGE;
     4283                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TBS_ENABLESELRANGE );
     4284                            else
     4285                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TBS_ENABLESELRANGE );
    42444286                            DrawRadWindow(i,pWindowInfo);
    42454287                            return 1;
     
    42714313                bInitial=1;
    42724314                i=GetWndNum(GetParent(GetParent(hwnd)));
    4273                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    4274 
    4275                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
     4315                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     4316
     4317                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    42764318
    42774319
     
    42794321                //スタイル
    42804322
    4281                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    4282                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    4283                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    4284                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    4285 
    4286                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_HASBUTTONS) SendDlgItemMessage(hwnd,IDC_TVS_HASBUTTONS,BM_SETCHECK,BST_CHECKED,0);
    4287                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_HASLINES) SendDlgItemMessage(hwnd,IDC_TVS_HASLINES,BM_SETCHECK,BST_CHECKED,0);
    4288                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_LINESATROOT) SendDlgItemMessage(hwnd,IDC_TVS_LINESATROOT,BM_SETCHECK,BST_CHECKED,0);
    4289                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_TVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0);
    4290                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_DISABLEDRAGDROP) SendDlgItemMessage(hwnd,IDC_TVS_DISABLEDRAGDROP,BM_SETCHECK,BST_CHECKED,0);
    4291                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_TVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0);
    4292                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_TVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0);
    4293                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_NOTOOLTIPS) SendDlgItemMessage(hwnd,IDC_TVS_NOTOOLTIPS,BM_SETCHECK,BST_CHECKED,0);
    4294                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_CHECKBOXES) SendDlgItemMessage(hwnd,IDC_TVS_CHECKBOXES,BM_SETCHECK,BST_CHECKED,0);
    4295                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_FULLROWSELECT) SendDlgItemMessage(hwnd,IDC_TVS_FULLROWSELECT,BM_SETCHECK,BST_CHECKED,0);
    4296                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_TRACKSELECT) SendDlgItemMessage(hwnd,IDC_TVS_TRACKSELECT,BM_SETCHECK,BST_CHECKED,0);
    4297                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&TVS_SINGLEEXPAND) SendDlgItemMessage(hwnd,IDC_TVS_SINGLEEXPAND,BM_SETCHECK,BST_CHECKED,0);
     4323                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     4324                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     4325                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     4326                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     4327
     4328                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_HASBUTTONS) SendDlgItemMessage(hwnd,IDC_TVS_HASBUTTONS,BM_SETCHECK,BST_CHECKED,0);
     4329                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_HASLINES) SendDlgItemMessage(hwnd,IDC_TVS_HASLINES,BM_SETCHECK,BST_CHECKED,0);
     4330                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_LINESATROOT) SendDlgItemMessage(hwnd,IDC_TVS_LINESATROOT,BM_SETCHECK,BST_CHECKED,0);
     4331                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_EDITLABELS) SendDlgItemMessage(hwnd,IDC_TVS_EDITLABELS,BM_SETCHECK,BST_CHECKED,0);
     4332                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_DISABLEDRAGDROP) SendDlgItemMessage(hwnd,IDC_TVS_DISABLEDRAGDROP,BM_SETCHECK,BST_CHECKED,0);
     4333                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_SHOWSELALWAYS) SendDlgItemMessage(hwnd,IDC_TVS_SHOWSELALWAYS,BM_SETCHECK,BST_CHECKED,0);
     4334                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_NOSCROLL) SendDlgItemMessage(hwnd,IDC_TVS_NOSCROLL,BM_SETCHECK,BST_CHECKED,0);
     4335                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_NOTOOLTIPS) SendDlgItemMessage(hwnd,IDC_TVS_NOTOOLTIPS,BM_SETCHECK,BST_CHECKED,0);
     4336                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_CHECKBOXES) SendDlgItemMessage(hwnd,IDC_TVS_CHECKBOXES,BM_SETCHECK,BST_CHECKED,0);
     4337                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_FULLROWSELECT) SendDlgItemMessage(hwnd,IDC_TVS_FULLROWSELECT,BM_SETCHECK,BST_CHECKED,0);
     4338                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_TRACKSELECT) SendDlgItemMessage(hwnd,IDC_TVS_TRACKSELECT,BM_SETCHECK,BST_CHECKED,0);
     4339                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&TVS_SINGLEEXPAND) SendDlgItemMessage(hwnd,IDC_TVS_SINGLEEXPAND,BM_SETCHECK,BST_CHECKED,0);
    42984340
    42994341
     
    43064348                if(i==-1) return 1;
    43074349                i2=GetWndInfoNum(MdiInfo[i].path);
    4308                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     4350                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    43094351
    43104352                //共通スタイル
     
    43174359                        if(HIWORD(wParam)==BN_CLICKED){
    43184360                            //変更情報
    4319                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4361                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    43204362
    43214363                            if(SendDlgItemMessage(hwnd,IDC_TVS_HASBUTTONS,BM_GETCHECK,0,0))
    4322                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_HASBUTTONS;
    4323                             else
    4324                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_HASBUTTONS;
     4364                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_HASBUTTONS );
     4365                            else
     4366                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_HASBUTTONS );
    43254367                            return 1;
    43264368                        }
     
    43294371                        if(HIWORD(wParam)==BN_CLICKED){
    43304372                            //変更情報
    4331                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4373                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    43324374
    43334375                            if(SendDlgItemMessage(hwnd,IDC_TVS_HASLINES,BM_GETCHECK,0,0))
    4334                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_HASLINES;
    4335                             else
    4336                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_HASLINES;
     4376                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_HASLINES );
     4377                            else
     4378                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_HASLINES );
    43374379                            return 1;
    43384380                        }
     
    43414383                        if(HIWORD(wParam)==BN_CLICKED){
    43424384                            //変更情報
    4343                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4385                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    43444386
    43454387                            if(SendDlgItemMessage(hwnd,IDC_TVS_LINESATROOT,BM_GETCHECK,0,0))
    4346                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_LINESATROOT;
    4347                             else
    4348                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_LINESATROOT;
     4388                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_LINESATROOT );
     4389                            else
     4390                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_LINESATROOT );
    43494391                            return 1;
    43504392                        }
     
    43534395                        if(HIWORD(wParam)==BN_CLICKED){
    43544396                            //変更情報
    4355                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4397                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    43564398
    43574399                            if(SendDlgItemMessage(hwnd,IDC_TVS_EDITLABELS,BM_GETCHECK,0,0))
    4358                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_EDITLABELS;
    4359                             else
    4360                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_EDITLABELS;
     4400                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_EDITLABELS );
     4401                            else
     4402                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_EDITLABELS );
    43614403                            return 1;
    43624404                        }
     
    43654407                        if(HIWORD(wParam)==BN_CLICKED){
    43664408                            //変更情報
    4367                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4409                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    43684410
    43694411                            if(SendDlgItemMessage(hwnd,IDC_TVS_DISABLEDRAGDROP,BM_GETCHECK,0,0))
    4370                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_DISABLEDRAGDROP;
    4371                             else
    4372                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_DISABLEDRAGDROP;
     4412                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_DISABLEDRAGDROP );
     4413                            else
     4414                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_DISABLEDRAGDROP );
    43734415                            return 1;
    43744416                        }
     
    43774419                        if(HIWORD(wParam)==BN_CLICKED){
    43784420                            //変更情報
    4379                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4421                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    43804422
    43814423                            if(SendDlgItemMessage(hwnd,IDC_TVS_SHOWSELALWAYS,BM_GETCHECK,0,0))
    4382                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_SHOWSELALWAYS;
    4383                             else
    4384                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_SHOWSELALWAYS;
     4424                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_SHOWSELALWAYS );
     4425                            else
     4426                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_SHOWSELALWAYS );
    43854427                            return 1;
    43864428                        }
     
    43894431                        if(HIWORD(wParam)==BN_CLICKED){
    43904432                            //変更情報
    4391                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4433                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    43924434
    43934435                            if(SendDlgItemMessage(hwnd,IDC_TVS_NOSCROLL,BM_GETCHECK,0,0))
    4394                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_NOSCROLL;
    4395                             else
    4396                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_NOSCROLL;
     4436                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_NOSCROLL );
     4437                            else
     4438                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_NOSCROLL );
    43974439                            return 1;
    43984440                        }
     
    44014443                        if(HIWORD(wParam)==BN_CLICKED){
    44024444                            //変更情報
    4403                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4445                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    44044446
    44054447                            if(SendDlgItemMessage(hwnd,IDC_TVS_NOTOOLTIPS,BM_GETCHECK,0,0))
    4406                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_NOTOOLTIPS;
    4407                             else
    4408                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_NOTOOLTIPS;
     4448                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_NOTOOLTIPS );
     4449                            else
     4450                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_NOTOOLTIPS );
    44094451                            return 1;
    44104452                        }
     
    44134455                        if(HIWORD(wParam)==BN_CLICKED){
    44144456                            //変更情報
    4415                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4457                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    44164458
    44174459                            if(SendDlgItemMessage(hwnd,IDC_TVS_CHECKBOXES,BM_GETCHECK,0,0))
    4418                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_CHECKBOXES;
    4419                             else
    4420                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_CHECKBOXES;
     4460                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_CHECKBOXES );
     4461                            else
     4462                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_CHECKBOXES );
    44214463                            return 1;
    44224464                        }
     
    44254467                        if(HIWORD(wParam)==BN_CLICKED){
    44264468                            //変更情報
    4427                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4469                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    44284470
    44294471                            if(SendDlgItemMessage(hwnd,IDC_TVS_FULLROWSELECT,BM_GETCHECK,0,0))
    4430                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_FULLROWSELECT;
    4431                             else
    4432                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_FULLROWSELECT;
     4472                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_FULLROWSELECT );
     4473                            else
     4474                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_FULLROWSELECT );
    44334475                            return 1;
    44344476                        }
     
    44374479                        if(HIWORD(wParam)==BN_CLICKED){
    44384480                            //変更情報
    4439                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4481                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    44404482
    44414483                            if(SendDlgItemMessage(hwnd,IDC_TVS_TRACKSELECT,BM_GETCHECK,0,0))
    4442                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_TRACKSELECT;
    4443                             else
    4444                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_TRACKSELECT;
     4484                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_TRACKSELECT );
     4485                            else
     4486                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_TRACKSELECT );
    44454487                            return 1;
    44464488                        }
     
    44494491                        if(HIWORD(wParam)==BN_CLICKED){
    44504492                            //変更情報
    4451                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4493                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    44524494
    44534495                            if(SendDlgItemMessage(hwnd,IDC_TVS_SINGLEEXPAND,BM_GETCHECK,0,0))
    4454                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=TVS_SINGLEEXPAND;
    4455                             else
    4456                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~TVS_SINGLEEXPAND;
     4496                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( TVS_SINGLEEXPAND );
     4497                            else
     4498                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( TVS_SINGLEEXPAND );
    44574499                            return 1;
    44584500                        }
     
    44834525                bInitial=1;
    44844526                i=GetWndNum(GetParent(GetParent(hwnd)));
    4485                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    4486 
    4487                 SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->IdName);
    4488                 SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->caption);
     4527                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     4528
     4529                SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetName().c_str());
     4530                SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());
    44894531
    44904532
     
    44934535                ////////////
    44944536
    4495                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
    4496                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
    4497                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
    4498                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
     4537                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_DISABLED) SendDlgItemMessage(hwnd,IDC_STYLE_DISABLED,BM_SETCHECK,BST_CHECKED,0);
     4538                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_VISIBLE) SendDlgItemMessage(hwnd,IDC_STYLE_VISIBLE,BM_SETCHECK,BST_CHECKED,0);
     4539                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_GROUP) SendDlgItemMessage(hwnd,IDC_STYLE_GROUP,BM_SETCHECK,BST_CHECKED,0);
     4540                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&WS_TABSTOP) SendDlgItemMessage(hwnd,IDC_STYLE_TABSTOP,BM_SETCHECK,BST_CHECKED,0);
    44994541
    45004542
     
    45084550                SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_ADDSTRING,0,(long)STRING_DIRECTION_VERTICAL);
    45094551
    4510                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_HORZ) SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_SETCURSEL,0,0);
     4552                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_HORZ) SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_SETCURSEL,0,0);
    45114553                else SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_SETCURSEL,1,0);
    45124554
     
    45224564                SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_ADDSTRING,0,(long)STRING_RIGHT);
    45234565
    4524                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,1,0);
    4525                 else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_ALIGNRIGHT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,2,0);
     4566                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_ALIGNLEFT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,1,0);
     4567                else if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_ALIGNRIGHT) SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,2,0);
    45264568                else SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_SETCURSEL,0,0);
    45274569
    4528                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_AUTOBUDDY) SendDlgItemMessage(hwnd,IDC_UDS_AUTOBUDDY,BM_SETCHECK,BST_CHECKED,0);
    4529                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_SETBUDDYINT) SendDlgItemMessage(hwnd,IDC_UDS_SETBUDDYINT,BM_SETCHECK,BST_CHECKED,0);
    4530                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_NOTHOUSANDS) SendDlgItemMessage(hwnd,IDC_UDS_NOTHOUSANDS,BM_SETCHECK,BST_CHECKED,0);
    4531                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_WRAP) SendDlgItemMessage(hwnd,IDC_UDS_WRAP,BM_SETCHECK,BST_CHECKED,0);
    4532                 if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&UDS_ARROWKEYS) SendDlgItemMessage(hwnd,IDC_UDS_ARROWKEYS,BM_SETCHECK,BST_CHECKED,0);
     4570                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_AUTOBUDDY) SendDlgItemMessage(hwnd,IDC_UDS_AUTOBUDDY,BM_SETCHECK,BST_CHECKED,0);
     4571                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_SETBUDDYINT) SendDlgItemMessage(hwnd,IDC_UDS_SETBUDDYINT,BM_SETCHECK,BST_CHECKED,0);
     4572                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_NOTHOUSANDS) SendDlgItemMessage(hwnd,IDC_UDS_NOTHOUSANDS,BM_SETCHECK,BST_CHECKED,0);
     4573                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_WRAP) SendDlgItemMessage(hwnd,IDC_UDS_WRAP,BM_SETCHECK,BST_CHECKED,0);
     4574                if(pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle()&UDS_ARROWKEYS) SendDlgItemMessage(hwnd,IDC_UDS_ARROWKEYS,BM_SETCHECK,BST_CHECKED,0);
    45334575
    45344576
     
    45414583                if(i==-1) return 1;
    45424584                i2=GetWndInfoNum(MdiInfo[i].path);
    4543                 WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
     4585                ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i].path);
    45444586
    45454587                //共通スタイル
     
    45524594                        if(HIWORD(wParam)==CBN_SELCHANGE){
    45534595                            //変更情報
    4554                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4596                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    45554597
    45564598                            i3=SendDlgItemMessage(hwnd,IDC_UDS_SITUATION,CB_GETCURSEL,0,0);
    4557                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_HORZ;
    4558                             if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_HORZ;
     4599                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_HORZ );
     4600                            if(i3==0) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_HORZ );
    45594601                            DrawRadWindow(i,pWindowInfo);
    45604602                            return 1;
     
    45644606                        if(HIWORD(wParam)==CBN_SELCHANGE){
    45654607                            //変更情報
    4566                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4608                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    45674609
    45684610                            i3=SendDlgItemMessage(hwnd,IDC_UDS_ATTACH,CB_GETCURSEL,0,0);
    4569                             pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~(UDS_ALIGNLEFT|UDS_ALIGNRIGHT);
    4570                             if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_ALIGNLEFT;
    4571                             else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_ALIGNRIGHT;
     4611                            pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_ALIGNLEFT|UDS_ALIGNRIGHT );
     4612                            if(i3==1) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_ALIGNLEFT );
     4613                            else if(i3==2) pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_ALIGNRIGHT );
    45724614                            return 1;
    45734615                        }
     
    45774619                        if(HIWORD(wParam)==BN_CLICKED){
    45784620                            //変更情報
    4579                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4621                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    45804622
    45814623                            if(SendDlgItemMessage(hwnd,IDC_UDS_AUTOBUDDY,BM_GETCHECK,0,0))
    4582                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_AUTOBUDDY;
    4583                             else
    4584                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_AUTOBUDDY;
     4624                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_AUTOBUDDY );
     4625                            else
     4626                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_AUTOBUDDY );
    45854627                            return 1;
    45864628                        }
     
    45894631                        if(HIWORD(wParam)==BN_CLICKED){
    45904632                            //変更情報
    4591                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4633                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    45924634
    45934635                            if(SendDlgItemMessage(hwnd,IDC_UDS_SETBUDDYINT,BM_GETCHECK,0,0))
    4594                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_SETBUDDYINT;
    4595                             else
    4596                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_SETBUDDYINT;
     4636                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_SETBUDDYINT );
     4637                            else
     4638                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_SETBUDDYINT );
    45974639                            return 1;
    45984640                        }
     
    46014643                        if(HIWORD(wParam)==BN_CLICKED){
    46024644                            //変更情報
    4603                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4645                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    46044646
    46054647                            if(SendDlgItemMessage(hwnd,IDC_UDS_NOTHOUSANDS,BM_GETCHECK,0,0))
    4606                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_NOTHOUSANDS;
    4607                             else
    4608                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_NOTHOUSANDS;
     4648                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_NOTHOUSANDS );
     4649                            else
     4650                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_NOTHOUSANDS );
    46094651                            return 1;
    46104652                        }
     
    46134655                        if(HIWORD(wParam)==BN_CLICKED){
    46144656                            //変更情報
    4615                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4657                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    46164658
    46174659                            if(SendDlgItemMessage(hwnd,IDC_UDS_WRAP,BM_GETCHECK,0,0))
    4618                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_WRAP;
    4619                             else
    4620                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_WRAP;
     4660                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_WRAP );
     4661                            else
     4662                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_WRAP );
    46214663                            return 1;
    46224664                        }
     
    46254667                        if(HIWORD(wParam)==BN_CLICKED){
    46264668                            //変更情報
    4627                             Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style);
     4669                            Rad_NoticeChanging(i,RAD_UNDO_STYLE,MdiInfo[i].MdiRadInfo->SelectingItem[0],pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->GetStyle());
    46284670
    46294671                            if(SendDlgItemMessage(hwnd,IDC_UDS_ARROWKEYS,BM_GETCHECK,0,0))
    4630                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style|=UDS_ARROWKEYS;
    4631                             else
    4632                                 pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->style&=~UDS_ARROWKEYS;
     4672                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->AddStyle( UDS_ARROWKEYS );
     4673                            else
     4674                                pWindowInfo->childWindowInfos[MdiInfo[i].MdiRadInfo->SelectingItem[0]]->DeleteStyle( UDS_ARROWKEYS );
    46334675                            return 1;
    46344676                        }
  • trunk/ab5.0/abdev/abdev/Rad_UndoRedo.cpp

    r618 r624  
    2020    pUndoState->NowPos=i;
    2121
    22     WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     22    ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
    2323    int WndInfoNum = GetWndInfoNum(MdiInfo[WndNum].path);
    2424    switch(pUndoState->Command[pUndoState->NowPos]){
     
    2828            break;
    2929        case RAD_UNDO_DELETEITEM:
    30             CHILDINFO *pChildInfo;
     30            ActiveBasic::PM::ChildWindowInfo *pChildInfo;
    3131            RECT rect;
    32             pChildInfo=(CHILDINFO *)pUndoState->lpdwData[pUndoState->NowPos];
     32            pChildInfo=(ActiveBasic::PM::ChildWindowInfo *)pUndoState->lpdwData[pUndoState->NowPos];
    3333            rect.left=pChildInfo->pos.x;
    3434            rect.top=pChildInfo->pos.y;
     
    3737            InsertDlgItem(WndNum,WndInfoNum,pUndoState->SelectItemNum[pUndoState->NowPos],
    3838                &pChildInfo->pos,&pChildInfo->size,
    39                 pChildInfo->IdName,pChildInfo->caption,pChildInfo->style,pChildInfo->ExStyle,pChildInfo->Control,pChildInfo->ImageCtrlInfo.type,pChildInfo->ImageCtrlInfo.path,0);
     39                pChildInfo->GetName().c_str(),pChildInfo->GetCaption().c_str(),pChildInfo->GetStyle(),pChildInfo->GetExStyle(),pChildInfo->Control,pChildInfo->image.type,pChildInfo->image.path.c_str(),0);
    4040            break;
    4141        case RAD_UNDO_NAME:
     
    6060            }
    6161            else{
    62                 temporary=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->IdName;
    63                 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->IdName=(char *)pUndoState->lpdwData[pUndoState->NowPos];
    64                 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary;
     62                std::string tempStr = pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->GetName();
     63                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->SetName( *(std::string *)pUndoState->lpdwData[pUndoState->NowPos] );
     64                delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos];
     65                pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) );
    6566            }
    6667            if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
     
    6970        case RAD_UNDO_CAPTION:
    7071            if(pUndoState->SelectItemNum[pUndoState->NowPos]==SELECT_WINDOW){
    71                 temporary=pWindowInfo->caption;
    72                 pWindowInfo->caption=(char *)pUndoState->lpdwData[pUndoState->NowPos];
    73                 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary;
    74             }
    75             else{
    76                 temporary=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->caption;
    77                 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->caption=(char *)pUndoState->lpdwData[pUndoState->NowPos];
    78                 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary;
     72                std::string tempStr = pWindowInfo->GetCaption();
     73                pWindowInfo->SetCaption( *(std::string *)pUndoState->lpdwData[pUndoState->NowPos] );
     74                delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos];
     75                pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) );
     76            }
     77            else{
     78                std::string tempStr = pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->GetCaption();
     79                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->SetCaption( *(std::string *)pUndoState->lpdwData[pUndoState->NowPos] );
     80                delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos];
     81                pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) );
    7982            }
    8083            if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
     
    9396            break;
    9497        case RAD_UNDO_BGCOLOR:
    95             dw=pWindowInfo->bgColor;
    96             pWindowInfo->bgColor=pUndoState->lpdwData[pUndoState->NowPos];
    97             pUndoState->lpdwData[pUndoState->NowPos]=dw;
    98             if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
    99                 ChangePropertyWindow(WndNum,WndInfoNum);
    100             DrawRadWindow(WndNum,pWindowInfo);
    101             break;
     98            {
     99                int tempBgColor = pWindowInfo->GetBackgroundColor();
     100                pWindowInfo->SetBackgroundColor( static_cast<int>(pUndoState->lpdwData[pUndoState->NowPos]) );
     101                pUndoState->lpdwData[pUndoState->NowPos] = static_cast<DWORD>(tempBgColor);
     102
     103                if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
     104                    ChangePropertyWindow(WndNum,WndInfoNum);
     105                DrawRadWindow(WndNum,pWindowInfo);
     106                break;
     107            }
    102108        case RAD_UNDO_WINDOWMENU:
    103             temporary=pWindowInfo->MenuID;
    104             pWindowInfo->MenuID=(char *)pUndoState->lpdwData[pUndoState->NowPos];
    105             pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary;
    106             if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
    107                 ChangePropertyWindow(WndNum,WndInfoNum);
    108             break;
     109            {
     110                std::string tempMenuIdName = pWindowInfo->GetMenuIdName();
     111                pWindowInfo->SetMenuIdName( *(std::string *)pUndoState->lpdwData[pUndoState->NowPos] );
     112                delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos];
     113                pUndoState->lpdwData[pUndoState->NowPos] = (DWORD)( new std::string( tempMenuIdName ) );
     114                if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
     115                {
     116                    ChangePropertyWindow(WndNum,WndInfoNum);
     117                }
     118                DrawRadWindow(WndNum,pWindowInfo);
     119                break;
     120            }
    109121        case RAD_UNDO_ICONRES:
    110             temporary=pWindowInfo->IconResName;
    111             pWindowInfo->IconResName=(char *)pUndoState->lpdwData[pUndoState->NowPos];
    112             pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary;
     122            {
     123                std::string tempStr = pWindowInfo->GetIconResourceName();
     124                pWindowInfo->SetIconResourceName( *(std::string *)pUndoState->lpdwData[pUndoState->NowPos] );
     125                delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos];
     126                pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) );
     127            }
    113128            if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
    114129                ChangePropertyWindow(WndNum,WndInfoNum);
     
    116131        case RAD_UNDO_STYLE:
    117132            if(pUndoState->SelectItemNum[pUndoState->NowPos]==SELECT_WINDOW){
    118                 dw=pWindowInfo->style;
    119                 pWindowInfo->style=pUndoState->lpdwData[pUndoState->NowPos];
    120                 pUndoState->lpdwData[pUndoState->NowPos]=dw;
    121             }
    122             else{
    123                 dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->style;
    124                 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->style=pUndoState->lpdwData[pUndoState->NowPos];
     133                dw=pWindowInfo->GetStyle();
     134                pWindowInfo->SetStyle( pUndoState->lpdwData[pUndoState->NowPos] );
     135                pUndoState->lpdwData[pUndoState->NowPos]=dw;
     136            }
     137            else{
     138                dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->GetStyle();
     139                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->SetStyle( pUndoState->lpdwData[pUndoState->NowPos] );
    125140                pUndoState->lpdwData[pUndoState->NowPos]=dw;
    126141            }
     
    131146        case RAD_UNDO_EXSTYLE:
    132147            if(pUndoState->SelectItemNum[pUndoState->NowPos]==SELECT_WINDOW){
    133                 dw=pWindowInfo->ExStyle;
    134                 pWindowInfo->ExStyle=pUndoState->lpdwData[pUndoState->NowPos];
    135                 pUndoState->lpdwData[pUndoState->NowPos]=dw;
    136             }
    137             else{
    138                 dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ExStyle;
    139                 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ExStyle=pUndoState->lpdwData[pUndoState->NowPos];
     148                dw=pWindowInfo->GetExStyle();
     149                pWindowInfo->SetExStyle( pUndoState->lpdwData[pUndoState->NowPos] );
     150                pUndoState->lpdwData[pUndoState->NowPos]=dw;
     151            }
     152            else{
     153                dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->GetExStyle();
     154                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->SetExStyle( pUndoState->lpdwData[pUndoState->NowPos] );
    140155                pUndoState->lpdwData[pUndoState->NowPos]=dw;
    141156            }
     
    163178            break;
    164179        case RAD_UNDO_IMAGESTATE:
    165             IMAGECTRLINFO *pImageCtrlInfo;
    166             pImageCtrlInfo=(IMAGECTRLINFO *)pUndoState->lpdwData[pUndoState->NowPos];
    167 
    168             dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.type;
    169             pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.type=pImageCtrlInfo->type;
    170             pImageCtrlInfo->type=dw;
    171 
    172             dw=(DWORD)pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.path;
    173             pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.path=pImageCtrlInfo->path;
    174             pImageCtrlInfo->path=(char *)dw;
    175 
    176             if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
    177                 ChangePropertyWindow(WndNum,WndInfoNum);
    178             DrawRadWindow(WndNum,pWindowInfo);
     180            {
     181                ActiveBasic::PM::ImageControlInfo *pImageCtrlInfo = (ActiveBasic::PM::ImageControlInfo *)pUndoState->lpdwData[pUndoState->NowPos];
     182
     183                ActiveBasic::PM::ImageReferenceType::EnumType tempType = pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->image.type;
     184                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->image.type = pImageCtrlInfo->type;
     185                pImageCtrlInfo->type = tempType;
     186
     187                std::string tempPath = pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->image.path;
     188                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->image.path = pImageCtrlInfo->path;
     189                pImageCtrlInfo->path = tempPath;
     190
     191                if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
     192                    ChangePropertyWindow(WndNum,WndInfoNum);
     193                DrawRadWindow(WndNum,pWindowInfo);
     194            }
    179195            break;
    180196        case RAD_UNDO_TYPE:
     
    197213    char *temporary;
    198214    RAD_UNDOSTATE *pUndoState;
    199     CHILDINFO *pChildInfo;
     215    ActiveBasic::PM::ChildWindowInfo *pChildInfo;
    200216    RECT rect;
    201217
     
    206222    }
    207223
    208     WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     224    ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
    209225    int WndInfoNum = GetWndInfoNum(MdiInfo[WndNum].path);
    210226    switch(pUndoState->Command[pUndoState->NowPos]){
    211227        case RAD_UNDO_INSERTITEM:
    212             pChildInfo=(CHILDINFO *)pUndoState->lpdwData[pUndoState->NowPos];
     228            pChildInfo=(ActiveBasic::PM::ChildWindowInfo *)pUndoState->lpdwData[pUndoState->NowPos];
    213229            rect.left=pChildInfo->pos.x;
    214230            rect.top=pChildInfo->pos.y;
     
    217233            InsertDlgItem(WndNum,WndInfoNum,pUndoState->SelectItemNum[pUndoState->NowPos],
    218234                &pChildInfo->pos,&pChildInfo->size,
    219                 pChildInfo->IdName,pChildInfo->caption,pChildInfo->style,pChildInfo->ExStyle,pChildInfo->Control,pChildInfo->ImageCtrlInfo.type,pChildInfo->ImageCtrlInfo.path,0);
     235                pChildInfo->GetName().c_str(),pChildInfo->GetCaption().c_str(),pChildInfo->GetStyle(),pChildInfo->GetExStyle(),pChildInfo->Control,pChildInfo->image.type,pChildInfo->image.path.c_str(),0);
    220236            break;
    221237        case RAD_UNDO_DELETEITEM:
     
    244260            }
    245261            else{
    246                 temporary=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->IdName;
    247                 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->IdName=(char *)pUndoState->lpdwData[pUndoState->NowPos];
    248                 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary;
     262                std::string tempStr = pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->GetName();
     263                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->SetName( *(std::string *)pUndoState->lpdwData[pUndoState->NowPos] );
     264                delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos];
     265                pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) );
    249266            }
    250267            if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
     
    253270        case RAD_UNDO_CAPTION:
    254271            if(pUndoState->SelectItemNum[pUndoState->NowPos]==SELECT_WINDOW){
    255                 temporary=pWindowInfo->caption;
    256                 pWindowInfo->caption=(char *)pUndoState->lpdwData[pUndoState->NowPos];
    257                 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary;
    258             }
    259             else{
    260                 temporary=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->caption;
    261                 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->caption=(char *)pUndoState->lpdwData[pUndoState->NowPos];
    262                 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary;
     272                std::string tempStr = pWindowInfo->GetCaption();
     273                pWindowInfo->SetCaption( *(std::string *)pUndoState->lpdwData[pUndoState->NowPos] );
     274                delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos];
     275                pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) );
     276            }
     277            else{
     278                std::string tempStr = pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->GetCaption();
     279                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->SetCaption( *(std::string *)pUndoState->lpdwData[pUndoState->NowPos] );
     280                delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos];
     281                pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) );
    263282            }
    264283            if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
     
    277296            break;
    278297        case RAD_UNDO_BGCOLOR:
    279             dw=pWindowInfo->bgColor;
    280             pWindowInfo->bgColor=pUndoState->lpdwData[pUndoState->NowPos];
    281             pUndoState->lpdwData[pUndoState->NowPos]=dw;
     298            {
     299                int tempBgColor = pWindowInfo->GetBackgroundColor();
     300                pWindowInfo->SetBackgroundColor( static_cast<int>(pUndoState->lpdwData[pUndoState->NowPos]) );
     301                pUndoState->lpdwData[pUndoState->NowPos] = static_cast<DWORD>(tempBgColor);
     302            }
    282303            if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
    283304                ChangePropertyWindow(WndNum,WndInfoNum);
     
    285306            break;
    286307        case RAD_UNDO_WINDOWMENU:
    287             temporary=pWindowInfo->MenuID;
    288             pWindowInfo->MenuID=(char *)pUndoState->lpdwData[pUndoState->NowPos];
    289             pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary;
    290             if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
    291                 ChangePropertyWindow(WndNum,WndInfoNum);
    292             break;
     308            {
     309                std::string tempMenuIdName = pWindowInfo->GetMenuIdName();
     310                pWindowInfo->SetMenuIdName( *(std::string *)pUndoState->lpdwData[pUndoState->NowPos] );
     311                delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos];
     312                pUndoState->lpdwData[pUndoState->NowPos] = (DWORD)( new std::string( tempMenuIdName ) );
     313                if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
     314                {
     315                    ChangePropertyWindow(WndNum,WndInfoNum);
     316                }
     317                DrawRadWindow(WndNum,pWindowInfo);
     318                break;
     319            }
    293320        case RAD_UNDO_ICONRES:
    294             temporary=pWindowInfo->IconResName;
    295             pWindowInfo->IconResName=(char *)pUndoState->lpdwData[pUndoState->NowPos];
    296             pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temporary;
     321            {
     322                std::string tempStr = pWindowInfo->GetIconResourceName();
     323                pWindowInfo->SetIconResourceName( *(std::string *)pUndoState->lpdwData[pUndoState->NowPos] );
     324                delete (std::string *)pUndoState->lpdwData[pUndoState->NowPos];
     325                pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)( new std::string( tempStr ) );
     326            }
    297327            if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
    298328                ChangePropertyWindow(WndNum,WndInfoNum);
     
    300330        case RAD_UNDO_STYLE:
    301331            if(pUndoState->SelectItemNum[pUndoState->NowPos]==SELECT_WINDOW){
    302                 dw=pWindowInfo->style;
    303                 pWindowInfo->style=pUndoState->lpdwData[pUndoState->NowPos];
    304                 pUndoState->lpdwData[pUndoState->NowPos]=dw;
    305             }
    306             else{
    307                 dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->style;
    308                 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->style=pUndoState->lpdwData[pUndoState->NowPos];
     332                dw=pWindowInfo->GetStyle();
     333                pWindowInfo->SetStyle( pUndoState->lpdwData[pUndoState->NowPos] );
     334                pUndoState->lpdwData[pUndoState->NowPos]=dw;
     335            }
     336            else{
     337                dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->GetStyle();
     338                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->SetStyle( pUndoState->lpdwData[pUndoState->NowPos] );
    309339                pUndoState->lpdwData[pUndoState->NowPos]=dw;
    310340            }
     
    315345        case RAD_UNDO_EXSTYLE:
    316346            if(pUndoState->SelectItemNum[pUndoState->NowPos]==SELECT_WINDOW){
    317                 dw=pWindowInfo->ExStyle;
    318                 pWindowInfo->ExStyle=pUndoState->lpdwData[pUndoState->NowPos];
    319                 pUndoState->lpdwData[pUndoState->NowPos]=dw;
    320             }
    321             else{
    322                 dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ExStyle;
    323                 pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ExStyle=pUndoState->lpdwData[pUndoState->NowPos];
     347                dw=pWindowInfo->GetExStyle();
     348                pWindowInfo->SetExStyle( pUndoState->lpdwData[pUndoState->NowPos] );
     349                pUndoState->lpdwData[pUndoState->NowPos]=dw;
     350            }
     351            else{
     352                dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->GetExStyle();
     353                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->SetExStyle( pUndoState->lpdwData[pUndoState->NowPos] );
    324354                pUndoState->lpdwData[pUndoState->NowPos]=dw;
    325355            }
     
    347377            break;
    348378        case RAD_UNDO_IMAGESTATE:
    349             IMAGECTRLINFO *pImageCtrlInfo;
    350             pImageCtrlInfo=(IMAGECTRLINFO *)pUndoState->lpdwData[pUndoState->NowPos];
    351 
    352             dw=pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.type;
    353             pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.type=pImageCtrlInfo->type;
    354             pImageCtrlInfo->type=dw;
    355 
    356             dw=(DWORD)pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.path;
    357             pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->ImageCtrlInfo.path=pImageCtrlInfo->path;
    358             pImageCtrlInfo->path=(char *)dw;
    359 
    360             if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
    361                 ChangePropertyWindow(WndNum,WndInfoNum);
    362             DrawRadWindow(WndNum,pWindowInfo);
    363             break;
     379            {
     380                ActiveBasic::PM::ImageControlInfo *pImageCtrlInfo = (ActiveBasic::PM::ImageControlInfo *)pUndoState->lpdwData[pUndoState->NowPos];
     381
     382                ActiveBasic::PM::ImageReferenceType::EnumType tempType = pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->image.type;
     383                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->image.type = pImageCtrlInfo->type;
     384                pImageCtrlInfo->type = tempType;
     385
     386                std::string tempPath = pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->image.path;
     387                pWindowInfo->childWindowInfos[pUndoState->SelectItemNum[pUndoState->NowPos]]->image.path = pImageCtrlInfo->path;
     388                pImageCtrlInfo->path = tempPath;
     389
     390                if(pUndoState->SelectItemNum[pUndoState->NowPos]==MdiInfo[WndNum].MdiRadInfo->SelectingItem[0])
     391                    ChangePropertyWindow(WndNum,WndInfoNum);
     392                DrawRadWindow(WndNum,pWindowInfo);
     393                break;
     394            }
    364395        case RAD_UNDO_TYPE:
    365396            dw=pWindowInfo->type;
     
    387418        case RAD_UNDO_INSERTITEM:
    388419        case RAD_UNDO_DELETEITEM:
    389             CHILDINFO *pChildInfo;
    390             pChildInfo=(CHILDINFO *)pUndoState->lpdwData[pos];
    391             HeapDefaultFree(pChildInfo->IdName);
    392             HeapDefaultFree(pChildInfo->caption);
    393             if(pChildInfo->Control==CT_IMAGEBOX){
    394                 //イメージ ボックスの場合
    395                 HeapDefaultFree(pChildInfo->ImageCtrlInfo.path);
    396             }
    397             HeapDefaultFree(pChildInfo);
     420            ActiveBasic::PM::ChildWindowInfo *pChildInfo;
     421            pChildInfo=(ActiveBasic::PM::ChildWindowInfo *)pUndoState->lpdwData[pos];
     422            delete pChildInfo;
    398423            break;
    399424        case RAD_UNDO_NAME:
     
    403428                delete names;
    404429            }
    405             else HeapDefaultFree((void *)pUndoState->lpdwData[pos]);
     430            else
     431            {
     432                std::string *pTempStr = (std::string *)pUndoState->lpdwData[pos];
     433                delete pTempStr;
     434            }
    406435            break;
    407436        case RAD_UNDO_CAPTION:
    408             HeapDefaultFree((void *)pUndoState->lpdwData[pos]);
     437            {
     438                std::string *pTempStr = (std::string *)pUndoState->lpdwData[pos];
     439                delete pTempStr;
     440            }
    409441            break;
    410442        case RAD_UNDO_FONT:
     
    412444            break;
    413445        case RAD_UNDO_WINDOWMENU:
    414             if(pUndoState->lpdwData[pos])
    415                 HeapDefaultFree((void *)pUndoState->lpdwData[pos]);
     446            {
     447                std::string *pTempMenuId = (std::string *)pUndoState->lpdwData[pos];
     448                delete pTempMenuId;
     449            }
    416450            break;
    417451        case RAD_UNDO_ICONRES:
    418             if(pUndoState->lpdwData[pos])
    419                 HeapDefaultFree((void *)pUndoState->lpdwData[pos]);
     452            {
     453                std::string *pTempStr = (std::string *)pUndoState->lpdwData[pos];
     454                delete pTempStr;
     455            }
    420456            break;
    421457        case RAD_UNDO_POSITION:
     
    423459            break;
    424460        case RAD_UNDO_IMAGESTATE:
    425             IMAGECTRLINFO *pImageCtrlInfo;
    426             pImageCtrlInfo=(IMAGECTRLINFO *)pUndoState->lpdwData[pos];
    427             HeapDefaultFree(pImageCtrlInfo->path);
    428             HeapDefaultFree(pImageCtrlInfo);
    429             break;
     461            {
     462                ActiveBasic::PM::ImageControlInfo *pImageCtrlInfo = (ActiveBasic::PM::ImageControlInfo *)pUndoState->lpdwData[pUndoState->NowPos];
     463
     464                delete pImageCtrlInfo;
     465
     466                break;
     467            }
    430468    }
    431469    pUndoState->Command[pos]=0;
     
    435473    extern MDIINFO MdiInfo[MAX_WNDNUM];
    436474    int i;
    437     char *temporary,*temp2;
    438475    RAD_UNDOSTATE *pUndoState;
    439476
     
    452489        case RAD_UNDO_INSERTITEM:
    453490        case RAD_UNDO_DELETEITEM:
    454             CHILDINFO *pChildInfo,*pSaveChildInfo;
    455             pChildInfo=(CHILDINFO *)dwData;
    456             pSaveChildInfo=(CHILDINFO *)HeapAlloc(hHeap,0,sizeof(CHILDINFO));
    457             pSaveChildInfo->IdName=(char *)HeapAlloc(hHeap,0,lstrlen(pChildInfo->IdName)+1);
    458             lstrcpy(pSaveChildInfo->IdName,pChildInfo->IdName);
     491            ActiveBasic::PM::ChildWindowInfo *pChildInfo,*pSaveChildInfo;
     492            pChildInfo=(ActiveBasic::PM::ChildWindowInfo *)dwData;
     493            pSaveChildInfo = new ActiveBasic::PM::ChildWindowInfo();
     494            pSaveChildInfo->SetName( pChildInfo->GetName() );
    459495            pSaveChildInfo->pos=pChildInfo->pos;
    460496            pSaveChildInfo->size=pChildInfo->size;
    461             pSaveChildInfo->caption=(char *)HeapAlloc(hHeap,0,lstrlen(pChildInfo->caption)+1);
    462             lstrcpy(pSaveChildInfo->caption,pChildInfo->caption);
    463             pSaveChildInfo->style=pChildInfo->style;
    464             pSaveChildInfo->ExStyle=pChildInfo->ExStyle;
     497            pSaveChildInfo->SetCaption( pChildInfo->GetCaption() );
     498            pSaveChildInfo->SetStyle( pChildInfo->GetStyle() );
     499            pSaveChildInfo->SetExStyle( pChildInfo->GetExStyle() );
    465500            pSaveChildInfo->Control=pChildInfo->Control;
    466501            if(pChildInfo->Control==CT_IMAGEBOX){
    467502                //イメージ ボックスの場合
    468                 pSaveChildInfo->ImageCtrlInfo.type=pChildInfo->ImageCtrlInfo.type;
    469                 pSaveChildInfo->ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(pChildInfo->ImageCtrlInfo.path)+1);
    470                 lstrcpy(pSaveChildInfo->ImageCtrlInfo.path,pChildInfo->ImageCtrlInfo.path);
     503                pSaveChildInfo->image = pChildInfo->image;
    471504            }
    472505            pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)pSaveChildInfo;
     
    483516            }
    484517            else{
    485                 temporary=(char *)dwData;
    486                 temp2=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
    487                 lstrcpy(temp2,temporary);
    488                 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temp2;
     518                std::string *pTempStr = new std::string( *(std::string *)dwData );
     519                pUndoState->lpdwData[pUndoState->NowPos] = (DWORD)pTempStr;
    489520            }
    490521            break;
    491522        case RAD_UNDO_CAPTION:
    492             temporary=(char *)dwData;
    493             temp2=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
    494             lstrcpy(temp2,temporary);
    495             pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temp2;
     523            {
     524                std::string *pTempStr = new std::string( *(std::string *)dwData );
     525                pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)pTempStr;
     526            }
    496527            break;
    497528        case RAD_UNDO_FONT:
     
    506537            break;
    507538        case RAD_UNDO_WINDOWMENU:
     539            {
     540                std::string *pTempStr = new std::string( *(std::string *)dwData );
     541                pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)pTempStr;
     542            }
     543            break;
    508544        case RAD_UNDO_ICONRES:
    509             if(!dwData) pUndoState->lpdwData[pUndoState->NowPos]=0;
    510             else{
    511                 temporary=(char *)dwData;
    512                 temp2=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
    513                 lstrcpy(temp2,temporary);
    514                 pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)temp2;
     545            {
     546                std::string *pTempStr = new std::string( *(std::string *)dwData );
     547                pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)pTempStr;
    515548            }
    516549            break;
     
    528561            break;
    529562        case RAD_UNDO_IMAGESTATE:
    530             IMAGECTRLINFO *pImageCtrlInfo,*pSaveImageCtrlInfo;
    531             pImageCtrlInfo=(IMAGECTRLINFO *)dwData;
    532             pSaveImageCtrlInfo=(IMAGECTRLINFO *)HeapAlloc(hHeap,0,sizeof(IMAGECTRLINFO));
    533             pSaveImageCtrlInfo->type=pImageCtrlInfo->type;
    534             pSaveImageCtrlInfo->path=(char *)HeapAlloc(hHeap,0,lstrlen(pImageCtrlInfo->path)+1);
    535             lstrcpy(pSaveImageCtrlInfo->path,pImageCtrlInfo->path);
    536             pUndoState->lpdwData[pUndoState->NowPos]=(DWORD)pSaveImageCtrlInfo;
    537             break;
     563            {
     564                ActiveBasic::PM::ImageControlInfo *pImageCtrlInfo = (ActiveBasic::PM::ImageControlInfo *)dwData;
     565                ActiveBasic::PM::ImageControlInfo *pSaveImageCtrlInfo = new ActiveBasic::PM::ImageControlInfo( *pImageCtrlInfo );
     566                pUndoState->lpdwData[pUndoState->NowPos] = (DWORD)( new ActiveBasic::PM::ImageControlInfo( *pImageCtrlInfo ) );
     567                break;
     568            }
    538569        case RAD_UNDO_TYPE:
    539570            pUndoState->lpdwData[pUndoState->NowPos]=dwData;
  • trunk/ab5.0/abdev/abdev/Resource.cpp

    r623 r624  
    8282
    8383    //重複チェック
    84     for(i2=0;i2<projectInfo.resourceManager.cursorResources.size();i2++){
     84    for(i2=0;i2<static_cast<int>(projectInfo.resourceManager.cursorResources.size());i2++){
    8585        if(i2==CursorInfoNum) continue;
    8686        if( projectInfo.resourceManager.cursorResources[i2].idName == NewIdName )
     
    190190
    191191    //重複チェック
    192     for(i2=0;i2<projectInfo.resourceManager.bitmapResources.size();i2++){
     192    for(i2=0;i2<static_cast<int>(projectInfo.resourceManager.bitmapResources.size());i2++){
    193193        if(i2==BitmapInfoNum) continue;
    194194        if( projectInfo.resourceManager.bitmapResources[i2].idName == NewIdName )
     
    323323
    324324    //重複チェック
    325     for(i2=0;i2<projectInfo.resourceManager.iconResources.size();i2++){
     325    for(i2=0;i2<static_cast<int>(projectInfo.resourceManager.iconResources.size());i2++){
    326326        if(i2==IconInfoNum) continue;
    327327        if( projectInfo.resourceManager.iconResources[i2].idName == NewIdName )
  • trunk/ab5.0/abdev/abdev/WindowControl.cpp

    r623 r624  
    1919    return -1;
    2020}
    21 WindowInfo *GetWndInfo( char *name )
     21ActiveBasic::PM::WindowInfo *GetWndInfo( char *name )
    2222{
    23     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     23    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    2424    {
    2525        if(lstrcmpi(name,pWindowInfo->GetName().c_str())==0) return pWindowInfo;
     
    6565
    6666HGLOBAL Rad_GetChildInfoClipboardData(int WndNum,int WndInfoNum){
    67     //CHILDINFO構造体をクリップボード用データ(pByteが示すバッファ)に変換する
     67    //ChildWindowInfo構造体をクリップボード用データ(pByteが示すバッファ)に変換する
    6868    extern MDIINFO MdiInfo[MAX_WNDNUM];
    6969    HGLOBAL hGlobal;
     
    8585
    8686    for(i3--;i3>=0;i3--){
    87         CHILDINFO *pChildInfo = projectInfo.windowInfos[WndInfoNum]->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3]];
    88 
    89         MemSize+=lstrlen(pChildInfo->IdName)+1+
     87        ActiveBasic::PM::ChildWindowInfo *pChildInfo = projectInfo.windowInfos[WndInfoNum]->childWindowInfos[MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3]];
     88
     89        MemSize+=pChildInfo->GetName().size()+1+
    9090            sizeof(POINT)+
    9191            sizeof(SIZE)+
    92             lstrlen(pChildInfo->caption)+1+
     92            pChildInfo->GetCaption().size()+1+
    9393            sizeof(DWORD)+
    9494            sizeof(DWORD)+
    9595            sizeof(int)+
    9696            sizeof(int)+
    97             lstrlen(pChildInfo->ImageCtrlInfo.path)+1;
     97            pChildInfo->image.path.size()+1;
    9898
    9999        hGlobal=GlobalReAlloc(hGlobal,MemSize,0);
    100100        pByte=(BYTE *)GlobalLock(hGlobal);
    101101
    102         lstrcpy((char *)pByte+i2,pChildInfo->IdName);
    103         i2+=lstrlen(pChildInfo->IdName)+1;
     102        lstrcpy((char *)pByte+i2,pChildInfo->GetName().c_str());
     103        i2+=pChildInfo->GetName().size()+1;
    104104
    105105        memcpy(pByte+i2,&pChildInfo->pos,sizeof(POINT));
     
    109109        i2+=sizeof(SIZE);
    110110
    111         lstrcpy((char *)pByte+i2,pChildInfo->caption);
    112         i2+=lstrlen(pChildInfo->caption)+1;
    113 
    114         memcpy(pByte+i2,&pChildInfo->style,sizeof(DWORD));
     111        lstrcpy((char *)pByte+i2,pChildInfo->GetCaption().c_str());
     112        i2+=pChildInfo->GetCaption().size()+1;
     113
     114        *(DWORD *)(pByte+i2) = pChildInfo->GetStyle();
    115115        i2+=sizeof(DWORD);
    116116
    117         memcpy(pByte+i2,&pChildInfo->ExStyle,sizeof(DWORD));
     117        *(DWORD *)(pByte+i2) = pChildInfo->GetExStyle();
    118118        i2+=sizeof(DWORD);
    119119
     
    121121        i2+=sizeof(int);
    122122
    123         memcpy(pByte+i2,&pChildInfo->ImageCtrlInfo.type,sizeof(int));
     123        memcpy(pByte+i2,&pChildInfo->image.type,sizeof(int));
    124124        i2+=sizeof(int);
    125125
    126         if(!pChildInfo->ImageCtrlInfo.path){
     126        if( pChildInfo->image.path.empty() )
     127        {
    127128            lstrcpy((char *)pByte+i2,"");
    128129            i2++;
    129130        }
    130131        else{
    131             lstrcpy((char *)pByte+i2,pChildInfo->ImageCtrlInfo.path);
    132             i2+=lstrlen(pChildInfo->ImageCtrlInfo.path)+1;
     132            lstrcpy((char *)pByte+i2,pChildInfo->image.path.c_str());
     133            i2+=pChildInfo->image.path.size()+1;
    133134        }
    134135
     
    143144    BYTE *pByte;
    144145    int i2,i3,WndInfoNum;
    145     CHILDINFO ChildInfo;
    146     char temporary[255];
     146    ActiveBasic::PM::ChildWindowInfo ChildInfo;
    147147
    148148    for(i2=1;i2<MAX_RAD_SELITEM;i2++) MdiInfo[WndNum].MdiRadInfo->SelectingItem[i2]=-1;
     
    155155    for(i3--;i3>=0;i3--){
    156156        //IdNameメンバは変更される可能性がある
    157         ChildInfo.IdName=(char *)temporary;
    158         lstrcpy(ChildInfo.IdName,(char *)pByte+i2);
    159         i2+=lstrlen(ChildInfo.IdName)+1;
     157        ChildInfo.SetName( (char *)pByte+i2 );
     158        i2 += ChildInfo.GetName().size()+1;
    160159
    161160        memcpy(&ChildInfo.pos,pByte+i2,sizeof(POINT));
     
    165164        i2+=sizeof(SIZE);
    166165
    167         ChildInfo.caption=(char *)pByte+i2;
    168         i2+=lstrlen(ChildInfo.caption)+1;
    169 
    170         memcpy(&ChildInfo.style,pByte+i2,sizeof(DWORD));
     166        ChildInfo.SetCaption( (char *)pByte+i2 );
     167        i2+=ChildInfo.GetCaption().size()+1;
     168
     169        ChildInfo.SetStyle( *(DWORD *)(pByte+i2) );
    171170        i2+=sizeof(DWORD);
    172171
    173         memcpy(&ChildInfo.ExStyle,pByte+i2,sizeof(DWORD));
     172        ChildInfo.SetExStyle( *(DWORD *)(pByte+i2) );
    174173        i2+=sizeof(DWORD);
    175174
     
    177176        i2+=sizeof(int);
    178177
    179         memcpy(&ChildInfo.ImageCtrlInfo.type,pByte+i2,sizeof(int));
     178        memcpy(&ChildInfo.image.type,pByte+i2,sizeof(int));
    180179        i2+=sizeof(int);
    181180
    182         ChildInfo.ImageCtrlInfo.path=(char *)pByte+i2;
    183         if(lstrlen(ChildInfo.ImageCtrlInfo.path)==0){
    184             ChildInfo.ImageCtrlInfo.path=0;
    185             i2++;
    186         }
    187         else i2+=lstrlen(ChildInfo.ImageCtrlInfo.path)+1;
     181        ChildInfo.image.path = (char *)pByte+i2;
     182        i2+=ChildInfo.image.path.size()+1;
    188183
    189184        ChildInfo.pos.x+=17;
     
    195190            &ChildInfo.pos,
    196191            &ChildInfo.size,
    197             ChildInfo.IdName,
    198             ChildInfo.caption,
    199             ChildInfo.style,
    200             ChildInfo.ExStyle,
     192            ChildInfo.GetName().c_str(),
     193            ChildInfo.GetCaption().c_str(),
     194            ChildInfo.GetStyle(),
     195            ChildInfo.GetExStyle(),
    201196            ChildInfo.Control,
    202             ChildInfo.ImageCtrlInfo.type,
    203             ChildInfo.ImageCtrlInfo.path,
     197            ChildInfo.image.type,
     198            ChildInfo.image.path.c_str(),
    204199            2);
    205200    }
     
    210205}
    211206
    212 char *FormatCaption(char *caption){
     207char *FormatCaption(const char *caption){
    213208    extern HANDLE hHeap;
    214209    int i2,i3,BufSize;
     
    234229    return buffer;
    235230}
    236 char *SetCaptionSequence(char *caption){
     231char *SetCaptionSequence(const char *caption){
    237232    extern HANDLE hHeap;
    238233    int i2,i3,BufSize;
     
    351346    return 1;
    352347}
    353 BOOL GetNotifyCommandByItemMessage(WindowInfo *pWindowInfo,ITEMEVENTINFO *pItemEventInfo,char *Command,char *spaces){
     348BOOL GetNotifyCommandByItemMessage(ActiveBasic::PM::WindowInfo *pWindowInfo,ITEMEVENTINFO *pItemEventInfo,char *Command,char *spaces){
    354349    int i,i2,i3,sw;
    355350    char temporary[MAX_PATH];
     
    432427    }
    433428}
    434 void GetCommandByItemMessage(WindowInfo *pWindowInfo,ITEMEVENTINFO *pItemEventInfo,char *Command,char *spaces){
     429void GetCommandByItemMessage(ActiveBasic::PM::WindowInfo *pWindowInfo,ITEMEVENTINFO *pItemEventInfo,char *Command,char *spaces){
    435430    extern HANDLE hHeap;
    436431    int i,i2,i3;
     
    526521    char temporary[MAX_PATH],*temp2;
    527522
    528     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     523    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    529524
    530525    Command[0]=0;
     
    548543        i+=lstrlen(Command+i);
    549544
    550         if(pWindowInfo->MenuID){
     545        if( pWindowInfo->HasMenu() )
     546        {
    551547            //メニュー作成
    552548            for(i2=0;i2<projectInfo.NumberOfMenu;i2++){
    553                 if(lstrcmpi(projectInfo.pMenuInfo[i2].IdName,pWindowInfo->MenuID)==0) break;
     549                if(lstrcmpi(projectInfo.pMenuInfo[i2].IdName,pWindowInfo->GetMenuIdName().c_str())==0) break;
    554550            }
    555551            if(i2!=projectInfo.NumberOfMenu){
     
    561557        //子ウィンドウ作成
    562558        sw = 0;
    563         BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos )
     559        BOOST_FOREACH( const ActiveBasic::PM::ChildWindowInfo *pChildInfo, pWindowInfo->childWindowInfos )
    564560        {
    565561            if(pChildInfo->Control==CT_UPDOWN){
    566562                sprintf(Command+i,"%s\tCreateUpDownControl(%d,%d,%d,%d,%d,hWnd,%s,GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,0,0,100,0)\r\n",
    567563                    spaces,
    568                     pChildInfo->style,
     564                    pChildInfo->GetStyle(),
    569565                    pChildInfo->pos.x,pChildInfo->pos.y,
    570566                    pChildInfo->size.cx,pChildInfo->size.cy,
    571                     pChildInfo->IdName);
     567                    pChildInfo->GetName().c_str());
    572568                i+=lstrlen(Command+i);
    573569            }
    574570            else{
    575571                GetItemClassName(temporary,pChildInfo->Control);
    576                 temp2=FormatCaption(pChildInfo->caption);
     572                temp2=FormatCaption(pChildInfo->GetCaption().c_str());
    577573                sprintf(Command+i,"%s\tCreateWindowEx(&H%08x,\"%s\",\"%s\",&H%08x,%d,%d,%d,%d,hWnd,%s As HMENU,GetModuleHandle(0),0)\r\n",
    578574                    spaces,
    579                     pChildInfo->ExStyle,
     575                    pChildInfo->GetExStyle(),
    580576                    temporary,
    581577                    temp2,
    582                     pChildInfo->style,
     578                    pChildInfo->GetStyle(),
    583579                    pChildInfo->pos.x,
    584580                    pChildInfo->pos.y,
    585581                    pChildInfo->size.cx,
    586582                    pChildInfo->size.cy,
    587                     pChildInfo->IdName);
     583                    pChildInfo->GetName().c_str());
    588584                i+=lstrlen(Command+i);
    589585                HeapDefaultFree(temp2);
    590586                sprintf(Command+i,"%s\tSendMessage(GetDlgItem(hWnd,%s),WM_SETFONT,hFont_%s As WPARAM,0)\r\n",
    591587                    spaces,
    592                     pChildInfo->IdName,
     588                    pChildInfo->GetName().c_str(),
    593589                    pWindowInfo->GetName().c_str());
    594590                i+=lstrlen(Command+i);
     
    596592                if(pChildInfo->Control==CT_IMAGEBOX){
    597593                    //イメージ ボックスの場合
    598                     if((pChildInfo->style&0x000F)==SS_ICON){
    599                         if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_FILE){
    600                             if(strstr(pChildInfo->ImageCtrlInfo.path,":")||
    601                                 strstr(pChildInfo->ImageCtrlInfo.path,"\\\\")){
     594                    if((pChildInfo->GetStyle()&0x000F)==SS_ICON){
     595                        if(pChildInfo->image.IsFile()){
     596                            if(strstr(pChildInfo->image.path.c_str(),":")||
     597                                strstr(pChildInfo->image.path.c_str(),"\\\\")){
    602598                                sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,\"%s\",IMAGE_ICON,0,0,LR_DEFAULTSIZE or LR_LOADFROMFILE)\r\n",
    603599                                    spaces,
    604600                                    pWindowInfo->GetName().c_str(),
    605                                     pChildInfo->IdName,
    606                                     pChildInfo->ImageCtrlInfo.path);
     601                                    pChildInfo->GetName().c_str(),
     602                                    pChildInfo->image.path.c_str());
    607603                            }
    608604                            else{
     
    628624                                    i+=2;
    629625                                }
    630                                 sprintf(Command+i,"%s\twsprintf(ImageFilePath,\"%%s%s\",ModulePath)\r\n",spaces,pChildInfo->ImageCtrlInfo.path);
     626                                sprintf(Command+i,"%s\twsprintf(ImageFilePath,\"%%s%s\",ModulePath)\r\n",spaces,pChildInfo->image.path.c_str());
    631627                                i+=lstrlen(Command+i);
    632628                                sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,ImageFilePath,IMAGE_ICON,0,0,LR_DEFAULTSIZE or LR_LOADFROMFILE)\r\n",
    633629                                    spaces,
    634630                                    pWindowInfo->GetName().c_str(),
    635                                     pChildInfo->IdName);
     631                                    pChildInfo->GetName().c_str());
    636632                            }
    637633                            i+=lstrlen(Command+i);
    638634                        }
    639                         else if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_RES){
     635                        else if(pChildInfo->image.IsResource()){
    640636                            sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,%s As *Byte,IMAGE_ICON,0,0,LR_DEFAULTSIZE)\r\n",
    641637                                spaces,
    642638                                pWindowInfo->GetName().c_str(),
    643                                 pChildInfo->IdName,
    644                                 pChildInfo->ImageCtrlInfo.path);
     639                                pChildInfo->GetName().c_str(),
     640                                pChildInfo->image.path.c_str());
    645641                            i+=lstrlen(Command+i);
    646642                        }
    647643                        sprintf(Command+i,"%s\tSendMessage(GetDlgItem(hWnd,%s),STM_SETICON,hImage_%s_%s As WPARAM,0)\r\n",
    648644                            spaces,
    649                             pChildInfo->IdName,
     645                            pChildInfo->GetName().c_str(),
    650646                            pWindowInfo->GetName().c_str(),
    651                             pChildInfo->IdName);
     647                            pChildInfo->GetName().c_str());
    652648                        i+=lstrlen(Command+i);
    653649                    }
    654                     else if((pChildInfo->style&0x000F)==SS_BITMAP){
    655                         if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_FILE){
    656                             if(strstr(pChildInfo->ImageCtrlInfo.path,":")||
    657                                 strstr(pChildInfo->ImageCtrlInfo.path,"\\\\")){
     650                    else if((pChildInfo->GetStyle()&0x000F)==SS_BITMAP){
     651                        if(pChildInfo->image.IsFile()){
     652                            if(strstr(pChildInfo->image.path.c_str(),":")||
     653                                strstr(pChildInfo->image.path.c_str(),"\\\\")){
    658654                                sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,\"%s\",IMAGE_BITMAP,0,0,LR_DEFAULTSIZE or LR_LOADFROMFILE)\r\n",
    659655                                    spaces,
    660656                                    pWindowInfo->GetName().c_str(),
    661                                     pChildInfo->IdName,
    662                                     pChildInfo->ImageCtrlInfo.path);
     657                                    pChildInfo->GetName().c_str(),
     658                                    pChildInfo->image.path.c_str());
    663659                            }
    664660                            else{
     
    684680                                    i+=2;
    685681                                }
    686                                 sprintf(Command+i,"%s\twsprintf(ImageFilePath,\"%%s%s\",ModulePath)\r\n",spaces,pChildInfo->ImageCtrlInfo.path);
     682                                sprintf(Command+i,"%s\twsprintf(ImageFilePath,\"%%s%s\",ModulePath)\r\n",spaces,pChildInfo->image.path.c_str());
    687683                                i+=lstrlen(Command+i);
    688684                                sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,ImageFilePath,IMAGE_BITMAP,0,0,LR_LOADFROMFILE)\r\n",
    689685                                    spaces,
    690686                                    pWindowInfo->GetName().c_str(),
    691                                     pChildInfo->IdName);
     687                                    pChildInfo->GetName().c_str());
    692688                            }
    693689                            i+=lstrlen(Command+i);
    694690                        }
    695                         else if(pChildInfo->ImageCtrlInfo.type==IMGTYPE_RES){
     691                        else if(pChildInfo->image.IsResource()){
    696692                            sprintf(Command+i,"%s\thImage_%s_%s=LoadImage(GetWindowLongPtr(hWnd,GWLP_HINSTANCE) As HINSTANCE,%s As *Byte,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE)\r\n",
    697693                                spaces,
    698694                                pWindowInfo->GetName().c_str(),
    699                                 pChildInfo->IdName,
    700                                 pChildInfo->ImageCtrlInfo.path);
     695                                pChildInfo->GetName().c_str(),
     696                                pChildInfo->image.path.c_str());
    701697                            i+=lstrlen(Command+i);
    702698                        }
    703699                        sprintf(Command+i,"%s\tSendMessage(GetDlgItem(hWnd,%s),STM_SETIMAGE,IMAGE_BITMAP,hImage_%s_%s As LPARAM)\r\n",
    704700                            spaces,
    705                             pChildInfo->IdName,
     701                            pChildInfo->GetName().c_str(),
    706702                            pWindowInfo->GetName().c_str(),
    707                             pChildInfo->IdName);
     703                            pChildInfo->GetName().c_str());
    708704                        i+=lstrlen(Command+i);
    709705                    }
     
    724720        }
    725721
    726         if(pWindowInfo->MenuID){
     722        if( pWindowInfo->HasMenu() )
     723        {
    727724            //メニューを解放
    728725            for(i2=0;i2<projectInfo.NumberOfMenu;i2++){
    729                 if(lstrcmpi(projectInfo.pMenuInfo[i2].IdName,pWindowInfo->MenuID)==0) break;
     726                if(lstrcmpi(projectInfo.pMenuInfo[i2].IdName,pWindowInfo->GetMenuIdName().c_str())==0) break;
    730727            }
    731728            if(i2!=projectInfo.NumberOfMenu){
     
    736733
    737734        //イメージ ボックス用の変数を解放
    738         BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos )
     735        BOOST_FOREACH( const ActiveBasic::PM::ChildWindowInfo *pChildInfo, pWindowInfo->childWindowInfos )
    739736        {
    740737            if(pChildInfo->Control==CT_IMAGEBOX){
    741                 if((pChildInfo->style&0x000F)==SS_ICON)
    742                     sprintf(Command+i,"%s\tDestroyIcon(hImage_%s_%s)\r\n",spaces,pWindowInfo->GetName().c_str(),pChildInfo->IdName);
    743                 else if((pChildInfo->style&0x000F)==SS_BITMAP)
    744                     sprintf(Command+i,"%s\tDeleteObject(hImage_%s_%s)\r\n",spaces,pWindowInfo->GetName().c_str(),pChildInfo->IdName);
     738                if((pChildInfo->GetStyle()&0x000F)==SS_ICON)
     739                    sprintf(Command+i,"%s\tDestroyIcon(hImage_%s_%s)\r\n",spaces,pWindowInfo->GetName().c_str(),pChildInfo->GetName().c_str());
     740                else if((pChildInfo->GetStyle()&0x000F)==SS_BITMAP)
     741                    sprintf(Command+i,"%s\tDeleteObject(hImage_%s_%s)\r\n",spaces,pWindowInfo->GetName().c_str(),pChildInfo->GetName().c_str());
    745742                i+=lstrlen(Command+i);
    746743            }
     
    894891}
    895892
    896 char **GetMenuItemConstData(MENU_INFO *pMenuInfo,int NumberOfMenu,int *ConstNumber,char **ppNames,int *NamesNum,char *buffer,int *base){
     893void GetMenuItemConstData(MENU_INFO *pMenuInfo,int NumberOfMenu,int *ConstNumber,Jenga::Common::Strings &namesForDuplicationCheck,char *buffer,int *base){
    897894    extern HANDLE hHeap;
    898     int i,i2,sw1;
     895    int i;
    899896
    900897    for(i=0;i<NumberOfMenu;i++){
    901898        if(pMenuInfo[i].pMenuInfo){
    902899            //ポップアップ
    903             ppNames=GetMenuItemConstData(pMenuInfo[i].pMenuInfo,pMenuInfo[i].NumberOfMenu,ConstNumber,ppNames,NamesNum,buffer,base);
     900            GetMenuItemConstData(pMenuInfo[i].pMenuInfo,pMenuInfo[i].NumberOfMenu,ConstNumber,namesForDuplicationCheck,buffer,base);
    904901        }
    905902        else if(pMenuInfo[i].type==MFT_STRING){
    906903            //重複チェック
    907             for(i2=0,sw1=0;i2<*NamesNum;i2++){
    908                 if(lstrcmpi(ppNames[i2],pMenuInfo[i].IdName)==0){
    909                     sw1=1;
     904            bool isMatch = false;
     905            BOOST_FOREACH( const std::string &name, namesForDuplicationCheck )
     906            {
     907                if(lstrcmpi(name.c_str(),pMenuInfo[i].IdName)==0)
     908                {
     909                    isMatch = true;
    910910                    break;
    911911                }
    912912            }
    913             if(sw1==0){
    914                 ppNames=(char **)HeapReAlloc(hHeap,0,ppNames,sizeof(char *)*((*NamesNum)+1));
    915                 ppNames[*NamesNum]=pMenuInfo[i].IdName;
    916                 (*NamesNum)++;
     913            if( !isMatch )
     914            {
     915                namesForDuplicationCheck.push_back( pMenuInfo[i].IdName );
    917916
    918917                sprintf(buffer+(*base),"Const %s=%d\r\n",pMenuInfo[i].IdName,*ConstNumber);
     
    922921        }
    923922    }
    924     return ppNames;
    925923}
    926924int GetMakeMenuCommand(MENU_INFO *pMenuInfo,int NumberOfMenu,char *MenuHandle,char *Command,BOOL bMain){
     
    982980void SaveWindowProgram(){
    983981    extern HANDLE hHeap;
    984     int i,i2,i3,i4,i5,i6,sw1,sw2,sw3,sw4,size;
    985     char *buffer,**ppNames,temporary[MAX_PATH];
     982    int i,i2,i3,i4,i5,sw1,sw2,sw3,sw4,size;
     983    char *buffer,temporary[MAX_PATH];
    986984
    987985    size=2;
     
    10061004    //IDを定義
    10071005
    1008     ppNames=(char **)HeapAlloc(hHeap,0,1);
     1006    Jenga::Common::Strings namesForDuplicationCheck;
    10091007    i4=1000;
    10101008    i5=0;
    1011     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1009    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    10121010    {
    1013         BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos )
     1011        BOOST_FOREACH( const ActiveBasic::PM::ChildWindowInfo *pChildInfo, pWindowInfo->childWindowInfos )
    10141012        {
    10151013            //重複チェック
    1016             for(i6=0,sw1=0;i6<i5;i6++){
    1017                 if(lstrcmpi(ppNames[i6],pChildInfo->IdName)==0){
    1018                     sw1=1;
     1014            bool isMatch = false;
     1015            BOOST_FOREACH( const std::string &name, namesForDuplicationCheck )
     1016            {
     1017                if(lstrcmpi(name.c_str(),pChildInfo->GetName().c_str())==0){
     1018                    isMatch = true;
    10191019                    break;
    10201020                }
    10211021            }
    1022             if(sw1) continue;
    1023 
    1024             ppNames=(char **)HeapReAlloc(hHeap,0,ppNames,sizeof(char *)*(i5+1));
    1025             ppNames[i5]=pChildInfo->IdName;
    1026             i5++;
    1027 
    1028             sprintf(buffer+i2,"Const %s=%d\r\n",pChildInfo->IdName,i4);
     1022            if( isMatch ) continue;
     1023
     1024            namesForDuplicationCheck.push_back( pChildInfo->GetName() );
     1025
     1026            sprintf(buffer+i2,"Const %s=%d\r\n",pChildInfo->GetName().c_str(),i4);
    10291027            i2+=lstrlen(buffer+i2);
    10301028            i4++;
     
    10381036
    10391037    //メニューのIDを定義
    1040     ppNames=GetMenuItemConstData(projectInfo.pMenuInfo,projectInfo.NumberOfMenu,&i4,ppNames,&i5,buffer,&i2);
    1041 
    1042     HeapDefaultFree(ppNames);
     1038    GetMenuItemConstData(projectInfo.pMenuInfo,projectInfo.NumberOfMenu,&i4,namesForDuplicationCheck,buffer,&i2);
     1039
    10431040    lstrcpy(buffer+i2,"\r\n");
    10441041    i2+=lstrlen(buffer+i2);
     
    10461043
    10471044    //ハンドル変数を定義
    1048     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1045    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    10491046    {
    10501047        sprintf(buffer+i2,"Dim %s As HWND\r\n",pWindowInfo->GetHandleName().c_str());
     
    10821079    i2+=lstrlen(buffer+i2);
    10831080    i=0;
    1084     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1081    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    10851082    {
    1086         if(pWindowInfo->bgColor<=0&&
    1087             pWindowInfo->bgColor!=-(int)RGB(255,255,255)&&
    1088             pWindowInfo->bgColor!=-(int)RGB(0,0,0)){
     1083        if(pWindowInfo->GetBackgroundColor()<=0&&
     1084            pWindowInfo->GetBackgroundColor()!=-(int)RGB(255,255,255)&&
     1085            pWindowInfo->GetBackgroundColor()!=-(int)RGB(0,0,0)){
    10891086                sprintf(buffer+i2,"Dim _RadSys_hBackBrush%d As HBRUSH\r\n",i);
    10901087                i2+=lstrlen(buffer+i2);
    1091                 sprintf(buffer+i2,"_RadSys_hBackBrush%d=CreateSolidBrush(%d)\r\n",i,-pWindowInfo->bgColor);
     1088                sprintf(buffer+i2,"_RadSys_hBackBrush%d=CreateSolidBrush(%d)\r\n",i,-pWindowInfo->GetBackgroundColor());
    10921089                i2+=lstrlen(buffer+i2);
    10931090        }
    1094         if(pWindowInfo->bgColor>=0x1000){
     1091        if(pWindowInfo->GetBackgroundColor()>=0x1000){
    10951092                sprintf(buffer+i2,"Dim _RadSys_hBackBrush%d As HBRUSH\r\n",i);
    10961093                i2+=lstrlen(buffer+i2);
    10971094                sprintf(buffer+i2,"_RadSys_hBackBrush%d=CreatePatternBrush(LoadImage(GetModuleHandle(0),%s,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE or LR_SHARED))\r\n",
    10981095                    i,
    1099                     projectInfo.resourceManager.bitmapResources[pWindowInfo->bgColor-0x1000].idName.c_str());
     1096                    projectInfo.resourceManager.bitmapResources[pWindowInfo->GetBackgroundColor()-0x1000].idName.c_str());
    11001097                i2+=lstrlen(buffer+i2);
    11011098        }
     
    11081105
    11091106    //イメージ ボックス用の変数を定義
    1110     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1107    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    11111108    {
    1112         BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos )
     1109        BOOST_FOREACH( const ActiveBasic::PM::ChildWindowInfo *pChildInfo, pWindowInfo->childWindowInfos )
    11131110        {
    11141111            if(pChildInfo->Control==CT_IMAGEBOX){
    1115                 if((pChildInfo->style&0x000F)==SS_ICON||
    1116                     (pChildInfo->style&0x000F)==SS_BITMAP){
    1117                     sprintf(buffer+i2,"Dim hImage_%s_%s As HANDLE\r\n",pWindowInfo->GetName().c_str(),pChildInfo->IdName);
     1112                if((pChildInfo->GetStyle()&0x000F)==SS_ICON||
     1113                    (pChildInfo->GetStyle()&0x000F)==SS_BITMAP){
     1114                    sprintf(buffer+i2,"Dim hImage_%s_%s As HANDLE\r\n",pWindowInfo->GetName().c_str(),pChildInfo->GetName().c_str());
    11181115                    i2+=lstrlen(buffer+i2);
    11191116
     
    11631160    }
    11641161
    1165     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1162    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    11661163    {
    11671164        //フォントハンドル解放
     
    11791176    i2+=lstrlen(buffer+i2);
    11801177    i=0;
    1181     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1178    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    11821179    {
    1183         if(pWindowInfo->bgColor<=0&&
    1184             pWindowInfo->bgColor!=-(int)RGB(255,255,255)&&
    1185             pWindowInfo->bgColor!=-(int)RGB(0,0,0)){
     1180        if(pWindowInfo->GetBackgroundColor()<=0&&
     1181            pWindowInfo->GetBackgroundColor()!=-(int)RGB(255,255,255)&&
     1182            pWindowInfo->GetBackgroundColor()!=-(int)RGB(0,0,0)){
    11861183                sprintf(buffer+i2,"\tDeleteObject(_RadSys_hBackBrush%d)\r\n",i);
    11871184                i2+=lstrlen(buffer+i2);
     
    11981195
    11991196    i=0;
    1200     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1197    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    12011198    {
    12021199        if(i!=0){
     
    12101207        //処理メッセージを抽出
    12111208        ITEMEVENTINFO *pItemEventInfo;
    1212         ppNames=GetProcedureNamesOfMessageCall(i,&pItemEventInfo,&i3,&bAvailUserProc[i]);
     1209        char **ppNames=GetProcedureNamesOfMessageCall(i,&pItemEventInfo,&i3,&bAvailUserProc[i]);
    12131210
    12141211        sprintf(buffer+i2,"Function EventCall_%s(hWnd As HWND, message As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT\r\n",pWindowInfo->GetName().c_str());
     
    13631360    sw1=0;
    13641361    i=0;
    1365     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1362    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    13661363    {
    13671364        if(pWindowInfo->type==WNDTYPE_MODALDLG){
     
    13751372                i2+=lstrlen(buffer+i2);
    13761373            }
    1377             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",
     1374            sprintf(buffer+i2,"\t\t%s=CreateWindowEx(&H%08x,\"NORMALDLG\",\"%s\",&H%08x,%d,%d,%d,%d,hOwnerWnd,NULL As HMENU,GetModuleHandle(0),0)\r\n",
    13781375                pWindowInfo->GetHandleName().c_str(),
    1379                 pWindowInfo->ExStyle,
    1380                 pWindowInfo->caption,
    1381                 pWindowInfo->style,
     1376                pWindowInfo->GetExStyle(),
     1377                pWindowInfo->GetCaption().c_str(),
     1378                pWindowInfo->GetStyle(),
    13821379                pWindowInfo->pos.x,
    13831380                pWindowInfo->pos.y,
    13841381                pWindowInfo->size.cx,
    1385                 pWindowInfo->size.cy,
    1386                 pWindowInfo->id);
     1382                pWindowInfo->size.cy);
    13871383            i2+=lstrlen(buffer+i2);
    13881384            sprintf(buffer+i2,"\t\thDlg=%s\r\n",
     
    14021398            sprintf(buffer+i2,"\t\tSendMessage(%s,WM_INITDIALOG,0,0)\r\n",pWindowInfo->GetHandleName().c_str());
    14031399            i2+=lstrlen(buffer+i2);
    1404             if(pWindowInfo->IconResName){
    1405                 sprintf(buffer+i2,"\t\tSendMessage(%s,WM_SETICON,ICON_SMALL,LoadIcon(GetModuleHandle(0),MAKEINTRESOURCE(%s)) As LPARAM)\r\n",pWindowInfo->GetHandleName().c_str(),pWindowInfo->IconResName);
     1400            if( pWindowInfo->HasIcon() )
     1401            {
     1402                sprintf(buffer+i2,"\t\tSendMessage(%s,WM_SETICON,ICON_SMALL,LoadIcon(GetModuleHandle(0),MAKEINTRESOURCE(%s)) As LPARAM)\r\n",pWindowInfo->GetHandleName().c_str(),pWindowInfo->GetIconResourceName().c_str());
    14061403                i2+=lstrlen(buffer+i2);
    14071404            }
     
    14621459    i2+=lstrlen(buffer+i2);
    14631460    i=0;
    1464     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1461    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    14651462    {
    14661463        if(pWindowInfo->type==WNDTYPE_MODELESSDLG){
     
    14681465            i2+=lstrlen(buffer+i2);
    14691466
    1470             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",
     1467            sprintf(buffer+i2,"\t\t%s=CreateWindowEx(&H%08x,\"NORMALDLG\",\"%s\",&H%08x,%d,%d,%d,%d,hOwnerWnd,NULL As HMENU,GetModuleHandle(0),0)\r\n",
    14711468                pWindowInfo->GetHandleName().c_str(),
    1472                 pWindowInfo->ExStyle,
    1473                 pWindowInfo->caption,
    1474                 pWindowInfo->style,
     1469                pWindowInfo->GetExStyle(),
     1470                pWindowInfo->GetCaption().c_str(),
     1471                pWindowInfo->GetStyle(),
    14751472                pWindowInfo->pos.x,
    14761473                pWindowInfo->pos.y,
    14771474                pWindowInfo->size.cx,
    1478                 pWindowInfo->size.cy,
    1479                 pWindowInfo->id);
     1475                pWindowInfo->size.cy);
    14801476            i2+=lstrlen(buffer+i2);
    14811477            sprintf(buffer+i2,"\t\tCreateDialog=%s\r\n",pWindowInfo->GetHandleName().c_str());
     
    14941490            sprintf(buffer+i2,"\t\tSendMessage(%s,WM_INITDIALOG,0,0)\r\n",pWindowInfo->GetHandleName().c_str());
    14951491            i2+=lstrlen(buffer+i2);
    1496             if(pWindowInfo->IconResName){
    1497                 sprintf(buffer+i2,"\t\tSendMessage(%s,WM_SETICON,ICON_SMALL,LoadIcon(GetModuleHandle(0),MAKEINTRESOURCE(%s)) As LPARAM)\r\n",pWindowInfo->GetHandleName().c_str(),pWindowInfo->IconResName);
     1492            if( pWindowInfo->HasIcon() )
     1493            {
     1494                sprintf(buffer+i2,"\t\tSendMessage(%s,WM_SETICON,ICON_SMALL,LoadIcon(GetModuleHandle(0),MAKEINTRESOURCE(%s)) As LPARAM)\r\n",pWindowInfo->GetHandleName().c_str(),pWindowInfo->GetIconResourceName().c_str());
    14981495                i2+=lstrlen(buffer+i2);
    14991496            }
     
    15351532
    15361533    i=0;
    1537     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1534    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    15381535    {
    15391536        if(pWindowInfo->type==WNDTYPE_DEFAULT){
     
    15441541            i2+=2;
    15451542
    1546             if(pWindowInfo->IconResName==0){
     1543            if( pWindowInfo->HasIcon() )
     1544            {
     1545                sprintf(buffer+i2,"_RadSys_wcl.hIcon=LoadIcon(_RadSys_wcl.hInstance,MAKEINTRESOURCE(%s))\r\n",pWindowInfo->GetIconResourceName().c_str());
     1546                i2+=lstrlen(buffer+i2);
     1547                sprintf(buffer+i2,"_RadSys_wcl.hIconSm=LoadIcon(_RadSys_wcl.hInstance,MAKEINTRESOURCE(%s))\r\n",pWindowInfo->GetIconResourceName().c_str());
     1548                i2+=lstrlen(buffer+i2);
     1549            }
     1550            else{
    15471551                lstrcpy(buffer+i2,"_RadSys_wcl.hIcon=LoadIcon(NULL,MAKEINTRESOURCE(IDI_APPLICATION))\r\n");
    15481552                i2+=lstrlen(buffer+i2);
     
    15501554                i2+=lstrlen(buffer+i2);
    15511555            }
    1552             else{
    1553                 sprintf(buffer+i2,"_RadSys_wcl.hIcon=LoadIcon(_RadSys_wcl.hInstance,MAKEINTRESOURCE(%s))\r\n",pWindowInfo->IconResName);
    1554                 i2+=lstrlen(buffer+i2);
    1555                 sprintf(buffer+i2,"_RadSys_wcl.hIconSm=LoadIcon(_RadSys_wcl.hInstance,MAKEINTRESOURCE(%s))\r\n",pWindowInfo->IconResName);
    1556                 i2+=lstrlen(buffer+i2);
    1557             }
    15581556
    15591557            sprintf(buffer+i2,"_RadSys_wcl.lpszClassName=\"NORMAL%d\"\r\n",i);
     
    15631561            else sprintf(buffer+i2,"_RadSys_wcl.lpfnWndProc=AddressOf(EventCall_%s)\r\n",pWindowInfo->GetName().c_str());
    15641562            i2+=lstrlen(buffer+i2);
    1565             if(pWindowInfo->bgColor==COLOR_3DFACE)
     1563            if(pWindowInfo->GetBackgroundColor()==COLOR_3DFACE)
    15661564                lstrcpy(buffer+i2,"_RadSys_wcl.hbrBackground=h3DFaceBrush\r\n");
    1567             else if(pWindowInfo->bgColor==-(int)RGB(255,255,255))
     1565            else if(pWindowInfo->GetBackgroundColor()==-(int)RGB(255,255,255))
    15681566                lstrcpy(buffer+i2,"_RadSys_wcl.hbrBackground=GetStockObject(WHITE_BRUSH)\r\n");
    1569             else if(pWindowInfo->bgColor==-(int)RGB(0,0,0))
     1567            else if(pWindowInfo->GetBackgroundColor()==-(int)RGB(0,0,0))
    15701568                lstrcpy(buffer+i2,"_RadSys_wcl.hbrBackground=GetStockObject(BLACK_BRUSH)\r\n");
    1571             else if(pWindowInfo->bgColor<=0||
    1572                 pWindowInfo->bgColor>=0x1000){
     1569            else if(pWindowInfo->GetBackgroundColor()<=0||
     1570                pWindowInfo->GetBackgroundColor()>=0x1000){
    15731571                //色指定またはビットマップ
    15741572                sprintf(buffer+i2,"_RadSys_wcl.hbrBackground=_RadSys_hBackBrush%d\r\n",i);
     
    15781576            i2+=lstrlen(buffer+i2);
    15791577            sprintf(buffer+i2,"CreateWindowEx(&H%08x,\"%s%d\",\"%s\",&H%08x,%d,%d,%d,%d,0,0,GetModuleHandle(0),0)\r\n",
    1580                 pWindowInfo->ExStyle,
    1581                 pWindowInfo->ClassName,i,
    1582                 pWindowInfo->caption,
    1583                 pWindowInfo->style,
     1578                pWindowInfo->GetExStyle(),
     1579                pWindowInfo->GetClassName().c_str(), i,
     1580                pWindowInfo->GetCaption().c_str(),
     1581                pWindowInfo->GetStyle(),
    15841582                pWindowInfo->pos.x,
    15851583                pWindowInfo->pos.y,
     
    16301628    return i2;
    16311629}
    1632 void SaveWindowFile( char *path, const WindowInfos &windowInfos )
     1630void SaveWindowFile( char *path, const ActiveBasic::PM::WindowInfos &windowInfos )
    16331631{
    16341632    extern HANDLE hHeap;
     
    16401638    buffer=(char *)HeapAlloc(hHeap,0,GENERAL_SIZE*size);
    16411639    i2=0;
    1642     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     1640    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    16431641    {
    16441642        sprintf(buffer+i2,"WINDOW:%s\r\n",pWindowInfo->GetName().c_str());
     
    16501648        sprintf(buffer+i2,"    SIZE      = %d,%d\r\n",pWindowInfo->size.cx,pWindowInfo->size.cy);
    16511649        i2+=lstrlen(buffer+i2);
    1652         sprintf(buffer+i2,"    CAPTION   = \"%s\"\r\n",pWindowInfo->caption);
    1653         i2+=lstrlen(buffer+i2);
    1654         sprintf(buffer+i2,"    STYLE     = &H%08x\r\n",pWindowInfo->style);
    1655         i2+=lstrlen(buffer+i2);
    1656         sprintf(buffer+i2,"    EXSTYLE   = &H%08x\r\n",pWindowInfo->ExStyle);
    1657         i2+=lstrlen(buffer+i2);
    1658         if(pWindowInfo->MenuID){
    1659             sprintf(buffer+i2,"    MENUID    = %s\r\n",pWindowInfo->MenuID);
    1660             i2+=lstrlen(buffer+i2);
    1661         }
    1662         sprintf(buffer+i2,"    ID        = %d\r\n",pWindowInfo->id);
    1663         i2+=lstrlen(buffer+i2);
    1664         sprintf(buffer+i2,"    BGCOLOR   = %d\r\n",pWindowInfo->bgColor);
     1650        sprintf(buffer+i2,"    CAPTION   = \"%s\"\r\n",pWindowInfo->GetCaption().c_str());
     1651        i2+=lstrlen(buffer+i2);
     1652        sprintf(buffer+i2,"    STYLE     = &H%08x\r\n",pWindowInfo->GetStyle());
     1653        i2+=lstrlen(buffer+i2);
     1654        sprintf(buffer+i2,"    EXSTYLE   = &H%08x\r\n",pWindowInfo->GetExStyle());
     1655        i2+=lstrlen(buffer+i2);
     1656        if( pWindowInfo->HasMenu() )
     1657        {
     1658            sprintf(buffer+i2,"    MENUID    = %s\r\n",pWindowInfo->GetMenuIdName().c_str());
     1659            i2+=lstrlen(buffer+i2);
     1660        }
     1661        sprintf(buffer+i2,"    BGCOLOR   = %d\r\n",pWindowInfo->GetBackgroundColor());
    16651662        i2+=lstrlen(buffer+i2);
    16661663        sprintf(buffer+i2,"    FONT      = %d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,\"%s\"\r\n",
     
    16801677            pWindowInfo->LogFont.lfFaceName);
    16811678        i2+=lstrlen(buffer+i2);
    1682         if(pWindowInfo->IconResName){
    1683             sprintf(buffer+i2,"    ICONID    = %s\r\n",pWindowInfo->IconResName);
    1684             i2+=lstrlen(buffer+i2);
    1685         }
    1686         sprintf(buffer+i2,"    CLASS     = \"%s\"\r\n",pWindowInfo->ClassName);
     1679        if( pWindowInfo->HasIcon() )
     1680        {
     1681            sprintf(buffer+i2,"    ICONID    = %s\r\n",pWindowInfo->GetIconResourceName().c_str());
     1682            i2+=lstrlen(buffer+i2);
     1683        }
     1684        sprintf(buffer+i2,"    CLASS     = \"%s\"\r\n",pWindowInfo->GetClassName().c_str());
    16871685        i2+=lstrlen(buffer+i2);
    16881686        sprintf(buffer+i2,"    CALLBACK  = %s\r\n",pWindowInfo->CallBackName);
     
    16921690        sprintf(buffer+i2,"    FILEPATH  = %s\r\n",pWindowInfo->filepath);
    16931691        i2+=lstrlen(buffer+i2);
    1694         BOOST_FOREACH( const CHILDINFO *pChildInfo, pWindowInfo->childWindowInfos )
     1692        BOOST_FOREACH( const ActiveBasic::PM::ChildWindowInfo *pChildInfo, pWindowInfo->childWindowInfos )
    16951693        {
    1696             temporary=SetCaptionSequence(pChildInfo->caption);
     1694            temporary=SetCaptionSequence(pChildInfo->GetCaption().c_str());
    16971695            sprintf(buffer+i2,"    ITEM      = %s,%d,%d,%d,%d,\"%s\",&H%08x,&H%08x,%d",
    1698                 pChildInfo->IdName,
     1696                pChildInfo->GetName().c_str(),
    16991697                pChildInfo->pos.x,pChildInfo->pos.y,
    17001698                pChildInfo->size.cx,pChildInfo->size.cy,
    17011699                temporary,
    1702                 pChildInfo->style,
    1703                 pChildInfo->ExStyle,
     1700                pChildInfo->GetStyle(),
     1701                pChildInfo->GetExStyle(),
    17041702                pChildInfo->Control
    17051703            );
     
    17071705            HeapDefaultFree(temporary);
    17081706            if(pChildInfo->Control==CT_IMAGEBOX){
    1709                 sprintf(buffer+i2,",%d,\"%s\"",pChildInfo->ImageCtrlInfo.type,pChildInfo->ImageCtrlInfo.path);
     1707                sprintf(buffer+i2,",%d,\"%s\"",pChildInfo->image.type,pChildInfo->image.path.c_str());
    17101708                i2+=lstrlen(buffer+i2);
    17111709            }
     
    18831881            //ウィンドウ
    18841882            if(lstrcmpi(temporary,"WINDOW")==0&&i3==0){
    1885                 projectInfo.windowInfos.push_back( new WindowInfo() );
     1883                projectInfo.windowInfos.push_back( new ActiveBasic::PM::WindowInfo() );
    18861884                i3=1;
    18871885
     
    19061904                if(temp2[0]=='\"'&&temp2[lstrlen(temp2)-1]=='\"'){
    19071905                    temp2[lstrlen(temp2)-1]=0;
    1908                     projectInfo.windowInfos.back()->caption=(char *)HeapAlloc(hHeap,0,i2+1);
    1909                     lstrcpy(projectInfo.windowInfos.back()->caption,temp2+1);
     1906                    projectInfo.windowInfos.back()->SetCaption( temp2+1 );
    19101907                }
    19111908            }
    1912             else if(lstrcmpi(temporary,"STYLE")==0&&i3==1) projectInfo.windowInfos.back()->style=GetValue(temp2);
    1913             else if(lstrcmpi(temporary,"EXSTYLE")==0&&i3==1) projectInfo.windowInfos.back()->ExStyle=GetValue(temp2);
     1909            else if(lstrcmpi(temporary,"STYLE")==0&&i3==1) projectInfo.windowInfos.back()->SetStyle( GetValue(temp2) );
     1910            else if(lstrcmpi(temporary,"EXSTYLE")==0&&i3==1) projectInfo.windowInfos.back()->SetExStyle( GetValue(temp2) );
    19141911            else if(lstrcmpi(temporary,"MENUID")==0&&i3==1){
    1915                 projectInfo.windowInfos.back()->MenuID=(char *)HeapAlloc(hHeap,0,i2+1);
    1916                 lstrcpy(projectInfo.windowInfos.back()->MenuID,temp2);
    1917             }
    1918             else if(lstrcmpi(temporary,"ID")==0&&i3==1) projectInfo.windowInfos.back()->id=GetValue(temp2);
     1912                projectInfo.windowInfos.back()->SetMenuIdName( temp2 );
     1913            }
     1914            else if(lstrcmpi(temporary,"ID")==0&&i3==1)
     1915            {
     1916                // 無視
     1917            }
    19191918            else if(lstrcmpi(temporary,"BGCOLOR")==0&&i3==1){
    1920                 projectInfo.windowInfos.back()->bgColor=GetValue(temp2);
     1919                projectInfo.windowInfos.back()->SetBackgroundColor( GetValue(temp2) );
    19211920                if(projectInfo.dwVersion<=3){
    19221921                    //プロジェクトバージョンが3以前のときは新値に変換する
    1923                     if(projectInfo.windowInfos.back()->bgColor==-1)
    1924                         projectInfo.windowInfos.back()->bgColor=-(int)RGB(255,255,255);
     1922                    if(projectInfo.windowInfos.back()->GetBackgroundColor()==-1)
     1923                        projectInfo.windowInfos.back()->SetBackgroundColor( -(int)RGB(255,255,255) );
    19251924                }
    19261925            }
     
    19701969            }
    19711970            else if(lstrcmpi(temporary,"ICONID")==0&&i3==1){
    1972                 projectInfo.windowInfos.back()->IconResName=(char *)HeapAlloc(hHeap,0,i2+1);
    1973                 lstrcpy(projectInfo.windowInfos.back()->IconResName,temp2);
     1971                projectInfo.windowInfos.back()->SetIconResourceName( temp2 );
    19741972            }
    19751973            else if(lstrcmpi(temporary,"CLASS")==0&&i3==1){
    19761974                if(temp2[0]=='\"'&&temp2[lstrlen(temp2)-1]=='\"'){
    19771975                    temp2[lstrlen(temp2)-1]=0;
    1978                     projectInfo.windowInfos.back()->ClassName=(char *)HeapAlloc(hHeap,0,i2+1);
    1979                     lstrcpy(projectInfo.windowInfos.back()->ClassName,temp2+1);
     1976                    projectInfo.windowInfos.back()->SetClassName( temp2+1 );
    19801977                }
    19811978            }
     
    19941991            }
    19951992            else if(lstrcmpi(temporary,"ITEM")==0&&i3==1){
    1996                 CHILDINFO *pChildInfo = new CHILDINFO();
     1993                ActiveBasic::PM::ChildWindowInfo *pChildInfo = new ActiveBasic::PM::ChildWindowInfo();
    19971994
    19981995                //ID
    19991996                i5=GetOneParameter(temp2,0,temp3);
    2000                 pChildInfo->IdName=(char *)HeapAlloc(hHeap,0,lstrlen(temp3)+1);
    2001                 lstrcpy(pChildInfo->IdName,temp3);
     1997                pChildInfo->SetName( temp3 );
    20021998
    20031999                //位置
     
    20152011                RemoveStringQuotes(temp3);
    20162012                RestoreCaptionSequence(temp3);
    2017                 pChildInfo->caption=(char *)HeapAlloc(hHeap,0,lstrlen(temp3)+1);
    2018                 lstrcpy(pChildInfo->caption,temp3);
     2013                pChildInfo->SetCaption( temp3 );
    20192014
    20202015                //スタイル
    20212016                i5=GetOneParameter(temp2,i5,temp3);
    2022                 pChildInfo->style=GetValue(temp3);
     2017                pChildInfo->SetStyle( GetValue(temp3) );
    20232018
    20242019                //拡張スタイル
    20252020                i5=GetOneParameter(temp2,i5,temp3);
    2026                 pChildInfo->ExStyle=GetValue(temp3);
     2021                pChildInfo->SetExStyle( GetValue(temp3) );
    20272022
    20282023                //クラス
     
    20332028                    //イメージ ボックスの場合
    20342029                    i5=GetOneParameter(temp2,i5,temp3);
    2035                     pChildInfo->ImageCtrlInfo.type=GetValue(temp3);
     2030                    pChildInfo->image.type = (ActiveBasic::PM::ImageReferenceType::EnumType)GetValue(temp3);
    20362031                    i5=GetOneParameter(temp2,i5,temp3);
    20372032                    RemoveStringQuotes(temp3);
    2038                     pChildInfo->ImageCtrlInfo.path=(char *)HeapAlloc(hHeap,0,lstrlen(temp3)+1);
    2039                     lstrcpy(pChildInfo->ImageCtrlInfo.path,temp3);
     2033                    pChildInfo->image.path = temp3;
    20402034                }
    20412035
     
    21772171        return;
    21782172    }
    2179     BOOST_FOREACH( WindowInfo *pWindowInfo, projectInfo.windowInfos )
     2173    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, projectInfo.windowInfos )
    21802174    {
    21812175        if(lstrcmpi(NewWindow.name,pWindowInfo->GetName().c_str())==0){
     
    22002194
    22012195    //projectInfo.windowInfos構造体コレクションに追加
    2202     projectInfo.windowInfos.push_back( new WindowInfo() );
     2196    projectInfo.windowInfos.push_back( new ActiveBasic::PM::WindowInfo() );
    22032197
    22042198
     
    22192213
    22202214    //ウィンドウテキスト
    2221     projectInfo.windowInfos.back()->caption=(char *)HeapAlloc(hHeap,0,lstrlen(NewWindow.name)+1);
    2222     lstrcpy(projectInfo.windowInfos.back()->caption,NewWindow.name);
     2215    projectInfo.windowInfos.back()->SetCaption( NewWindow.name );
    22232216
    22242217    //スタイル
     
    22262219        case WNDTYPE_DEFAULT:
    22272220            //通常ウィンドウ
    2228             projectInfo.windowInfos.back()->style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX;
     2221            projectInfo.windowInfos.back()->SetStyle( WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX );
    22292222            break;
    22302223        case WNDTYPE_MODALDLG:
    22312224        case WNDTYPE_MODELESSDLG:
    22322225            //ダイアログ テンプレート(最大化、最小化ボタンをなくして、細枠にする)
    2233             projectInfo.windowInfos.back()->style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU;
     2226            projectInfo.windowInfos.back()->SetStyle( WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU );
    22342227            break;
    22352228    }
    22362229
    22372230    //拡張スタイル
    2238     projectInfo.windowInfos.back()->ExStyle=0;
     2231    projectInfo.windowInfos.back()->SetExStyle( 0 );
    22392232
    22402233    //メニュー
    2241     projectInfo.windowInfos.back()->MenuID=0;
    2242 
    2243     //ID
    2244     projectInfo.windowInfos.back()->id=0;
     2234    projectInfo.windowInfos.back()->SetMenuIdName( "" );
    22452235
    22462236    //背景色
    2247     projectInfo.windowInfos.back()->bgColor=COLOR_3DFACE;
     2237    projectInfo.windowInfos.back()->SetBackgroundColor( COLOR_3DFACE );
    22482238
    22492239    //フォント
     
    22512241
    22522242    //アイコン
    2253     projectInfo.windowInfos.back()->IconResName=0;
     2243    projectInfo.windowInfos.back()->SetIconResourceName( "" );
    22542244
    22552245    //クラス名
    22562246    lstrcpy(temporary,"NORMAL");
    2257     projectInfo.windowInfos.back()->ClassName=(char *)HeapAlloc(hHeap,0,lstrlen(temporary)+1);
    2258     lstrcpy(projectInfo.windowInfos.back()->ClassName,temporary);
     2247    projectInfo.windowInfos.back()->SetClassName( temporary );
    22592248
    22602249    //コールバック関数名
     
    23232312    int i;
    23242313
    2325     WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
     2314    ActiveBasic::PM::WindowInfo *pWindowInfo = projectInfo.windowInfos[WndInfoNum];
    23262315
    23272316    //ウィンドウが開かれている場合は閉じる
     
    23352324    //ウィンドウ情報のメモリを解放
    23362325    HeapDefaultFree(pWindowInfo->filepath);
    2337     HeapDefaultFree(pWindowInfo->caption);
    2338     HeapDefaultFree(pWindowInfo->ClassName);
    23392326    HeapDefaultFree(pWindowInfo->CallBackName);
    23402327
    23412328    //子ウィンドウのメモリを解放
    2342     for(i=0;i<pWindowInfo->childWindowInfos.size();i++){
    2343         HeapDefaultFree(pWindowInfo->childWindowInfos[i]->IdName);
    2344         HeapDefaultFree(pWindowInfo->childWindowInfos[i]->caption);
    2345         delete pWindowInfo->childWindowInfos[i];
     2329    BOOST_FOREACH( ActiveBasic::PM::ChildWindowInfo *pChildWindowInfo, pWindowInfo->childWindowInfos )
     2330    {
     2331        delete pChildWindowInfo;
    23462332    }
    23472333    pWindowInfo->childWindowInfos.clear();
  • trunk/ab5.0/abdev/abdev/abdev.cpp

    r619 r624  
    256256        ////////////////
    257257
    258         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     258        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
    259259        if(RadInfo.NowDragging>=FRAME_CHANGEPOS_START&&RadInfo.NowDragging<=FRAME_CHANGEPOS_END){
    260260            sprintf(temporary,"pos %d, %d",
  • trunk/ab5.0/abdev/abdev/abdev.h

    r623 r624  
    7171//プロジェクト情報
    7272NEWPROJECTINFO NewProjectInfo;
    73 ActiveBasic::IDE::Project projectInfo;
     73ActiveBasic::PM::Project projectInfo;
    7474HWND hProjectView;      //プロジェクト ビュー
    7575HWND hProjectView_ToolWindow;
  • trunk/ab5.0/abdev/abdev/include/ProjectManager/ProjectManager.h

    r623 r624  
    22
    33
    4 namespace ActiveBasic{ namespace IDE{
     4namespace ActiveBasic{ namespace PM{
    55
    66class Project
     
    8383}}
    8484
    85 extern ActiveBasic::IDE::Project projectInfo;
     85extern ActiveBasic::PM::Project projectInfo;
  • trunk/ab5.0/abdev/abdev/include/ProjectManager/WindowManager.h

    r617 r624  
    22
    33
    4 namespace ActiveBasic{ namespace IDE{
    5 
    6 /*
     4namespace ActiveBasic{ namespace PM{
     5
     6
    77struct ImageReferenceType
    88{
     
    1414};
    1515
    16 struct IMAGECTRLINFO
    17 {
     16class ImageControlInfo
     17{
     18public:
    1819    ImageReferenceType::EnumType type;
    1920    std::string path;
    20 };
    21 */
    22 
    23 }}
    24 
    25 
    26 //イメージタイプ
    27 #define IMGTYPE_FILE    0
    28 #define IMGTYPE_RES     1
    29 
    30 struct IMAGECTRLINFO{
    31     int type;
    32     char *path;
    33 };
    34 
    35 class CHILDINFO
    36 {
    37 public:
    38     char *IdName;
     21
     22    bool IsFile() const
     23    {
     24        return ( type == ImageReferenceType::File );
     25    }
     26    bool IsResource() const
     27    {
     28        return ( type == ImageReferenceType::Resource );
     29    }
     30};
     31
     32class WindowInfoBase
     33{
     34public:
     35    const std::string &GetName() const
     36    {
     37        return name;
     38    }
     39    void SetName( const std::string &name )
     40    {
     41        this->name = name;
     42    }
     43
     44    const std::string &GetCaption() const
     45    {
     46        return caption;
     47    }
     48    void SetCaption( const std::string &caption )
     49    {
     50        this->caption = caption;
     51    }
     52
     53    DWORD GetStyle() const
     54    {
     55        return style;
     56    }
     57    void SetStyle( DWORD style )
     58    {
     59        this->style = style;
     60    }
     61    void AddStyle( DWORD style )
     62    {
     63        this->style |= style;
     64    }
     65    void AndStyle( DWORD style )
     66    {
     67        this->style &= style;
     68    }
     69    void DeleteStyle( DWORD style )
     70    {
     71        this->style &= ~style;
     72    }
     73
     74    DWORD GetExStyle() const
     75    {
     76        return exstyle;
     77    }
     78    void SetExStyle( DWORD exstyle )
     79    {
     80        this->exstyle = exstyle;
     81    }
     82    void AddExStyle( DWORD exstyle )
     83    {
     84        this->exstyle |= exstyle;
     85    }
     86
     87private:
     88    std::string name;
     89    std::string caption;
     90    DWORD style;
     91    DWORD exstyle;
     92
     93public:
    3994    POINT pos;
    4095    SIZE size;
    41     char *caption;
    42     DWORD style;
    43     DWORD ExStyle;
     96};
     97
     98class ChildWindowInfo
     99    : public WindowInfoBase
     100{
     101public:
    44102    int Control;
    45103
    46     IMAGECTRLINFO ImageCtrlInfo;
    47 };
     104    ImageControlInfo image;
     105};
     106typedef std::vector<ChildWindowInfo *> ChildWindowInfos;
    48107class WindowInfo
     108    : public WindowInfoBase
    49109{
    50110public:
    51111    WindowInfo()
    52         : caption( NULL )
    53         , MenuID( NULL )
    54         , IconResName( NULL )
    55         , ClassName( NULL )
     112        : WindowInfoBase()
    56113        , CallBackName( NULL )
    57114    {
    58115    }
    59116
    60     void SetName( const std::string &name )
    61     {
    62         this->name = name;
    63     }
    64     const std::string &GetName() const
    65     {
    66         return name;
    67     }
    68 
     117    const std::string &GetClassName() const
     118    {
     119        return className;
     120    }
     121    void SetClassName( const std::string &className )
     122    {
     123        this->className = className;
     124    }
     125
     126    const std::string &GetHandleName() const
     127    {
     128        return handleName;
     129    }
    69130    void SetHandleName( const std::string &handleName )
    70131    {
    71132        this->handleName = handleName;
    72133    }
    73     const std::string &GetHandleName() const
    74     {
    75         return handleName;
     134
     135    const std::string &GetMenuIdName() const
     136    {
     137        return menuIdName;
     138    }
     139    void SetMenuIdName( const std::string &menuIdName )
     140    {
     141        this->menuIdName = menuIdName;
     142    }
     143    bool HasMenu() const
     144    {
     145        return !menuIdName.empty();
     146    }
     147
     148    int GetBackgroundColor() const
     149    {
     150        return backgroundColor;
     151    }
     152    void SetBackgroundColor( int backgroundColor )
     153    {
     154        this->backgroundColor = backgroundColor;
     155    }
     156
     157    const std::string &GetIconResourceName() const
     158    {
     159        return iconResourceName;
     160    }
     161    void SetIconResourceName( const std::string &iconResourceName )
     162    {
     163        this->iconResourceName = iconResourceName;
     164    }
     165    bool HasIcon() const
     166    {
     167        return !iconResourceName.empty();
    76168    }
    77169
    78170    //ウィンドウデータ
    79     POINT pos;
    80     SIZE size;
    81     char *caption;
    82     DWORD style;
    83     DWORD ExStyle;
    84     char *MenuID;
    85     int id;
    86     int bgColor;
    87171    LOGFONT LogFont;
    88     char *IconResName;
    89     char *ClassName;
    90172    char *CallBackName;
    91173    long type;
     
    93175
    94176    //子ウィンドウ管理
    95     std::vector<CHILDINFO *> childWindowInfos;
     177    ChildWindowInfos childWindowInfos;
    96178
    97179    //ツリー項目
     
    99181
    100182private:
    101     std::string name;
     183    std::string className;
    102184    std::string handleName;
     185    std::string menuIdName;
     186    int backgroundColor;
     187    std::string iconResourceName;
    103188};
    104189
     
    133218    }
    134219};
     220
     221
     222}}
  • trunk/ab5.0/abdev/abdev/src/MainFrame.cpp

    r621 r624  
    632632    }
    633633    else if(MdiInfo[WndNum].DocType==WNDTYPE_RAD){
    634         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     634        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
    635635        int indexOfWndInfo = GetWndInfoNum(MdiInfo[WndNum].path);
    636636
     
    811811    }
    812812    else if(MdiInfo[WndNum].DocType==WNDTYPE_RAD){
    813         WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
    814         for(int i3=0;i3<pWindowInfo->childWindowInfos.size();i3++){
    815             MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3]=i3;
     813        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[WndNum].path);
     814        for( int i3=0; i3<static_cast<int>(pWindowInfo->childWindowInfos.size()); i3++ )
     815        {
     816            MdiInfo[WndNum].MdiRadInfo->SelectingItem[i3] = i3;
    816817        }
    817818        DrawRadWindow(WndNum,pWindowInfo);
  • trunk/ab5.0/abdev/abdev/src/ProjectManager/ProjectManager.cpp

    r623 r624  
    11#include "stdafx.h"
    22
    3 using namespace ActiveBasic::IDE;
     3using namespace ActiveBasic::PM;
    44
    55void OpenWorkfile( const std::string &path );
     
    293293        if(MdiInfo[WndNum].DocType==WNDTYPE_ICONEDIT){
    294294            if(MdiInfo[WndNum].MdiIconEditInfo->bModify){
    295                 for(i=0;i<this->resourceManager.iconResources.size();i++){
    296                     lstrcpy(temporary,this->resourceManager.iconResources[i].filepath.c_str());
     295                BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, resourceManager.iconResources )
     296                {
     297                    lstrcpy(temporary,resourceItem.filepath.c_str());
    297298                    lstrcpy( temporary, this->GetWorkDir().GetFullPath( temporary ).c_str() );
    298299                    if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){
     
    357358        i2=0;
    358359        i3=101;
    359         for(i=0;i<this->resourceManager.cursorResources.size();i++,i3++){
     360        BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, resourceManager.cursorResources )
     361        {
    360362            sprintf(buffer+i2,"Const %s=%d\r\n",
    361                 this->resourceManager.cursorResources[i].idName.c_str(),
     363                resourceItem.idName.c_str(),
    362364                i3);
    363365            i2+=lstrlen(buffer+i2);
    364         }
    365         for(i=0;i<this->resourceManager.bitmapResources.size();i++,i3++){
     366
     367            i3++;
     368        }
     369        BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, resourceManager.bitmapResources )
     370        {
    366371            sprintf(buffer+i2,"Const %s=%d\r\n",
    367                 this->resourceManager.bitmapResources[i].idName.c_str(),
     372                resourceItem.idName.c_str(),
    368373                i3);
    369374            i2+=lstrlen(buffer+i2);
    370         }
    371         for(i=0;i<this->resourceManager.iconResources.size();i++,i3++){
     375
     376            i3++;
     377        }
     378        BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, resourceManager.iconResources )
     379        {
    372380            sprintf(buffer+i2,"Const %s=%d\r\n",
    373                 this->resourceManager.iconResources[i].idName.c_str(),
     381                resourceItem.idName.c_str(),
    374382                i3);
    375383            i2+=lstrlen(buffer+i2);
     384
     385            i3++;
    376386        }
    377387
     
    380390
    381391        i2=0;
    382         for(i=0;i<this->resourceManager.cursorResources.size();i++){
     392        BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, resourceManager.cursorResources )
     393        {
    383394            sprintf(buffer+i2,"%s CURSOR \"%s\"\r\n",
    384                 this->resourceManager.cursorResources[i].idName.c_str(),
    385                 this->resourceManager.cursorResources[i].filepath.c_str());
    386             i2+=lstrlen(buffer+i2);
    387         }
    388         for(i=0;i<this->resourceManager.bitmapResources.size();i++){
     395                resourceItem.idName.c_str(),
     396                resourceItem.filepath.c_str());
     397            i2+=lstrlen(buffer+i2);
     398        }
     399        BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, resourceManager.bitmapResources )
     400        {
    389401            sprintf(buffer+i2,"%s BITMAP \"%s\"\r\n",
    390                 this->resourceManager.bitmapResources[i].idName.c_str(),
    391                 this->resourceManager.bitmapResources[i].filepath.c_str());
    392             i2+=lstrlen(buffer+i2);
    393         }
    394         for(i=0;i<this->resourceManager.iconResources.size();i++){
     402                resourceItem.idName.c_str(),
     403                resourceItem.filepath.c_str());
     404            i2+=lstrlen(buffer+i2);
     405        }
     406        BOOST_FOREACH( const ActiveBasic::Common::ResourceItem &resourceItem, resourceManager.iconResources )
     407        {
    395408            sprintf(buffer+i2,"%s ICON \"%s\"\r\n",
    396                 this->resourceManager.iconResources[i].idName.c_str(),
    397                 this->resourceManager.iconResources[i].filepath.c_str());
     409                resourceItem.idName.c_str(),
     410                resourceItem.filepath.c_str());
    398411            i2+=lstrlen(buffer+i2);
    399412        }
     
    521534    extern HANDLE hHeap;
    522535    extern MDIINFO MdiInfo[MAX_WNDNUM];
    523     int i,i2,WndNum;
     536    int i,WndNum;
    524537    HWND hChild,hCloseChild;
    525538    char temporary[MAX_PATH];
     
    587600
    588601    //ウィンドウ情報のメモリを解放
    589     BOOST_FOREACH( WindowInfo *pWindowInfo, windowInfos )
     602    BOOST_FOREACH( ActiveBasic::PM::WindowInfo *pWindowInfo, windowInfos )
    590603    {
    591         HeapDefaultFree(pWindowInfo->caption);
    592         HeapDefaultFree(pWindowInfo->ClassName);
    593604        HeapDefaultFree(pWindowInfo->CallBackName);
    594605        HeapDefaultFree(pWindowInfo->filepath);
    595         if(pWindowInfo->MenuID)
    596             HeapDefaultFree(pWindowInfo->MenuID);
    597         if(pWindowInfo->IconResName)
    598             HeapDefaultFree(pWindowInfo->IconResName);
    599606
    600607        //子ウィンドウのメモリを解放
    601         for(i2=0;i2<pWindowInfo->childWindowInfos.size();i2++){
    602             HeapDefaultFree(pWindowInfo->childWindowInfos[i2]->IdName);
    603             HeapDefaultFree(pWindowInfo->childWindowInfos[i2]->caption);
    604             if(pWindowInfo->childWindowInfos[i2]->Control==CT_IMAGEBOX){
    605                 //イメージ ボックスの場合
    606                 HeapDefaultFree(pWindowInfo->childWindowInfos[i2]->ImageCtrlInfo.path);
    607             }
    608 
    609             delete pWindowInfo->childWindowInfos[i2];
     608        BOOST_FOREACH( ActiveBasic::PM::ChildWindowInfo *pChildWindowInfo, pWindowInfo->childWindowInfos )
     609        {
     610            delete pChildWindowInfo;
    610611        }
    611612        pWindowInfo->childWindowInfos.clear();
Note: See TracChangeset for help on using the changeset viewer.