News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Example HTML

Started by iemmaluigi, November 17, 2018, 01:34:56 PM

Previous topic - Next topic

iemmaluigi

Hi at all,
I'm searching to some easy examples of HTML file's wiews into a Windows control.
Thanks a lot!

TimoVJL

#1
Which windows component and what kind of html-file?
ATL:...
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);
...
May the source be with you

iemmaluigi