hhctrl: Add the WebBrowser implementation [take 5]

Alexandre Julliard julliard at winehq.org
Mon Jul 25 06:23:13 CDT 2005


James Hawkins <truiken at gmail.com> writes:

> +typedef struct IOleInPlaceFrameImpl
> +{
> +    IOleInPlaceFrame        frame;
> +    HWND                    window;
> +} IOleInPlaceFrameImpl;
> +
> +typedef struct IOleInPlaceSiteImpl
> +{
> +    IOleInPlaceSite         inplace;
> +    IOleInPlaceFrameImpl    frame;
> +} IOleInPlaceSiteImpl;
> +
> +typedef struct IOleClientSiteImpl
> +{
> +    IOleClientSite          client;
> +    IOleInPlaceSiteImpl     inplace;
> +    IDocHostUIHandler       ui;
> +} IOleClientSiteImpl;

You should define a single structure with multiple vtbl pointers, and
compute the This pointer based on structure offsets. Look at how this
is done in other places, like shelllink.c for instance.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list