News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

DHTML edit control

Started by jj2007, July 25, 2019, 07:51:02 AM

Previous topic - Next topic

jj2007

ToutEnMasm made an attempt to implement it some years ago, but the attachment disappeared. Has anybody tried it?

TimoVJL

May the source be with you

jj2007

Yes, I know, and it's interesting because apparently you can simply load HTML files into a control and edit them. But I haven't seen any working projects on the web.

LiaoMi

Quote from: jj2007 on July 25, 2019, 07:51:02 AM
ToutEnMasm made an attempt to implement it some years ago, but the attachment disappeared. Has anybody tried it?

Hi jj2007,

there were only sdk files
http://masmforum.com/archive2012/5806_DHtmled.zip
http://masmforum.com/archive2012/5804_dhtml.zip

DHTML Editor with Table Support and Source Editor
https://www.codeproject.com/Articles/12200/DHTML-Editor-with-Table-Support-and-Source-Editor


TimoVJL

PowerBASIC html-wysiwyg-editor

Introduction to MSHTML Editing
a some ATL functions to useHWND hAxWnd;
IUnknown *pUnk;
IWebBrowser2 *pBrowser;
...
hAxWnd = CreateWindowEx(WS_EX_CLIENTEDGE, "AtlAxWin",
szFileName
,WS_CHILD|WS_VISIBLE|WS_HSCROLL, 0, 0, 0, 0, hWnd, NULL,
GetModuleHandle(NULL), NULL);
AtlAxGetControl(hAxWnd, &pUnk);
if (pUnk) {
IDispatch *pDisp;
pUnk->lpVtbl->QueryInterface(pUnk, &IID_IDispatch, (void **)&pDisp);
pDisp->lpVtbl->QueryInterface(pDisp, &IID_IWebBrowser2, (void **)&pBrowser);
}
...
IDispatch *pDisp;
pBrowser->lpVtbl->get_Document(pBrowser, &pDisp);
pDisp->lpVtbl->QueryInterface(pDisp, &IID_IHTMLDocument2, (void **)&pDoc);
if (pDoc)
pDoc->lpVtbl->put_designMode(pDoc, L"On");
May the source be with you

jj2007

Thanks, Timo :thumbsup:

I tried some C++ examples, but as usual they choke with all kinds of missing header etc messages. This one looks recent and promising, one of the posters claims it's working on Win10. Here is an ASM example, about 10 years old.

LiaoMi


jj2007

Thanks, LiaoMi. I miss Yves, I wonder what happened to him :sad:

aw27

Quote from: jj2007 on July 25, 2019, 07:51:02 AM
ToutEnMasm made an attempt to implement it some years ago, but the attachment disappeared. Has anybody tried it?
Have you checked file 5806 in the attachments archive?

jj2007

Do you have a link to the attachments archive?

LiaoMi

Quote from: jj2007 on July 26, 2019, 07:59:46 AM
Do you have a link to the attachments archive?

:azn: above there is a link to this file
http://masmforum.com/archive2012/5806_DHtmled.zip
http://masmforum.com/archive2012/5804_dhtml.zip

jj2007


aw27


jj2007

You are such a darling, José - thanxalot :thup:

TimoVJL

#14
DHTMLEd.ocx and TriEdit.dll are COM files with typelib tlb in their resource sections.
So it is possible to create inc-files from there.

José made an app for generating includes for PowerBASIC from typelibs.

As also mshtml have editing capabilities, isn't that a better option to use ?
May the source be with you