Shoutbox

[?] Remove the vertical scrollbar from the BrowserControl - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] Remove the vertical scrollbar from the BrowserControl (/showthread.php?tid=86025)

[?] Remove the vertical scrollbar from the BrowserControl by roflmao456 on 09-19-2008 at 02:50 AM

it seems to appear no matter how small the page is :\
there's no attribute for it and i can't seem to use css:"overflow:hidden;"..


RE: [?] Remove the vertical scrollbar from the BrowserControl by matty on 09-19-2008 at 03:48 AM

There are 2 ways this can be done.

Process #1

1) Use the PlusWnd::Browser_GetInterface to get the interface for the Browser.
2) Get the handle of the browser

code:
var hWnd = pPlusWnd.Browser_GetInterface('wBrowser').HWND;

Process #2
Use the FindWindowEx API call until you find the Shell DocObject View window.

Once you have the handle of the browser you can use GetWindowLong to get the style of the window (GWL_STYLE) then remove the WS_EX_RIGHTSCROLLBAR and set the new style and it should be remove.