0

Can anyone help me to perform zooming on CHtmlEditCtrl ?

I displayed my html document 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.

Milan Dhameliya
  • 129
  • 1
  • 10

2 Answers2

0

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);
nspire
  • 1,567
  • 23
  • 26
0

ExecWB(OLECMDID_ZOOM, 0, &vFontSize, NULL)

Sheng Jiang 蒋晟
  • 15,125
  • 2
  • 28
  • 46
  • Thanks, But This code will only change the font size of the page. Means it provides zooming of the page like firefox performs when mouse-scroll on holding ctrl button. I need zooming that is provided in InternetExplorer7-and-later. In bottom-right corner there is a zooming combo box. – Milan Dhameliya Feb 03 '10 at 05:23
  • OLECMDID_OPTICAL_ZOOM OLECMDIDF_OPTICAL_ZOOM_NOPERSIST? – Sheng Jiang 蒋晟 Feb 03 '10 at 12:44