vbscript: Support vb* constants for message box return value.
This commit is contained in:
parent
6666284fe6
commit
0c0e6f5371
|
@ -1690,44 +1690,44 @@ static HRESULT Global_vbSystemModal(vbdisp_t *This, VARIANT *arg, unsigned args_
|
|||
|
||||
static HRESULT Global_vbOK(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
TRACE("\n");
|
||||
return return_short(res, IDOK);
|
||||
}
|
||||
|
||||
static HRESULT Global_vbCancel(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
TRACE("\n");
|
||||
return return_short(res, IDCANCEL);
|
||||
}
|
||||
|
||||
static HRESULT Global_vbAbort(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
TRACE("\n");
|
||||
return return_short(res, IDABORT);
|
||||
}
|
||||
|
||||
static HRESULT Global_vbRetry(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
TRACE("\n");
|
||||
return return_short(res, IDRETRY);
|
||||
}
|
||||
|
||||
static HRESULT Global_vbIgnore(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
TRACE("\n");
|
||||
return return_short(res, IDIGNORE);
|
||||
}
|
||||
|
||||
static HRESULT Global_vbYes(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
TRACE("\n");
|
||||
return return_short(res, IDYES);
|
||||
}
|
||||
|
||||
static HRESULT Global_vbNo(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
TRACE("\n");
|
||||
return return_short(res, IDNO);
|
||||
}
|
||||
|
||||
static HRESULT Global_vbEmpty(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||
|
|
|
@ -312,4 +312,19 @@ Call ok(getVT(vbYesNo) = "VT_I2", "getVT(vbYesNo) = " & getVT(vbYesNo))
|
|||
Call ok(vbRetryCancel = 5, "vbRetryCancel = " & vbRetryCancel)
|
||||
Call ok(getVT(vbRetryCancel) = "VT_I2", "getVT(vbRetryCancel) = " & getVT(vbRetryCancel))
|
||||
|
||||
Call ok(vbOK = 1, "vbOK = " & vbOK)
|
||||
Call ok(getVT(vbOK) = "VT_I2", "getVT(vbOK) = " & getVT(vbOK))
|
||||
Call ok(vbCancel = 2, "vbCancel = " & vbCancel)
|
||||
Call ok(getVT(vbCancel) = "VT_I2", "getVT(vbCancel) = " & getVT(vbCancel))
|
||||
Call ok(vbAbort = 3, "vbAbort = " & vbAbort)
|
||||
Call ok(getVT(vbAbort) = "VT_I2", "getVT(vbAbort) = " & getVT(vbAbort))
|
||||
Call ok(vbRetry = 4, "vbRetry = " & vbRetry)
|
||||
Call ok(getVT(vbRetry) = "VT_I2", "getVT(vbRetry) = " & getVT(vbRetry))
|
||||
Call ok(vbIgnore = 5, "vbIgnore = " & vbIgnore)
|
||||
Call ok(getVT(vbIgnore) = "VT_I2", "getVT(vbIgnore) = " & getVT(vbIgnore))
|
||||
Call ok(vbYes = 6, "vbYes = " & vbYes)
|
||||
Call ok(getVT(vbYes) = "VT_I2", "getVT(vbYes) = " & getVT(vbYes))
|
||||
Call ok(vbNo = 7, "vbNo = " & vbNo)
|
||||
Call ok(getVT(vbNo) = "VT_I2", "getVT(vbNo) = " & getVT(vbNo))
|
||||
|
||||
Call reportSuccess()
|
||||
|
|
Loading…
Reference in New Issue