通过mshtml获得ie的缩放比例
如何获得ie的缩放比例,及如何固定,麻烦晓得说说
用mshtml
[解决办法]
CComPtr<IHTMLStyle> pStyle;
pElem->get_style(&pStyle);//获取body的style接口
CString str;
str.Format("zoom:%f;", fZoom);
return pStyle->put_cssText(str.AllocSysString());
发布时间: 2012-01-14 20:02:35 作者: rapoo
通过mshtml获得ie的缩放比例
如何获得ie的缩放比例,及如何固定,麻烦晓得说说
用mshtml
[解决办法]
CComPtr<IHTMLStyle> pStyle;
pElem->get_style(&pStyle);//获取body的style接口
CString str;
str.Format("zoom:%f;", fZoom);
return pStyle->put_cssText(str.AllocSysString());