I need to get the current zoom level of the browser control. In most cases I can, however, OLECMDID_OPTICAL_ZOOM (nor OLECMDID_ZOOM) is not updated when pinch-to-zoom is performed. In case it matters, the code to get optical zoom is below.
Note that, Ctrl +/- do the same thing (graphically), and optic zoom IS updated in that case.
int GetOpticZoom()
{
VARIANT vOut;
VariantInit(&vOut);
ExecWB(OLECMDID_OPTICAL_ZOOM, OLECMDEXECOPT_DONTPROMPTUSER, NULL, &vOut);
return (vOut.vt == VT_I4 ? vOut.lVal : 100);
}
Can anyone explain why optic zoom is not being updated on Win 8.1 (IE 11) when pinch-to-zoom is performed?