prolem with the wbdll.dll

Started by xxyrobot, June 09, 2009, 04:30:20 PM

Previous topic - Next topic

xxyrobot

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

xxyrobot

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