Scrolling an embedded browser - Do scrollbars appear on the page or not?

View: New views
1 Messages — Rating Filter:   Alert me  

Scrolling an embedded browser - Do scrollbars appear on the page or not?

by Gilly-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi have a very simple problem to which a solution would be
appreciated: I'd like to know if scrollbars (horizontal or vertical)
appear on the embedded web browser window. Is there any API that can
reveal this simple query?

I tried this simple test:

m_docShell = do_GetInterface(m_webBrowser);
if ( !m_docShell )
{
        m_DocShellAsScrollable = nsnull;
        //Some error occurred
}
else
{
        nsCOMPtr<nsIScrollable>
m_DocShellAsScrollable(do_QueryInterface(m_docShell));
        PRBool vec = false;
        PRBool hoz = false;
        m_DocShellAsScrollable->GetScrollbarVisibility(&vec, &hoz);
}

I always get a false response here although I can see the bars with my
eyes on the page...
Is there anything that I should be hooking to these interfaces in
order to get the data? Am I not using the right interfaces?

Thanks,

Gilly
_______________________________________________
dev-embedding mailing list
dev-embedding@...
https://lists.mozilla.org/listinfo/dev-embedding
LightInTheBox - Buy quality products at wholesale price