The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: xxyrobot on June 09, 2009, 04:30:20 PM

Title: prolem with the wbdll.dll
Post by: xxyrobot on June 09, 2009, 04:30:20 PM
I have download the sorce code of WebBrowser. I rebuild it with the amedment as bellow

The text in the webbrowser can be selected but can not be COPY or CUT. In the inputbox,it can be pasted and deleted but not can be CUT or Copy.

Why and how to do?  I want to can copy the text from the webbrowser.


IDocHostUIHandler@ShowContextMenu proc pif:DWORD,dwID:DWORD,ppt:DWORD,pcmdtReserved:DWORD,pdispReserved:DWORD

return E_NOTIMPL

IDocHostUIHandler@ShowContextMenu endp

IDocHostUIHandler@GetHostInfo proc pif:DWORD,pInfo:DWORD

mov eax,pInfo
assume eax:ptr DOCHOSTUIINFO
mov [eax].cbSize,sizeof DOCHOSTUIINFO
mov [eax].dwFlags, DOCHOSTUIFLAG_DISABLE_HELP_MENU or DOCHOSTUIFLAG_FLAT_SCROLLBAR; or DOCHOSTUIFLAG_NO3DBORDE
mov [eax].dwDoubleClick,DOCHOSTUIDBLCLK_SHOWPROPERTIES;DOCHOSTUIDBLCLK_SHOWCODE;DOCHOSTUIDBLCLK_DEFAULT
assume eax:nothing
return S_OK

IDocHostUIHandler@GetHostInfo endp
Title: Re: prolem with the wbdll.dll
Post by: xxyrobot on June 10, 2009, 01:08:41 PM
Now, I know how to do.

Must  OleInitialize in the WM_CREATE

.if eax==WM_CREATE
                invoke OleInitialize,NULL
invoke GetProcessHeap
invoke HeapAlloc,eax,HEAP_ZERO_MEMORY,sizeof WBDATA

                           .......

.elseif eax==WM_DESTROY
              invoke OleUninitialize