[webkit-help] Enabling Flat Frame Mode (no scrollbars)

Aram Hăvărneanu aram.h at mgk.ro
Mon May 31 16:02:23 PDT 2010

Hello, I'm embedding WebKit (Cairo port) in my Windows application. It
works fine. I'd like to enable `flat frame' mode.

My code is:

    IWebPreferences *Preferences;
    hr = pWebView->preferences(&Preferences);
    if (FAILED(hr))
        goto exit;

    IWebPreferencesPrivate *PrivatePreferences = 0;
    hr = Preferences->QueryInterface(IID_IWebPreferencesPrivate, (void
    if (FAILED(hr))
        goto exit;
    hr = PrivatePreferences->setFrameSetFlatteningEnabled(TRUE);
    if (FAILED(hr))
        goto exit;

The code runs fine nothing seems to happen. What am I doing wrong here?


Aram Hăvărneanu

More information about the webkit-help mailing list