Add support for VT_I8 (long long) values to wxAutomationObject.
Just map VT_I8 to wxLongLong. Closes #14210. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -148,6 +148,13 @@ WXDLLEXPORT bool wxConvertVariantToOle(const wxVariant& variant, VARIANTARG& ole
|
||||
oleVariant.vt = VT_I4;
|
||||
oleVariant.lVal = variant.GetLong() ;
|
||||
}
|
||||
#if wxUSE_LONGLONG
|
||||
else if (type == wxT("longlong"))
|
||||
{
|
||||
oleVariant.vt = VT_I8;
|
||||
oleVariant.llVal = variant.GetLongLong().GetValue();
|
||||
}
|
||||
#endif
|
||||
else if (type == wxT("char"))
|
||||
{
|
||||
oleVariant.vt=VT_I1; // Signed Char
|
||||
@@ -350,6 +357,12 @@ wxConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant)
|
||||
#endif // wxUSE_DATETIME
|
||||
break;
|
||||
|
||||
#if wxUSE_LONGLONG
|
||||
case VT_I8:
|
||||
variant = wxLongLong(oleVariant.llVal);
|
||||
break;
|
||||
#endif // wxUSE_LONGLONG
|
||||
|
||||
case VT_I4:
|
||||
variant = (long) oleVariant.lVal;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user