Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9212629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:34:08+00:00 2026-06-18T01:34:08+00:00

I have a Win32 application which converts HTML into an image without displaying the

  • 0

I have a Win32 application which converts HTML into an image without displaying the control. (I dont have much experience to use ActiveX in a Win32 application).

I followed this MSDN article to create the control and call Navigate(): http://msdn.microsoft.com/en-us/library/aa451946.aspx

When I need to convert the image, I call IViewObjec::Draw(). The problem is the control is always visible even if I call the following function:

browser->put_Visible(VARIANT_FALSE); // browser is IWebBrowser2

When I stepped into the code I found out that when I call

mOleObject->DoVerb(OLEIVERB_INPLACEACTIVATE, NULL, mControlSite, 0, NULL, NULL)

the control becomes visible immediately. But from what I can see from MSDN is that OLEIVERB_INPLACEACTIVATE means

Activates an object in place without displaying tools, such as menus and toolbars, that end users need to change the behavior or appearance of the object. Single-clicking such an object causes it to negotiate the display of its user-interface tools with its container. If the container refuses, the object remains active but without its tools displayed.

I am a bit confused, I only want to hide it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:34:10+00:00Added an answer on June 18, 2026 at 1:34 am

    I found another solution.

    I just make normal window and put the html control into the windown and hide it, which solves all the problems that I mentioned above.

    In the ControlSite I implemented IOleWindow::GetWindow() to put control like following code (mWindow is just my Basic window class), just return this normal window’s handle.

    HRESULT STDMETHODCALLTYPE GetWindow(/* [out] */ HWND __RPC_FAR* theWindow)
    {   
        *theWindow = mWindow.GetHandle();
        return S_OK;    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a Win32 application I have a dialog with a list control which is
I have a win32 application, in which I want to use openGL just for
I have a win32 GUI (MFC) application which I need to port to a
I have developed a Win32 application using C/C++, which runs on Vista and XP.
I have win32 application in which winsock is used for TCP/IP communication. I am
i have a native win32 c++ application which has a checkbox in it. I
I have a Win32 application that includes an EXE, an ActiveX control (DLL) and
I'm currently developing an application which uses the iTunes COM (Win32) to hook into
I have a Unicode Win32 application that uses 3rd party libraries, some of which
We have a C++ Win32 application which spawns, using Qt's QProcess (undoubtedly a wrapper

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.