#102831# use ViewOnly mode
This commit is contained in:
parent
aa317f0226
commit
f3e0f62e8e
1 changed files with 4 additions and 4 deletions
|
@ -411,7 +411,7 @@ HRESULT CSOActiveX::CallLoadComponentFromURL1PBool( OLECHAR* sUrl, OLECHAR* sArg
|
|||
OLECHAR* sPropMemberNames[2] = { L"Name", L"Value" };
|
||||
CComVariant pPropVar[2];
|
||||
pPropVar[0] = CComVariant( sArgName );
|
||||
pPropVar[1] = CComVariant(); pPropVar[1].vt = VT_BOOL; pPropVar[1].boolVal = sArgVal ? VARIANT_TRUE : VARIANT_FALSE ;
|
||||
pPropVar[1].vt = VT_BOOL; pPropVar[1].boolVal = sArgVal ? VARIANT_TRUE : VARIANT_FALSE ;
|
||||
hr = PutPropertiesToIDisp( pdispPropVal, sPropMemberNames, pPropVar, 2 );
|
||||
if( !SUCCEEDED( hr ) ) return hr;
|
||||
|
||||
|
@ -422,7 +422,7 @@ HRESULT CSOActiveX::CallLoadComponentFromURL1PBool( OLECHAR* sUrl, OLECHAR* sArg
|
|||
aDispArgs[2] = CComVariant( L"_self" );
|
||||
aDispArgs[1] = CComVariant( 0 );
|
||||
// aDispArgs[0] = CComVariant( pPropVals ); such constructor is not defined ??!
|
||||
aDispArgs[0] = CComVariant(); aDispArgs[0].vt = VT_ARRAY | VT_DISPATCH; aDispArgs[0].parray = pPropVals;
|
||||
aDispArgs[0].vt = VT_ARRAY | VT_DISPATCH; aDispArgs[0].parray = pPropVals;
|
||||
|
||||
CComVariant dummyResult;
|
||||
hr = ExecuteFunc( mpDispFrame, L"loadComponentFromURL", aDispArgs, 4, &dummyResult );
|
||||
|
@ -485,8 +485,8 @@ HRESULT CSOActiveX::LoadURLToFrame( )
|
|||
{
|
||||
CComVariant aArgNames[2] = { L"ReadOnly", L"ViewOnly" };
|
||||
CComVariant aArgVals[2];
|
||||
aArgVals[0] = CComVariant(); aArgVals[0].vt = VT_BOOL; aArgVals[0].boolVal = mbViewOnly ? VARIANT_TRUE : VARIANT_FALSE;
|
||||
aArgVals[1] = CComVariant(); aArgVals[1].vt = VT_BOOL; aArgVals[1].boolVal = mbViewOnly ? VARIANT_TRUE : VARIANT_FALSE;
|
||||
aArgVals[0].vt = VT_BOOL; aArgVals[0].boolVal = mbViewOnly ? VARIANT_TRUE : VARIANT_FALSE;
|
||||
aArgVals[1].vt = VT_BOOL; aArgVals[1].boolVal = mbViewOnly ? VARIANT_TRUE : VARIANT_FALSE;
|
||||
HRESULT hr = CallDispatchMethod( mCurFileUrl, aArgNames, aArgVals, 2 );
|
||||
if( !SUCCEEDED( hr ) ) return hr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue