Pelles C forum

C language => Beginner questions => Topic started by: iemmaluigi on November 17, 2018, 01:34:56 PM

Title: Example HTML
Post by: iemmaluigi 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!
Title: Re: Example HTML
Post by: TimoVJL 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);
...
Title: Re: Example HTML
Post by: iemmaluigi on November 18, 2018, 01:57:48 PM
Many thanks Timo