To get some more input on this subject i repost my question here.
I am using this code (WebBrowser wrapper functions):
And to enable (XP-)theming one can use a IDocHostUIHandler to set this.
The part to enable this feature is the IDocHostUIHandler_GetHostInfo() procedure.
In this example it's not used but could be something like:
This example uses SDK and not DDT, the messagepump is extended with WM_FORWARDMSG, this instructs the control to handle keyboard messages instead of the messagepump.
The moment the IDocHostUIHandler interface is used the internal IDocHostUIHandler/translate functionality is no longer working.
We therefore need a substitute.
Pressing tab makes the cursor leave the webcontrol while it should move to another item in the html.
Now here is another issue!
When theming is enabled, data can not get input anymore.
All keystuff is no longer working.
(Unless the WM_FORWARDMSG is excluded, but then behavious the same as without the theming support)
Anyone having an idea to correctly do this?
I just want theming enabled, to put tags in the HEAD section is not my idea.
(Unless i can 'stream' it in before rendering?)
I am using this code (WebBrowser wrapper functions):
And to enable (XP-)theming one can use a IDocHostUIHandler to set this.
The part to enable this feature is the IDocHostUIHandler_GetHostInfo() procedure.
In this example it's not used but could be something like:
Code:
FUNCTION IDocHostUIHandler_GetHostInfo (BYVAL pthis AS DWORD PTR, BYREF pInfo AS DOCHOSTUIINFO) AS LONG pInfo.dwFlags = pInfo.dwFlags Or %DOCHOSTUIFLAG_THEME Function = %S_OK END FUNCTION
The moment the IDocHostUIHandler interface is used the internal IDocHostUIHandler/translate functionality is no longer working.
We therefore need a substitute.
Pressing tab makes the cursor leave the webcontrol while it should move to another item in the html.
Now here is another issue!
When theming is enabled, data can not get input anymore.
All keystuff is no longer working.
(Unless the WM_FORWARDMSG is excluded, but then behavious the same as without the theming support)
Anyone having an idea to correctly do this?
I just want theming enabled, to put tags in the HEAD section is not my idea.
(Unless i can 'stream' it in before rendering?)
Comment