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/MenuProc.cpp

    r772 r794  
    7373    MENU_INFO *MenuInfo;
    7474
    75     if(!DialogBoxParam(hResInst,MAKEINTRESOURCE(IDD_INPUTID),hOwner,(DLGPROC)DlgProject_MenuID_Input,0)) return;
     75    if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_INPUTID, hOwner, DlgProject_MenuID_Input))
     76    {
     77        return;
     78    }
    7679
    7780    //重複チェック
     
    265268
    266269    MdiInfo[i]->MdiMenuInfo->hMenuEdit=hMenuEdit;
    267     MdiInfo[i]->MdiMenuInfo->hEdit_Dlg=CreateDialog(hResInst,MAKEINTRESOURCE(IDD_PROJECT_MENUEDIT),hMenuEdit,(DLGPROC)MenuEditDlg);
     270    MdiInfo[i]->MdiMenuInfo->hEdit_Dlg = ActiveBasic::Resource::CreateDialogAlt(hResInst, IDD_PROJECT_MENUEDIT, hMenuEdit, MenuEditDlg);
    268271
    269272    SCROLLINFO ScrollInfo;
     
    406409                    pMenuInfo=&pMenuInfo->pMenuInfo[i2];
    407410
    408                     if(!DialogBoxParam(hResInst,MAKEINTRESOURCE(IDD_PROJECT_MENURENAME),hOwner,(DLGPROC)DlgMenuProperty_Rename,(long)pMenuInfo)) return 1;
     411                    if (!ActiveBasic::Resource::DialogBoxAlt(hResInst, IDD_PROJECT_MENURENAME, hOwner, DlgMenuProperty_Rename, reinterpret_cast<LPARAM>(pMenuInfo)))
     412                    {
     413                        return 1;
     414                    }
    409415                    GetDlgItemText(hwnd,IDC_IDNAME,temporary,MAX_PATH);
    410416
Note: See TracChangeset for help on using the changeset viewer.