NO

Author Topic: Example HTML  (Read 1953 times)

Offline iemmaluigi

  • Member
  • *
  • Posts: 4
Example HTML
« on: November 17, 2018, 01:34:56 PM »
Hi at all,
I'm searching to some easy examples of HTML file's wiews into a Windows control.
Thanks a lot!

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: Example HTML
« Reply #1 on: November 17, 2018, 05:00:20 PM »
Which windows component and what kind of html-file?
ATL:
Code: [Select]
...
HRESULT __declspec(dllimport) WINAPI AtlGetVersion(void* pReserved);
HRESULT __declspec(dllimport) WINAPI AtlAxWinInit(void);
HRESULT __declspec(dllimport) WINAPI AtlAxGetControl(HWND h,IUnknown** pp);
HRESULT __declspec(dllimport) WINAPI AtlAxCreateControl(
LPCOLESTR lpszName,HWND hWnd,IStream* pStream,IUnknown** ppUnkContainer);
#pragma comment(lib, "atl.lib")
...
AtlAxWinInit();
// DWORD ver = AtlGetVersion(NULL);
hAxWnd = CreateWindow("AtlAxWin",
"file://C:/temp/MoveToCpp.htm"
// "http://www.pellesc.de"
,WS_CHILD|WS_VISIBLE, 0, 0, 0, 0, hWnd, NULL,
GetModuleHandle(NULL), NULL);
AtlAxGetControl(hAxWnd, &pUnk);
...
« Last Edit: November 17, 2018, 07:08:46 PM by TimoVJL »
May the source be with you

Offline iemmaluigi

  • Member
  • *
  • Posts: 4
Re: Example HTML
« Reply #2 on: November 18, 2018, 01:57:48 PM »
Many thanks Timo