开发者

How to perform Zooming with CHtmlEditCtrl in MFC

开发者 https://www.devze.com 2022-12-18 15:08 出处:网络
Can anyone help me to perform zooming on CHtmlEditCtrl ? I displayed my html docu开发者_如何学编程ment on CHtmlEditCtrl.

Can anyone help me to perform zooming on CHtmlEditCtrl ?

I displayed my html docu开发者_如何学编程ment on CHtmlEditCtrl. Now I want my edit control to display same html document with different zooming level. I saw this feature in InternetExplorer8. Now I need to add this zooming feature to my MFC application.


ExecWB(OLECMDID_ZOOM, 0, &vFontSize, NULL)


Use OPTICAL_ZOOM as so;

VARIANT vaZoomFactor;
VariantInit (&vaZoomFactor);
V_VT(&vaZoomFactor) = VT_I4;
V_I4(&vaZoomFactor) = 50; //-- in this case, 50%
browserCtrl.ExecWB (OLECMDID_OPTICAL_ZOOM, OLECMDEXECOPT_DONTPROMPTUSER, &vaZoomFactor, NULL);
0

精彩评论

暂无评论...
验证码 换一张
取 消