You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Announcement
Collapse
No announcement yet.
Messagepump fails on themed webbrowser via IDocHostUIHandler
PowerBASIC and related source code. Please do not post questions or discussions, just source code.
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
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?)
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: