How to perform Zooming with CHtmlEditCtrl in MFC
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);
精彩评论