Changeset 624 in dev for trunk/ab5.0


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

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

Location:
trunk/ab5.0
Files:
1 added
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                 &nbs