<?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 : Tabcontrol in none VB6 container</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Tabcontrol in none VB6 container]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:58:02 +0000</pubDate>
  <lastBuildDate>Sat, 04 Jun 2011 08:16:11 +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=18480</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[Tabcontrol in none VB6 container :   oleg wrote:Please open new...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18480&amp;PID=64717&amp;title=tabcontrol-in-none-vb6-container#64717</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1862">youka</a><br /><strong>Subject:</strong> 18480<br /><strong>Posted:</strong> 04 June 2011 at 8:16am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Please open new ticket in support.codejock.com (support@codejock.com)&nbsp;<DIV>We will try to help and send changed ActiveX to test.</DIV></td></tr></table> <DIV></DIV><DIV></DIV>thanks oleg , i have sent the mail.<DIV>&nbsp;</DIV><DIV>Also present&nbsp;a small fix here for ATL dispatch impl (not so good but anyway solve the problem now)</DIV><DIV>&nbsp;</DIV><DIV><BR><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>#define NO_DISPATCH_FIX //fix for some control ?</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left></DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>#ifndef NO_DISPATCH_FIX</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp; #define IDispatchImplFix IDispatchImpl</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>#else</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp; //define for replacement of idispatchimpl</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp; template &lt;class T, const IID* piid = &amp;__uuidof(T), const GUID* plibid = &amp;CAtlModule::m_libid, WORD wMajor = 1,</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WORD wMinor = 0, class tihclass = CComTypeInfoHolder&gt;</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp; class ATL_NO_VTABLE IDispatchImplFix : public IDispatchImpl&lt;T, piid, plibid, wMajor, wMinor&gt;</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp; {</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp; public:</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STDMETHOD(Invoke)(DISPID dispidMember, REFIID riid,</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LCID lcid, WORD wFlags, DISPPARAMS* pdispparams, VARIANT* pvarResult,</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXCEPINFO* pexcepinfo, UINT* puArgErr)</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HRESULT hr = _tih.Invoke((IDispatch*)this, dispidMember, riid, lcid, wFlags, pdispparams, pvarResult, pexcepinfo, puArgErr);</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (hr == DISP_E_PARAMNOTFOUND &amp;&amp; wFlags == DISPATCH_PROPERTYPUT)</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //fix and invoke again </DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (pdispparams-&gt;cNamedArgs==0 &amp;&amp; pdispparams-&gt;rgdispidNamedArgs==NULL &amp;&amp; pdispparams-&gt;cArgs==1)</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DISPID dispidPut = DISPID_PROPERTYPUT;</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdispparams-&gt;rgdispidNamedArgs = &amp;dispidPut;</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdispparams-&gt;cNamedArgs=1;</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hr = _tih.Invoke((IDispatch*)this, dispidMember, riid, lcid, wFlags, pdispparams, pvarResult, pexcepinfo, puArgErr);</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return hr;</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV style="TEXT-ALIGN: left; mso-layout-grid-align: n&#111;ne" align=left>&nbsp;&nbsp;&nbsp;&nbsp; };</DIV><DIV style="MARGIN: 0cm 0cm 0pt">#endif</DIV></DIV>]]>
   </description>
   <pubDate>Sat, 04 Jun 2011 08:16:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18480&amp;PID=64717&amp;title=tabcontrol-in-none-vb6-container#64717</guid>
  </item> 
  <item>
   <title><![CDATA[Tabcontrol in none VB6 container : Please open new ticket in support.codejock.com...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18480&amp;PID=64707&amp;title=tabcontrol-in-none-vb6-container#64707</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 18480<br /><strong>Posted:</strong> 03 June 2011 at 4:49am<br /><br />Please open new ticket in support.codejock.com (support@codejock.com)&nbsp;<div>We will try to help and send changed ActiveX to test.</div>]]>
   </description>
   <pubDate>Fri, 03 Jun 2011 04:49:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18480&amp;PID=64707&amp;title=tabcontrol-in-none-vb6-container#64707</guid>
  </item> 
  <item>
   <title><![CDATA[Tabcontrol in none VB6 container : Hi all , This is a question for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18480&amp;PID=64684&amp;title=tabcontrol-in-none-vb6-container#64684</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1862">youka</a><br /><strong>Subject:</strong> 18480<br /><strong>Posted:</strong> 01 June 2011 at 5:01am<br /><br /><P>Hi all ,</P><DIV>This is a question for CJ developers. I know this is far beyond&nbsp;a&nbsp; technical support&nbsp;, but i do hope to find answers here.</DIV><DIV>&nbsp;</DIV><DIV>I am recently work on a test container that can host activex controls but found something strange in cj tab control(tested with suitcontrol 11.1.3 and 15.0.2 demo), i have even&nbsp;succeeded in make the old age sstab control&nbsp;work with my container , &nbsp;but not for codejock tabcontrol.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>when tabcontrol switchs&nbsp;selected tab,&nbsp;&nbsp;the control&nbsp;will do late bound invoke to extender controls' visible, name, index , left properties, but it won't work if it's not VB6.</DIV><DIV>&nbsp;</DIV><DIV>the problem is that when tabcontrol is trying to set the left and visible&nbsp;property&nbsp;to the child control&nbsp;contained, &nbsp;but the parameter passed is not a COM standard one, which is , as documented in msdn, 'a DISPATCH_PROPERTYPUT call should use named arguments' , in fact it's not and it <FONT color=#ff0000>do works with VB6</FONT>, but won't work with other containers. </DIV><DIV>&nbsp;</DIV><DIV>snap1:</DIV><DIV>getidofname&nbsp;:&nbsp;left</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/1862/snap1.jpg" height="137" width="574" border="0" /></DIV><DIV>&nbsp;</DIV><DIV>snap2:</DIV><DIV>invoke property put to left to an offscreen position</DIV><DIV><FONT color=#ff0000>you can see that "cNamedArgs' is 0 and rgdispidNamedArgs is NULL instead of &amp;DISPID_PROPERTYPUT</FONT></DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/1862/snap2.jpg" height="159" width="567" border="0" /></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>-Youka</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; </DIV>]]>
   </description>
   <pubDate>Wed, 01 Jun 2011 05:01:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18480&amp;PID=64684&amp;title=tabcontrol-in-none-vb6-container#64684</guid>
  </item> 
 </channel>
</rss>