<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : SOLVED: VB6 WebBrowser Not Skinned</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : SOLVED: VB6 WebBrowser Not Skinned]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 08:52:01 +0000</pubDate>
  <lastBuildDate>Tue, 29 Jul 2008 13:51:51 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=11616</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[SOLVED: VB6 WebBrowser Not Skinned : Also, does anyone know how to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39113&amp;title=solved-vb6-webbrowser-not-skinned#39113</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11616<br /><strong>Posted:</strong> 29 July 2008 at 1:51pm<br /><br />Also, does anyone know how to skin a vertically oriented&nbsp; toolbar?<br><br>I opened my MsStyles file in a resource hacker and see the horizontal toolbar background is stored as (NAME)_TOOLBARBACKGROUND_BMP.bmp. Is there a name for a veritcal toolbar background?<br><br>]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 13:51:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39113&amp;title=solved-vb6-webbrowser-not-skinned#39113</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: VB6 WebBrowser Not Skinned :  All set... PS - I have a few...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39111&amp;title=solved-vb6-webbrowser-not-skinned#39111</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11616<br /><strong>Posted:</strong> 29 July 2008 at 1:22pm<br /><br />All set... PS - I have a few outstanding questions in the forums, should I elevate to the support team you think?]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 13:22:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39111&amp;title=solved-vb6-webbrowser-not-skinned#39111</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: VB6 WebBrowser Not Skinned :   JasonG wrote:got the sample......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39108&amp;title=solved-vb6-webbrowser-not-skinned#39108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11616<br /><strong>Posted:</strong> 29 July 2008 at 1:16pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by JasonG" alt="Originally posted by JasonG" style="vertical-align: text-bottom;" /> <strong>JasonG wrote:</strong><br /><br />got the sample... where can I post it?</td></tr></table> <DIV>&nbsp;</DIV><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>In here : <a href="https://forum.codejock.com/forum_topics.asp?FID=160" target="_blank">https://forum.codejock.com/forum_topics.asp?FID=160</A></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 13:16:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39108&amp;title=solved-vb6-webbrowser-not-skinned#39108</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: VB6 WebBrowser Not Skinned : got the sample... where can I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39106&amp;title=solved-vb6-webbrowser-not-skinned#39106</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11616<br /><strong>Posted:</strong> 29 July 2008 at 1:10pm<br /><br />got the sample... where can I post it?]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 13:10:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39106&amp;title=solved-vb6-webbrowser-not-skinned#39106</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: VB6 WebBrowser Not Skinned : Jason,   Can you create a demo...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39102&amp;title=solved-vb6-webbrowser-not-skinned#39102</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11616<br /><strong>Posted:</strong> 29 July 2008 at 11:59am<br /><br />Jason, <DIV>&nbsp;</DIV><DIV>Can you create a demo and upload it in the sample subform? This would be nice for everyone who wants to know <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 11:59:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39102&amp;title=solved-vb6-webbrowser-not-skinned#39102</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: VB6 WebBrowser Not Skinned : This code was added to make the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39100&amp;title=solved-vb6-webbrowser-not-skinned#39100</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11616<br /><strong>Posted:</strong> 29 July 2008 at 11:18am<br /><br />This code was added to make the mousewheel work.<br><br>in frmMain:<br><br><font color="#666666" size="1">Private Sub HTML_GotFocus()<br>&nbsp; WheelHook frmMain<br>End Sub<br><br>Private Sub HTML_LostFocus()<br>&nbsp; WheelUnHook<br>End Sub<br><br>Private Sub Form_Activate()<br>&nbsp; If sbHTML.Visible Then WheelHook frmMain<br>End Sub<br><br>Private Sub Form_Deactivate()<br>&nbsp; WheelUnHook<br>End Sub<br><br><br><br></font>in a Module:<br><font color="#666666" size="1"><br>Private Declare Function CallWindowProc Lib "user32.dll" Alias "CallWindowProcA" ( _<br>ByVal lpPrevWndFunc As Long, _<br>ByVal hWnd As Long, _<br>ByVal Msg As Long, _<br>ByVal Wparam As Long, _<br>ByVal Lparam As Long) As Long<br><br>Private Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" ( _<br>ByVal hWnd As Long, _<br>ByVal nIndex As Long, _<br>ByVal dwNewLong As Long) As Long<br><br>Public Const MK_CONTROL = &amp;H8<br>Public Const MK_LBUTTON = &amp;H1<br>Public Const MK_RBUTTON = &amp;H2<br>Public Const MK_MBUTTON = &amp;H10<br>Public Const MK_SHIFT = &amp;H4<br>Private Const GWL_WNDPROC = -4<br>Private Const WM_MOUSEWHEEL = &amp;H20A<br><br>Dim LocalHwnd As Long<br>Dim LocalPrevWndProc As Long<br>Dim MyForm As Form<br><br>Private Function WindowProc(ByVal Lwnd As Long, ByVal Lmsg As Long, ByVal Wparam As Long, ByVal Lparam As Long) As Long<br><br>&nbsp;&nbsp;&nbsp; Dim MouseKeys As Long<br>&nbsp;&nbsp;&nbsp; Dim Rotation As Long<br>&nbsp;&nbsp;&nbsp; Dim Xpos As Long<br>&nbsp;&nbsp;&nbsp; Dim Ypos As Long<br><br>&nbsp;&nbsp;&nbsp; If Lmsg = WM_MOUSEWHEEL Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MouseKeys = Wparam And 65535<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rotation = Wparam / 65536<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Xpos = Lparam And 65535<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ypos = Lparam / 65536<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyForm.MouseWheel MouseKeys, Rotation, Xpos, Ypos<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; WindowProc = CallWindowProc(LocalPrevWndProc, Lwnd, Lmsg, Wparam, Lparam)<br>End Function<br><br>Public Sub WheelHook(PassedForm As Form)<br><br>&nbsp;&nbsp;&nbsp; On Error Resume Next<br><br>&nbsp;&nbsp;&nbsp; Set MyForm = PassedForm<br>&nbsp;&nbsp;&nbsp; LocalHwnd = PassedForm.hWnd<br>&nbsp;&nbsp;&nbsp; LocalPrevWndProc = SetWindowLong(LocalHwnd, GWL_WNDPROC, AddressOf WindowProc)<br>End Sub<br><br><br>Public Sub WheelUnHook()<br>&nbsp;&nbsp;&nbsp; Dim WorkFlag As Long<br><br>&nbsp;&nbsp;&nbsp; On Error Resume Next<br>&nbsp;&nbsp;&nbsp; WorkFlag = SetWindowLong(LocalHwnd, GWL_WNDPROC, LocalPrevWndProc)<br>&nbsp;&nbsp;&nbsp; Set MyForm = Nothing<br>End Sub<br><br></font>]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 11:18:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39100&amp;title=solved-vb6-webbrowser-not-skinned#39100</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: VB6 WebBrowser Not Skinned :     Ok.. i got it... here...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39097&amp;title=solved-vb6-webbrowser-not-skinned#39097</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11616<br /><strong>Posted:</strong> 29 July 2008 at 10:57am<br /><br />Ok.. i got it... here is a little code I put in my HTML document... The Javascript Function put the values of the Window Height, and the TotalHeight of the document (actually, the DIV that contains the content) into a hidden field like this:<br><br>docHeight|winHeight<br><br><br><font color="#666666" size="1">function getDocumentHeight()<br>{<br>&nbsp;&nbsp;&nbsp; temp=navigator.appVersion.split('MSIE');<br>&nbsp;&nbsp;&nbsp; ieVer=parseInt(temp&#091;1&#093;);<br>&nbsp;&nbsp;&nbsp; var t=(ieVer == 6)?document.documentElement.clientHeight:document.body.clientHeight;<br>&nbsp;&nbsp;&nbsp; var s = document.getElementById("mainTable").offsetHeight;<br>&nbsp;&nbsp;&nbsp; document.getElementById('docHeight').value = s + '|' + t;<br>}<br>--&gt;<br>&lt;/script&gt;<br>&lt;/HEAD&gt;<br>&lt;BODY&gt;<br>&nbsp;&nbsp;&nbsp; &lt;div name="mainTable" id="mainTable" class=reg&gt;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #Body#<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;input type="hidden" name="docHeight" value=0&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;BR&gt;&lt;BR&gt;<br></font><font color="#666666" size="1">&nbsp;&nbsp;&nbsp; &lt;/div&gt;</font><br><font color="#666666" size="1">&lt;/BODY&gt;</font><font color="#666666"></font><br><br><br>The, from the VB side... <b>HTML </b>is my webBrowser and <b>sbHTML </b>is the associated scrollbar.<br><br>Once your Document is finished loading, call the following code.<br><br><font color="#666666" size="1">Private Sub LoadPage (DocumentHTMLCode as string)<br>&nbsp; Dim DOC As IHTMLDocument<br>&nbsp; Set DOC = HTML.Document<br><br>&nbsp; DOC.Open "text/html", "replace"<br>&nbsp; DOC.Write </font><font color="#666666" size="1">DocumentHTMLCode </font><br><font color="#666666" size="1">&nbsp; DOC.Close<br>&nbsp; <br><font color="#006600">&nbsp; 'HIDE WebBrowser SCROLLBAR!</font><br>&nbsp; HTML.Document.body.Scroll = "no"<br><br></font><font color="#666666" size="1"><font color="#006600">&nbsp;&nbsp;&nbsp; 'Wait for document to load</font></font><br><font color="#666666" size="1">&nbsp; Do While HTML.Busy<br>&nbsp;&nbsp;&nbsp; DoEvents<br>&nbsp; Loop<br><br></font><font color="#666666" size="1"><font color="#006600">&nbsp; 'Retrieve/Set ScrollBar Properties</font></font><br><font color="#666666" size="1">&nbsp; Call SetScrollbar<br></font><font color="#666666" size="1">End Sub </font><font color="#666666"><br><br></font><font color="#666666" size="1">Sub SetScrollbar()<br><font color="#006600">&nbsp; 'Retrieve docHeight and winHeight</font><br>&nbsp; Call HTML.Document.parentWindow.execScript("getDocumentHeight();", "JavaScript")<br>&nbsp; <br>&nbsp; Dim Data() As String<br>&nbsp; Data = Split(HTML.Document.All("docHeight").Value, "|")<br>&nbsp;<br></font><font color="#666666" size="1"><font color="#006600">&nbsp; 'Set Document Height</font></font><br><font color="#666666" size="1">&nbsp; hDoc = val(Data(0))<br><br></font><font color="#666666" size="1"><font color="#006600">&nbsp; 'Set Window Height</font></font><br><font color="#666666" size="1">&nbsp; hWin = val(Data(1))<br>&nbsp; <br>&nbsp; If hDoc &lt; hWin Then<br></font><font color="#666666" size="1"><font color="#006600">&nbsp; &nbsp; 'Document Fits in Current Window, Hide Scrollbar</font></font><br><font color="#666666" size="1">&nbsp;&nbsp;&nbsp; sbHTML.Visible = False<br>&nbsp; Else<br></font><font color="#666666" size="1"><font color="#006600">&nbsp;&nbsp;&nbsp; 'Document May need scrolling, set min/max</font></font><font color="#666666" size="1"><br>&nbsp; &nbsp; sbHTML.Visible = True<br>&nbsp;&nbsp;&nbsp; sbHTML.Min = 1<br>&nbsp;&nbsp;&nbsp; sbHTML.Max = (hDoc - hWin) / 10<br>&nbsp;&nbsp;&nbsp; sbHTML.Value = sbHTML.Min<br>&nbsp; End If<br><br>End Sub</font><font color="#666666"><br><br></font><font color="#666666" size="1">Private Sub sbHTML_Change()<br>&nbsp; HTML.Document.body.scrollTop = sbHTML.Value * 10<br>End Sub</font><br>]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 10:57:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39097&amp;title=solved-vb6-webbrowser-not-skinned#39097</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: VB6 WebBrowser Not Skinned : Perhaps I can get around that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39085&amp;title=solved-vb6-webbrowser-not-skinned#39085</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11616<br /><strong>Posted:</strong> 29 July 2008 at 8:42am<br /><br />Perhaps I can get around that and create my own scrollbar that scrolls the document ... I will post if i come up with a good solution.<br><br>]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 08:42:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39085&amp;title=solved-vb6-webbrowser-not-skinned#39085</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: VB6 WebBrowser Not Skinned : Hi, IE doesn&amp;#039;t use standard...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39032&amp;title=solved-vb6-webbrowser-not-skinned#39032</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11616<br /><strong>Posted:</strong> 29 July 2008 at 2:12am<br /><br /><P>Hi,</P><DIV>IE doesn't use standard ScrolllBar but draws it in own code. We can't change it.</DIV>]]>
   </description>
   <pubDate>Tue, 29 Jul 2008 02:12:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=39032&amp;title=solved-vb6-webbrowser-not-skinned#39032</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: VB6 WebBrowser Not Skinned :    I am using the Skinning...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=38995&amp;title=solved-vb6-webbrowser-not-skinned#38995</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11616<br /><strong>Posted:</strong> 28 July 2008 at 11:08am<br /><br />I am using the Skinning Framework in a VB6 Application, and all the controls are being skinned properly, but the webbrowser control's vertical (and i assume horizontal, though I am not using it) scrollbar is not getting skinned at all. The colors seem to be getting applied, but the graphical aspect of it is not....<br><br><br>Is this normal? Please advise.<br><br>Thanks.<br><br><img src="uploads/20080728_121448_Capture.JPG" height="486" width="698" border="0"><br><br>]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 11:08:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11616&amp;PID=38995&amp;title=solved-vb6-webbrowser-not-skinned#38995</guid>
  </item> 
 </channel>
</rss>