CHtmlView and Windows 11 (MFC Application)

ChuckieAJ 66 Reputation points
2021-10-26T16:29:07.39+00:00

Hi !
Firstly, I am aware of the WebView2 control and have tried it. Right now it is lacking some important functionality so I must stick with the CHtmlView control.
I had a change in the Installation and Upgrades section of the Microsoft Forums and they confirmed the following:

  1. Internet Explorer remains on a PC if you upgrade to Windows 11 (confirmed as I upgraded from Windows 10).
  2. Internet Explorer will not be on the PC if you perform a clean install of Windows 11.
  3. CHtmlView will continue to work no matter.

CHtmlView is a wrapper for the web browser control and you can programatically display a Page Setup dialog. Fine - still works.

But prior to scenario 2 above, a user could also manually invoke IE and adjust the page setup through there - and do other things like purge cache. So, if IE is not present, does this mean that whilst they can access Page Setup through my software - what about doing it manually, like they used to be able to do?

For example, what if I tell them the cache needs purging - how would they do it?

I am just thinking ahead - thats all.

In time I will use WebView2 when it supports all the features I need.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,124 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,138 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Reza-Ameri 16,831 Reputation points
    2021-10-26T16:57:05.92+00:00

    If this is feature in the Internet Explorer, I would recommend you consider using new standard supported in the Microsoft Edge.
    In the Microsoft Edge, you have the Internet Explorer mode where you may run websites in the Internet Explorer mode.

    0 comments No comments

  2. Limitless Technology 39,351 Reputation points
    2021-10-27T07:53:16.557+00:00

    Hello ChuckieAJ,

    This is actual an open investigation for the Microsoft Developer Community under the next topic:

    https://developercommunity.visualstudio.com/t/how-long-will-chtmlview-of-mfc-be-supported/1428902

    I would recommend to join that conversation and provide your own experience and tests, as it will greatly influence the relevance of the topic.


    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  3. XuDong Peng-MSFT 10,096 Reputation points Microsoft Vendor
    2021-10-27T09:23:43.283+00:00

    Hi @ChuckieAJ ,

    According to your description, I think what you mentioned is that you need to make some settings in Internet Options. If this is the case, you can open it through the control panel, or directly search for Internet Options in windows. You can do the same thing in this way, such as clearing the browser cache as mentioned.

    It can work even when IE11 is disabled in Windows feature, but it will not contain settings related to IE11 in this case.

    Best regards,
    Xudong Peng


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.