Author Topic: DHTML edit control  (Read 530 times)

jj2007

  • Member
  • *****
  • Posts: 9684
  • Assembler is fun ;-)
    • MasmBasic
DHTML edit control
« 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?

TimoVJL

  • Member
  • ***
  • Posts: 429
Re: DHTML edit control
« Reply #1 on: July 25, 2019, 09:26:52 AM »
DHTML Editing Control is still available.
May the source be with you

jj2007

  • Member
  • *****
  • Posts: 9684
  • Assembler is fun ;-)
    • MasmBasic
Re: DHTML edit control
« Reply #2 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.

LiaoMi

  • Member
  • ****
  • Posts: 574
Re: DHTML edit control
« Reply #3 on: July 25, 2019, 07:53:37 PM »

TimoVJL

  • Member
  • ***
  • Posts: 429
Re: DHTML edit control
« Reply #4 on: July 25, 2019, 08:17:19 PM »
PowerBASIC html-wysiwyg-editor

Introduction to MSHTML Editing
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");
May the source be with you

jj2007

  • Member
  • *****
  • Posts: 9684
  • Assembler is fun ;-)
    • MasmBasic
Re: DHTML edit control
« Reply #5 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, one of the posters claims it's working on Win10. Here is an ASM example, about 10 years old.

LiaoMi

  • Member
  • ****
  • Posts: 574
Re: DHTML edit control
« Reply #6 on: July 26, 2019, 05:08:29 AM »

jj2007

  • Member
  • *****
  • Posts: 9684
  • Assembler is fun ;-)
    • MasmBasic
Re: DHTML edit control
« Reply #7 on: July 26, 2019, 06:10:49 AM »
Thanks, LiaoMi. I miss Yves, I wonder what happened to him :sad:

AW

  • Member
  • *****
  • Posts: 2312
  • Let's Make ASM Great Again!
Re: DHTML edit control
« Reply #8 on: July 26, 2019, 06:22:12 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

  • Member
  • *****
  • Posts: 9684
  • Assembler is fun ;-)
    • MasmBasic
Re: DHTML edit control
« Reply #9 on: July 26, 2019, 07:59:46 AM »
Do you have a link to the attachments archive?

LiaoMi

  • Member
  • ****
  • Posts: 574
Re: DHTML edit control
« Reply #10 on: July 26, 2019, 10:13:46 AM »

jj2007

  • Member
  • *****
  • Posts: 9684
  • Assembler is fun ;-)
    • MasmBasic
Re: DHTML edit control
« Reply #11 on: July 26, 2019, 04:03:27 PM »
Thanks!

AW

  • Member
  • *****
  • Posts: 2312
  • Let's Make ASM Great Again!
Re: DHTML edit control
« Reply #12 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

jj2007

  • Member
  • *****
  • Posts: 9684
  • Assembler is fun ;-)
    • MasmBasic
Re: DHTML edit control
« Reply #13 on: July 26, 2019, 04:58:33 PM »
You are such a darling, José - thanxalot :thup:

TimoVJL

  • Member
  • ***
  • Posts: 429
Re: DHTML edit control
« Reply #14 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é made an app for generating includes for PowerBASIC from typelibs.

As also mshtml have editing capabilities, isn't that a better option to use ?
« Last Edit: July 26, 2019, 09:02:45 PM by TimoVJL »
May the source be with you