The MASM Forum

General => The Workshop => Topic started by: jj2007 on July 25, 2019, 07:51:02 AM

Title: DHTML edit control
Post by: jj2007 on July 25, 2019, 07:51:02 AM
ToutEnMasm made an attempt (http://www.masmforum.com/board/index.php?topic=10794.0) to implement it some years ago, but the attachment disappeared. Has anybody tried it?
Title: Re: DHTML edit control
Post by: TimoVJL on July 25, 2019, 09:26:52 AM
DHTML Editing Control (https://www.microsoft.com/en-us/download/details.aspx?id=8956) is still available.
Title: Re: DHTML edit control
Post by: jj2007 on July 25, 2019, 09:49:02 AM
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.
Title: Re: DHTML edit control
Post by: LiaoMi on July 25, 2019, 07:53:37 PM
ToutEnMasm made an attempt (http://www.masmforum.com/board/index.php?topic=10794.0) 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 (https://www.codeproject.com/Articles/12200/DHTML-Editor-with-Table-Support-and-Source-Editor)

Title: Re: DHTML edit control
Post by: TimoVJL on July 25, 2019, 08:17:19 PM
PowerBASIC html-wysiwyg-editor (https://forum.powerbasic.com/forum/user-to-user-discussions/source-code/25198-html-wysiwyg-editor)

Introduction to MSHTML Editing (https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa753630(v=vs.85))
a some ATL functions to use
Code: [Select]
HWND 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");
Title: Re: DHTML edit control
Post by: jj2007 on July 26, 2019, 04:10:14 AM
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 (https://social.msdn.microsoft.com/Forums/en-US/06e5250e-0a06-42cb-b319-114853ab3d68/createwindow-api-is-not-working-on-vs2015?forum=vcgeneral), one of the posters claims it's working on Win10. Here is an ASM example, about 10 years old. (http://www.asmcommunity.net/forums/topic/?id=29000)
Title: Re: DHTML edit control
Post by: LiaoMi on July 26, 2019, 05:08:29 AM
Atl flash player - http://masm32.com/board/index.php?topic=2943.0 (http://masm32.com/board/index.php?topic=2943.0)
Title: Re: DHTML edit control
Post by: jj2007 on July 26, 2019, 06:10:49 AM
Thanks, LiaoMi. I miss Yves, I wonder what happened to him :sad:
Title: Re: DHTML edit control
Post by: AW on July 26, 2019, 06:22:12 AM
ToutEnMasm made an attempt (http://www.masmforum.com/board/index.php?topic=10794.0) to implement it some years ago, but the attachment disappeared. Has anybody tried it?
Have you checked file 5806 in the attachments archive?
Title: Re: DHTML edit control
Post by: jj2007 on July 26, 2019, 07:59:46 AM
Do you have a link to the attachments archive?
Title: Re: DHTML edit control
Post by: LiaoMi on July 26, 2019, 10:13: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
Title: Re: DHTML edit control
Post by: jj2007 on July 26, 2019, 04:03:27 PM
Thanks!
Title: Re: DHTML edit control
Post by: AW on July 26, 2019, 04:03:49 PM
Do you have a link to the attachments archive?
Of course, I will guide you there :smiley::
The MASM Forum » Forum Links » Forum Links » Archive 2 (http://www.masmforum.com/archive2012/)
Title: Re: DHTML edit control
Post by: jj2007 on July 26, 2019, 04:58:33 PM
You are such a darling, José - thanxalot :thup:
Title: Re: DHTML edit control
Post by: TimoVJL on July 26, 2019, 05:21:35 PM
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é (http://www.jose.it-berater.org) made an app for generating includes for PowerBASIC from typelibs.

As also mshtml have editing capabilities, isn't that a better option to use ?
Title: Re: DHTML edit control
Post by: Biterider on July 26, 2019, 07:00:33 PM
I would try ComView to get usable include files.
Biterider
Title: Re: DHTML edit control
Post by: Biterider on July 26, 2019, 07:02:23 PM
I would try ComView to get usable include files.
Biterider