Pergunta WebBrowser zoom problem in WM6.5

  • quinta-feira, 25 de novembro de 2010 20:31
     
     

    I am using CLSID_WebBrowser to render HTML pages in a VGA device in WM 6.5.3. My HTML pages are formatted to fit perfectly on a VGA screen, so getting 1:1 pixel resolution is very important.

    My problem is the viewed area of the browser is 320x240 occupying the whole 640x480 screen, making my images looking twice as big as they should be. I tried adding a resource as specified in this link http://msdn.microsoft.com/en-us/library/aa454895.aspx , but my HTML is still zoomed. I also tried calling OLECMDID_ZOOM but that only re-size the text, not the images. I tried changing the viewport width and viewport height from the registry (HKCU/software/microsoft/internet explorer/main), but that had no impact on the WebBrowser control's rendering output.

    I have noted that WM's IE has a real zoom option. If I open my HTML page in IE's, I can re-size the whole page with the zoom slider, until I get a perfect native 1:1 pixel resolution.

    Is it possible to control the WebBrowser control the way IE does it in WM 6.5.3?

    • Editado fredx21 segunda-feira, 29 de novembro de 2010 11:07
    •  

Todas as Respostas

  • segunda-feira, 29 de novembro de 2010 07:20
    Moderador
     
     
     

    Hi,

     

    Did you try to use OLECMDID_OPTICAL_ZOOM instead of OLECMDID_ZOOM?

     

    Regards!

    Jesse


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • segunda-feira, 29 de novembro de 2010 17:53
     
     

    I did try OLECMDID_OPTICAL_ZOOM but it returns 0x80040100. I guess that means that it is not implemented in Windows Mobile...

    I also noted that of I use a div of width=630, the div has the correct 1:1 screen ratio. However, the images are still twice too big.

    Any other ideas?

  • sexta-feira, 3 de dezembro de 2010 12:43
     
     
    Microsoft, any idea or explanations?
  • terça-feira, 7 de dezembro de 2010 22:05
    Moderador
     
     

    Hi

    Your issue falls into a category that we are not able to resolve using the forums. There are

    various support options such as advisory and per issue. Please visit the below link to see the

    various paid support options that are available to better meet your needs.

    http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone

    Alliance and Premier VSIP membership includes a complimentary MSDN subscription, which includes 4

    professional support incidents. These can be used to initialize a support request with

    Microsoft's Customer Support Services. Some versions of Visual Studio include a number of free

    support incidents as well. See the "Technical Support Incidents" topic for details.


    Thanks


    bill boyce
  • terça-feira, 8 de novembro de 2011 21:07
     
     

    What was the solution to this problem?

     

  • terça-feira, 8 de novembro de 2011 21:08
     
     
    What was the solution to this problem?
  • terça-feira, 8 de novembro de 2011 22:37
     
     

    Microsoft could not fix the problem. They acknowledge the bug, but they told me to that it's the device who manufacture the device (and produce the windows mobile image) that must ask Microsoft for a fix. Of course I didn't do that as it had pretty much no chances of success. In the end, we selected WebKitCE instead of WebBrowser.