Ignore:
Timestamp:
Jan 30, 2011, 10:45:09 PM (13 years ago)
Author:
イグトランス (egtra)
Message:

DialogBox, CreateDialogの代替関数を実装

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/abdev/RadToolsAndPropertyProc.cpp

    r763 r794  
    211211    switch(message){
    212212        case WM_CREATE:
    213             CreateDialog(hResInst,MAKEINTRESOURCE(IDD_RAD_CTRLBUTTONS),hwnd,(DLGPROC)RadToolButtonsProc);
     213            ActiveBasic::Resource::CreateDialogAlt(hResInst, IDD_RAD_CTRLBUTTONS, hwnd, RadToolButtonsProc);
    214214            return 0;
    215215        case WM_VSCROLL:
     
    679679                case IDC_RENAMEWINDOW:
    680680                    {
    681                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW_RENAME),hwnd,DlgRadProperty_Window_Rename)) return 1;
     681                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_WINDOW_RENAME, hwnd, DlgRadProperty_Window_Rename))
     682                        {
     683                            return 1;
     684                        }
    682685                        i=GetWndNum(GetParent(GetParent(hwnd)));
    683686                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path);
     
    688691                case IDC_RENAMECAPTION:
    689692                    {
    690                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMECAPTION),hwnd,DlgRadProperty_Item_RenameCaption)) return 1;
     693                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_RENAMECAPTION, hwnd, DlgRadProperty_Item_RenameCaption))
     694                        {
     695                            return 1;
     696                        }
    691697                        i=GetWndNum(GetParent(GetParent(hwnd)));
    692698                        ActiveBasic::PM::WindowInfo *pWindowInfo = GetWndInfo(MdiInfo[i]->path);
     
    10731079
    10741080                case IDC_EXSTYLE:
    1075                     if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_WINDOW_EXSTYLE),hwnd,DlgRadProperty_Window_ExStyle)) return 1;
     1081                    if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_WINDOW_EXSTYLE, hwnd, DlgRadProperty_Window_ExStyle))
     1082                    {
     1083                        return 1;
     1084                    }
    10761085                    i=GetWndNum(GetParent(GetParent(hwnd)));
    10771086                    DrawRadWindow(i,GetWndInfo(MdiInfo[i]->path));
     
    13051314    switch(LOWORD(wParam)){
    13061315        case IDC_RENAMEID:
    1307             if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMEID),hwnd,DlgRadProperty_Item_RenameID)) return 1;
     1316            if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_RENAMEID, hwnd, DlgRadProperty_Item_RenameID))
     1317            {
     1318                return 1;
     1319            }
    13081320            SetDlgItemText(hwnd,IDC_IDNAME,pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->GetName().c_str());
    13091321            return 1;
    13101322        case IDC_RENAMECAPTION:
    1311             if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_RENAMECAPTION),hwnd,DlgRadProperty_Item_RenameCaption)) return 1;
     1323            if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_RENAMECAPTION, hwnd, DlgRadProperty_Item_RenameCaption))
     1324            {
     1325                return 1;
     1326            }
    13121327            SetDlgItemText(hwnd,IDC_CAPTION,pWindowInfo->childWindowInfos[MdiInfo[WndNum]->MdiRadInfo->SelectingItem[0]]->GetCaption().c_str());
    13131328            return 1;
     
    16341649
    16351650                    case IDC_EXSTYLE:
    1636                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     1651                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     1652                        {
     1653                            return 1;
     1654                        }
    16371655                        DrawRadWindow(i,pWindowInfo);
    16381656                        return 1;
     
    19161934
    19171935                    case IDC_EXSTYLE:
    1918                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     1936                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     1937                        {
     1938                            return 1;
     1939                        }
    19191940                        DrawRadWindow(i,pWindowInfo);
    19201941                        return 1;
     
    21682189
    21692190                    case IDC_EXSTYLE:
    2170                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     2191                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     2192                        {
     2193                            return 1;
     2194                        }
    21712195                        DrawRadWindow(i,pWindowInfo);
    21722196                        return 1;
     
    24752499
    24762500                    case IDC_EXSTYLE:
    2477                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     2501                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     2502                        {
     2503                            return 1;
     2504                        }
    24782505                        DrawRadWindow(i,pWindowInfo);
    24792506                        return 1;
     
    26102637
    26112638                    case IDC_EXSTYLE:
    2612                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     2639                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     2640                        {
     2641                            return 1;
     2642                        }
    26132643                        DrawRadWindow(i,pWindowInfo);
    26142644                        return 1;
     
    30233053
    30243054                    case IDC_EXSTYLE:
    3025                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     3055                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     3056                        {
     3057                            return 1;
     3058                        }
    30263059                        DrawRadWindow(i,pWindowInfo);
    30273060                        return 1;
     
    32963329
    32973330                    case IDC_EXSTYLE:
    3298                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     3331                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     3332                        {
     3333                            return 1;
     3334                        }
    32993335                        DrawRadWindow(i,pWindowInfo);
    33003336                        return 1;
     
    35713607
    35723608                    case IDC_EXSTYLE:
    3573                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     3609                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     3610                        {
     3611                            return 1;
     3612                        }
    35743613                        DrawRadWindow(i,pWindowInfo);
    35753614                        return 1;
     
    36553694
    36563695                    case IDC_EXSTYLE:
    3657                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     3696                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     3697                        {
     3698                            return 1;
     3699                        }
    36583700                        DrawRadWindow(i,pWindowInfo);
    36593701                        return 1;
     
    38873929
    38883930                    case IDC_EXSTYLE:
    3889                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     3931                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     3932                        {
     3933                            return 1;
     3934                        }
    38903935                        DrawRadWindow(i,pWindowInfo);
    38913936                        return 1;
     
    39714016
    39724017                    case IDC_EXSTYLE:
    3973                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     4018                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     4019                        {
     4020                            return 1;
     4021                        }
    39744022                        DrawRadWindow(i,pWindowInfo);
    39754023                        return 1;
     
    41024150
    41034151                    case IDC_EXSTYLE:
    4104                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     4152                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     4153                        {
     4154                            return 1;
     4155                        }
    41054156                        DrawRadWindow(i,pWindowInfo);
    41064157                        return 1;
     
    42544305
    42554306                    case IDC_EXSTYLE:
    4256                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     4307                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     4308                        {
     4309                            return 1;
     4310                        }
    42574311                        DrawRadWindow(i,pWindowInfo);
    42584312                        return 1;
     
    44654519
    44664520                    case IDC_EXSTYLE:
    4467                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     4521                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     4522                        {
     4523                            return 1;
     4524                        }
    44684525                        DrawRadWindow(i,pWindowInfo);
    44694526                        return 1;
     
    46404697
    46414698                    case IDC_EXSTYLE:
    4642                         if(!DialogBox(hResInst,MAKEINTRESOURCE(IDD_RAD_PROP_ITEM_EXSTYLE),hwnd,DlgRadProperty_Item_ExStyle)) return 1;
     4699                        if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_RAD_PROP_ITEM_EXSTYLE, hwnd, DlgRadProperty_Item_ExStyle))
     4700                        {
     4701                            return 1;
     4702                        }
    46434703                        DrawRadWindow(i,pWindowInfo);
    46444704                        return 1;
Note: See TracChangeset for help on using the changeset viewer.