[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] How to get client area minus scrollbars?

I'm trying to get the client area of an ActiveX control minus the scrollbars
that are painted by the control.  Is there are way to do this without having
to use the internal GetSystemMetrics call?

For example:
    Rectangle r = oleControlSite.getClientArea();
    int scrollbarWidth = OS.GetSystemMetrics(OS.SM_CYHSCROLL);

    int clientWidth = r.width - scrollbarWidth;
    int clientHeight = r.height - scrollbarWidth;


Thanks,
Ron