<?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]Access viloation on CXTPControlGallery</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : [SOLVED]Access viloation on CXTPControlGallery]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 17:58:47 +0000</pubDate>
  <lastBuildDate>Fri, 22 Jul 2016 09:25:36 +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=22811</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]Access viloation on CXTPControlGallery : Hello,I&amp;#039;m glad to inform...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22811&amp;PID=74916&amp;title=solvedaccess-viloation-on-cxtpcontrolgallery#74916</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 22811<br /><strong>Posted:</strong> 22 July 2016 at 9:25am<br /><br />Hello,<br><br>I'm glad to inform you that the issue has been fixed. The fix will be available in the next beta or final release.<br>(svn revision 17840)<br><br>Regards,<br>Artem Gontarenko<br>]]>
   </description>
   <pubDate>Fri, 22 Jul 2016 09:25:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22811&amp;PID=74916&amp;title=solvedaccess-viloation-on-cxtpcontrolgallery#74916</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]Access viloation on CXTPControlGallery :  Hi, I have found a some error...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22811&amp;PID=74168&amp;title=solvedaccess-viloation-on-cxtpcontrolgallery#74168</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8961">jhlee.8804</a><br /><strong>Subject:</strong> 22811<br /><strong>Posted:</strong> 07 December 2015 at 10:34am<br /><br /><div>Hi, I have found a some error when set true to CXTPControlGallery::SetScrollBarAuto.</div><div><br></div><div>Here is sample code. (Used in "Codejock/Sample/Ribbon/RibbonControls/MainFrm.cpp")</div><div><br></div><div><br></div><div><div>// Create Inline Gallery</div><div>if (pTabGallery)</div><div>{</div><div>&nbsp; CXTPRibbonGroup* pGroup = pTabGallery-&gt;AddGroup(ID_GROUP_INLINE);</div><div>&nbsp; pGroup-&gt;SetControlsCentering(TRUE);</div><div><br></div><div>&nbsp; CXTPControlGallery* pControlGallery = new CXTPControlGallery();</div><div>&nbsp; pControlGallery-&gt;SetControlSize(CSize(192, 60));</div><div>&nbsp; pControlGallery-&gt;ShowLabels(FALSE);</div><div>&nbsp; pControlGallery-&gt;ShowScrollBar(TRUE);</div><div>&nbsp; pControlGallery-&gt;ShowBorders(TRUE);</div><div>&nbsp; pControlGallery-&gt;SetItems(m_pItemsFontTextColor);</div><div>&nbsp; <font color="#ff0000">pControlGallery-&gt;SetScrollBarAuto(TRUE); &nbsp; &nbsp; &nbsp; &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; I just added one line code !!!</font></div><div>&nbsp; pGroup-&gt;Add(pControlGallery, ID_GALLERY_STYLES);<span ="apple-tab-span"="" style="white-space:pre">	</span></div><div>&nbsp;&nbsp;</div><div>&nbsp; ...</div><div>}</div></div><div><br></div><div><br></div><div>// Now ScreenShot</div><div>Just only one item displayed and occurred Access Violation error when mouse move on gallery control.</div><div><img src="uploads/8961/now.PNG" height="128" width="584" border="0" /><br></div><div><br></div><div>// To-be ScreenShot</div><div><img src="uploads/8961/tobe.PNG" height="126" width="530" border="0" /><br></div><div><br></div><div><br></div><div>// CallStack</div><div><img src="uploads/8961/callstack.PNG" height="634" width="1594" border="0" /><br></div><div><br></div><div><img src="uploads/8961/callstack2_.png" height="893" width="1611" border="0" /><br></div><div><br></div><div><br></div><div><br></div><div>// Stange Codes</div><div>I think below codes are strange...</div><div><br></div><div><div style="line-height: 16.8px;">void CXTPControlGallery::RepositionCore(BOOL bCheckScroll)</div><div style="line-height: 16.8px;">{</div><div style="line-height: 16.8px;"><span ="apple-tab-span"="" style="white-space: pre;">	</span>CRect rcItems = GetItemsRect();</div><div style="line-height: 16.8px;"><br></div><div style="line-height: 16.8px;"><span ="apple-tab-span"="" style="white-space: pre;">	</span>int x = rcItems.left;</div><div style="line-height: 16.8px;"><span ="apple-tab-span"="" style="white-space: pre;">	</span>int y = rcItems.top;</div><div style="line-height: 16.8px;"><span ="apple-tab-span"="" style="white-space: pre;">	</span>BOOL bFirstItem = TRUE;</div><div style="line-height: 16.8px;"><br></div><div style="line-height: 16.8px;"><span ="apple-tab-span"="" style="white-space: pre;">	</span>int nCount = GetItemCount();</div><div style="line-height: 16.8px;"><br></div><div style="line-height: 16.8px;">&nbsp; &nbsp;&nbsp;<font color="#ff0000">// if item count is 10, m_arrRects will be set size too</font></div><div style="line-height: 16.8px;"><span ="apple-tab-span"="" style="white-space: pre;">	</span>m_arrRects.SetSize(nCount);</div><div style="line-height: 16.8px;"><span ="apple-tab-span"="" style="white-space: pre;">	</span>int nRowHeight = 0;</div><div style="line-height: 16.8px;"><br></div><div style="line-height: 16.8px;"><span ="apple-tab-span"="" style="white-space: pre;">	</span>for (int i = 0 ; i &lt; nCount; i++)</div><div style="line-height: 16.8px;"><span ="apple-tab-span"="" style="white-space: pre;">	</span>{</div><div style="line-height: 16.8px;"><span ="apple-tab-span"="" style="white-space: pre;">		</span>CXTPControlGalleryItem* pItem = GetItem(i);</div><div style="line-height: 16.8px;"><span ="apple-tab-span"="" style="white-space: pre;">		</span>m_arrRects<em>.pItem = pItem;</em></div><div style="line-height: 16.8px;"><em><span ="apple-tab-span"="" style="white-space: pre;">		</span>m_arrRects<em>.bBeginRow = FALSE;</em></em></div><div style="line-height: 16.8px;"><em><em><br></em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">		</span>if (pItem-&gt;IsLabel())</em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">		</span>{</em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">			</span>...</em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">		</span>}</em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">		</span>else</em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">		</span>{</em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">			</span>...</em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">		</span>}</em></em></div><div style="line-height: 16.8px;"><div style="line-height: 16.8px;"><em><em><font color="#ff0000">&nbsp; &nbsp; // but breaked when i == 5 ...</font></em></em></div><div style="line-height: 16.8px;"><em><em><font color="#ff0000">&nbsp; &nbsp; // m_arrRects&#091;6&#093; ~ m_arrRects&#091;9&#093; are will be null pointer!!!</font></em></em></div></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">		</span>if (bCheckScroll &amp;&amp; y + nRowHeight + rcItems.top &gt; rcItems.Height())</em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">		</span>{</em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">			</span>break;</em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">		</span>}</em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">	</span>}</em></em></div><div style="line-height: 16.8px;"><em><em><br></em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">	</span>y += nRowHeight;</em></em></div><div style="line-height: 16.8px;"><em><em><br></em></em></div><div style="line-height: 16.8px;"><em><em><span ="apple-tab-span"="" style="white-space: pre;">	</span>m_nTotalHeight = y - rcItems.top;</em></em></div><div style="line-height: 16.8px;"><em><em>}</em></em></div></div><div><em><em><br></em></em></div><div><em><em><br></em></em></div><div><em><em><br></em></em></div><div><em><em><br></em></em></div><div><em><em>Thanks.</em></em></div><em><em></em></em>]]>
   </description>
   <pubDate>Mon, 07 Dec 2015 10:34:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22811&amp;PID=74168&amp;title=solvedaccess-viloation-on-cxtpcontrolgallery#74168</guid>
  </item> 
 </channel>
</rss>