<?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 : Problem with CCustomItemSlider in PropertyGrid.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Problem with CCustomItemSlider in PropertyGrid.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 07:23:56 +0000</pubDate>
  <lastBuildDate>Mon, 08 Jul 2013 17:44:33 +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=21778</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[Problem with CCustomItemSlider in PropertyGrid. : SOLVED:Comparing the source code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21778&amp;PID=71339&amp;title=problem-with-ccustomitemslider-in-propertygrid#71339</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3961">Ronney</a><br /><strong>Subject:</strong> 21778<br /><strong>Posted:</strong> 08 July 2013 at 5:44pm<br /><br />SOLVED:<div><div>Comparing the source code with version 15.3.1, I found the line "m_pGrid-&gt;Refresh()" out of place:<div><br></div><div>void CXTPPropertyGridItem::OnMarkupChanged()</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>// update markup</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>XTPMarkupReleaseElement(m_pMarkupValue);</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if (!m_pGrid || !m_pGrid-&gt;m_pGrid)</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>return;</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if (m_pGrid-&gt;m_pGrid-&gt;GetMarkupContext() &amp;&amp; GetMarkupTemplate().GetLength())</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>CString final_markup = GetMarkupTemplate();</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>final_markup.Replace(XTP_PG_ITEMVALUE_TO_REPLACE_IN_MARKUP, GetValue());</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">		</span>m_pMarkupValue = XTPMarkupParseText(m_pGrid-&gt;m_pGrid-&gt;GetMarkupContext(), final_markup);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>m_pGrid-&gt;Refresh(); // to force call MeasureItem, markup should be changed</div><div>}</div><div><br></div><div><br></div><div>Previously it was inside the last 'if':</div><div><br></div><div>void CXTPPropertyGridItem::OnMarkupChanged()</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>// update markup</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>XTPMarkupReleaseElement(m_pMarkupValue);</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if (!m_pGrid || !m_pGrid-&gt;m_pGrid)</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>return;</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if (m_pGrid-&gt;m_pGrid-&gt;GetMarkupContext() &amp;&amp; GetMarkupTemplate().GetLength())</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>CString final_markup = GetMarkupTemplate();</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>final_markup.Replace(XTP_PG_ITEMVALUE_TO_REPLACE_IN_MARKUP, GetValue());</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">		</span>m_pMarkupValue = XTPMarkupParseText(m_pGrid-&gt;m_pGrid-&gt;GetMarkupContext(), final_markup);</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">		</span>m_pGrid-&gt;Refresh(); // to force call MeasureItem, markup should be changed</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div>}</div><div><br></div></div></div>]]>
   </description>
   <pubDate>Mon, 08 Jul 2013 17:44:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21778&amp;PID=71339&amp;title=problem-with-ccustomitemslider-in-propertygrid#71339</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with CCustomItemSlider in PropertyGrid. : I figured out how to use CXTPP...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21778&amp;PID=71338&amp;title=problem-with-ccustomitemslider-in-propertygrid#71338</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3961">Ronney</a><br /><strong>Subject:</strong> 21778<br /><strong>Posted:</strong> 08 July 2013 at 4:28pm<br /><br />I figured out how to use CXTPPropertyGridItem::AddSliderControl(). But it solves the problem partially. The 'black issue' does not appears anymore, but I still cannot drag the cursor. <br><br>If I insist dragging, the software crashes, falling in the condition bellow, the same with the PropertyGrid sample program:<br><div><span style="line-height: 1.4;"><br></span></div><div><div>Output:</div><div><br></div><div>HEAP&#091;playlist.exe&#093;: HEAP: Free Heap block 05CE0D28 modified at 05CE0DF4 after it was freed</div><div>Windows has triggered a breakpoint in playlist.exe.</div><div><br></div><div>This may be due to a corruption of the heap, which indicates a bug in playlist.exe or any of the DLLs it has loaded.</div><div><br></div><div><br></div><div>Callstack:</div><div><br></div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>ntdll.dll!_RtlpBreakPointHeap@4() &nbsp;+ 0x20 bytes<span ="Apple-tab-span" style="white-space:pre">	</span></div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>ntdll.dll!@RtlpAllocateHeap@24() &nbsp;+ 0x33167 bytes<span ="Apple-tab-span" style="white-space:pre">	</span></div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>ntdll.dll!_RtlAllocateHeap@12() &nbsp;+ 0x11f70 bytes<span ="Apple-tab-span" style="white-space:pre">	</span></div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>ntdll.dll!_RtlDebugAllocateHeap@12() &nbsp;+ 0xcc bytes<span ="Apple-tab-span" style="white-space:pre">	</span></div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>ntdll.dll!@RtlpAllocateHeap@24() &nbsp;+ 0x32ff9 bytes<span ="Apple-tab-span" style="white-space:pre">	</span></div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>ntdll.dll!_RtlAllocateHeap@12() &nbsp;+ 0x11f70 bytes<span ="Apple-tab-span" style="white-space:pre">	</span></div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>user32.dll!_UserRtlAllocMem@4() &nbsp;+ 0x16 bytes<span ="Apple-tab-span" style="white-space:pre">	</span></div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>user32.dll!_MBToWCSEx@24() &nbsp;+ 0x118ce bytes<span ="Apple-tab-span" style="white-space:pre">	</span></div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>user32.dll!_DrawTextExA@24() &nbsp;+ 0x3a bytes<span ="Apple-tab-span" style="white-space:pre">	</span></div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>user32.dll!_DrawTextA@20() &nbsp;+ 0x3d bytes<span ="Apple-tab-span" style="white-space:pre">	</span></div><div>&gt;<span ="Apple-tab-span" style="white-space:pre">	</span>Playlist.exe!CDC::DrawTextA(const char * lpszString, int nCount, tagRECT * lpRect, unsigned int nFormat) &nbsp;Line 596 + 0x15 bytes<span ="Apple-tab-span" style="white-space:pre">	</span>C++</div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>Playlist.exe!CXTPPropertyGridPaintManager::FillPropertyGrid(CDC * pDC) &nbsp;Line 283 + 0x14 bytes<span ="Apple-tab-span" style="white-space:pre">	</span>C++</div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>Playlist.exe!CXTPPropertyGrid::OnPaint() &nbsp;Line 497<span ="Apple-tab-span" style="white-space:pre">	</span>C++</div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>Playlist.exe!CWnd::OnWndMsg(unsigned int message, unsigned int wParam, long lParam, long * pResult) &nbsp;Line 2460<span ="Apple-tab-span" style="white-space:pre">	</span>C++</div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>Playlist.exe!CXTPPropertyGrid::OnWndMsg(unsigned int message, unsigned int wParam, long lParam, long * pResult) &nbsp;Line 1615 + 0x13 bytes<span ="Apple-tab-span" style="white-space:pre">	</span>C++</div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>Playlist.exe!CWnd::WindowProc(unsigned int message, unsigned int wParam, long lParam) &nbsp;Line 2137 + 0x17 bytes<span ="Apple-tab-span" style="white-space:pre">	</span>C++</div><div style="line-height: 1.4;"><br></div></div><div style="line-height: 1.4;"><br></div>]]>
   </description>
   <pubDate>Mon, 08 Jul 2013 16:28:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21778&amp;PID=71338&amp;title=problem-with-ccustomitemslider-in-propertygrid#71338</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with CCustomItemSlider in PropertyGrid. : Since version 16.1.0 I&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21778&amp;PID=71336&amp;title=problem-with-ccustomitemslider-in-propertygrid#71336</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3961">Ronney</a><br /><strong>Subject:</strong> 21778<br /><strong>Posted:</strong> 08 July 2013 at 2:01pm<br /><br />Since version 16.1.0 I'm having an issue with CCustomItemSlider, from Property Grid sample: When the user clicks on the bar, it becomes black and It's not possible to drag the slider cursor also. The problem occurs on the sample program also.<div><br></div><div><br><div><img src="uploads/3961/PropertyGrid.jpg" height="471" width="714" border="0" />al Studio asserts with a message about heap corruption.&nbsp;</div></div>]]>
   </description>
   <pubDate>Mon, 08 Jul 2013 14:01:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21778&amp;PID=71336&amp;title=problem-with-ccustomitemslider-in-propertygrid#71336</guid>
  </item> 
 </channel>
</rss>