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
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to