Hi

I am trying see what the initial view settings are.
that is to say I want to see if the Magnification is set to default and
the page layout is set to default

From my reading of the SDK the call to get the magnification setting is
AVPageViewGetZoomType
and the call to get the page layout is
AVAppGetPreference

Is this right?

The reason I ask is when I tried this (see code below ) and I was
testing it I changed the magnification to "Fit in Window",
"Fit Width".. etc and then back to default
The results were not consistent and when I changed it back to
default it seemed to match "Fit Width"

Is "Fit Width" the same as default?

For the Page Layout is default the same as continuous?

Would it be better to use the AVDocGetViewDef call?

any help to clarify this would be nice.
Thanks
Peter


STDMETHODIMP MY_Analyzer::get_Magnification(LONG* pVal)
{
AVPageView o_pgView;
AVZoomType o_ZoomType;
DURING
if (m_avDoc != NULL)
{
o_pgView = AVDocGetPageView(m_avDoc);
o_ZoomType = AVPageViewGetZoomType(o_pgView);
*pVal = (long)o_ZoomType;
}
else
{
*pVal = -1;
}
HANDLER
ShowError();
END_HANDLER
return S_OK;
}

STDMETHODIMP MY_Analyzer::get_PageLayout(LONG* pVal)
{
AVPrefsType preference;
DURING
AVAppGetPreference(preference);
*pVal = (long) preference;
HANDLER
ShowError();
END_HANDLER
return S_OK;
}