<?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] Warning:calling DestroyWindow in ~CWnd</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : [solved] Warning:calling DestroyWindow in ~CWnd]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 01:46:27 +0000</pubDate>
  <lastBuildDate>Tue, 28 Mar 2017 10:37: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=23296</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] Warning:calling DestroyWindow in ~CWnd : Hello Alex H.,We have already...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23296&amp;PID=75661&amp;title=solved-warningcalling-destroywindow-in-cwnd#75661</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23296<br /><strong>Posted:</strong> 28 March 2017 at 10:37am<br /><br />Hello Alex H.,<br><br>We have already fixed this warning. New versions of methods are below:<br>Source\Common\FrameShadow\XTPFrameShadowManager.cpp&nbsp;<table width="99%"><tr><td><pre class="BBcode">void CXTPFrameShadowManager::DisableShadow(HWND hWnd)<div>{</div><div>&nbsp; &nbsp; CXTPSimpleCriticalSection::CLock lock(*m_pGuard);</div><div><br></div><div>&nbsp; &nbsp; CXTPFrameShadow* pShadow = GetShadow(hWnd);</div><div>&nbsp; &nbsp; if (NULL != pShadow)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Notify(&amp;IXTPFrameShadowManagerEvents::OnFrameShadowDisabled, hWnd, pShadow);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SetShadowThreadMessageHook(pShadow, FALSE);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; m_mapWnd.RemoveKey(hWnd);</div><div><br></div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; if (::IsWindow(*pShadow))</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; {</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pShadow-&gt;DestroyWindow();</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; }</font></b></div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; DWORD refs = pShadow-&gt;InternalRelease();</div><div>......</div>}</pre></td></tr></table><br>Source\TaskPanel\Themes\XTPTaskPanelVisualStudio2010Theme.cpp <table width="99%"><tr><td><pre class="BBcode">void CXTPTaskPanelVisualStudio2010Theme::RefreshMetrics()<div>{</div><div>....... &nbsp; &nbsp;</div><div><span style="line-height: 1.4;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_themeTreeExplorer-&gt;OpenThemeData(wnd, L"TREEVIEW");</span></div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b><font color="#00cc00">wnd.DestroyWindow();</font></b></div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div>}</pre></td></tr></table><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Tue, 28 Mar 2017 10:37:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23296&amp;PID=75661&amp;title=solved-warningcalling-destroywindow-in-cwnd#75661</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Warning:calling DestroyWindow in ~CWnd : It happens when closing my application.It...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23296&amp;PID=75659&amp;title=solved-warningcalling-destroywindow-in-cwnd#75659</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=365">Alex H.</a><br /><strong>Subject:</strong> 23296<br /><strong>Posted:</strong> 28 March 2017 at 10:17am<br /><br />It happens when closing my application.<br>It looks like a problem with CXTPFrameShadow ?<br><br>Hi codejock team any idea whats going wrong here?<br><br>Stack:<br><br>&gt;&nbsp;&nbsp;&nbsp; cRM.exe!CWnd::~CWnd() Line 804&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CXTPFrameShadow::~CXTPFrameShadow() Line 225&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; &#091;External Code&#093;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CXTPFrameShadow::OnFinalRelease() Line 543&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CCmdTarget::InternalRelease() Line 177&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CXTPFrameShadowManager::DisableShadow(HWND__ * hWnd) Line 408&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CXTPFrameShadowManager::OnHookMessage(tagCWPRETSTRUCT * pc) Line 701&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CXTPFrameShadowManager::CFrameShadowHook::OnHookMessage(HWND__ * __formal, unsigned int __formal, unsigned int &amp; __formal, long &amp; lParam, long &amp; __formal) Line 108&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CXTPHookManager::CHookSink::OnHookMessage(HWND__ * hWnd, unsigned int nMessage, unsigned int &amp; wParam, long &amp; lParam, long &amp; lResult) Line 302&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CXTPHookManager::OnWindowsHookProc(int idHook, int nCode, unsigned int wParam, long lParam) Line 524&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CXTPHookManager::OnWH_CALLWNDPROCRET(int nCode, unsigned int wParam, long lParam) Line 502&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; &#091;External Code&#093;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CFrameWnd::OnClose() Line 937&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CUIMainFrame::OnClose() Line 4295&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CWnd::OnWndMsg(unsigned int message, unsigned int wParam, long lParam, long * pResult) Line 2458&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CXTPCommandBarsSiteBase&lt;CMDIFrameWnd&gt;::OnWndMsg(unsigned int message, unsigned int wParam, long lParam, long * pResult) Line 199&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CUIMainFrame::OnWndMsg(unsigned int message, unsigned int wParam, long lParam, long * pResult) Line 9659&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CWnd::WindowProc(unsigned int message, unsigned int wParam, long lParam) Line 2093&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!AfxCallWndProc(CWnd * pWnd, HWND__ * hWnd, unsigned int nMsg, unsigned int wParam, long lParam) Line 265&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!AfxWndProc(HWND__ * hWnd, unsigned int nMsg, unsigned int wParam, long lParam) Line 418&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; &#091;External Code&#093;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CXTPHookManager::HookWndProc(HWND__ * hWnd, unsigned int message, unsigned int wParam, long lParam) Line 431&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; &#091;External Code&#093;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CWnd::SendMessageW(unsigned int message, unsigned int wParam, long lParam) Line 32&nbsp;&nbsp;&nbsp; C++<br>&nbsp;&nbsp;&nbsp;&nbsp; cRM.exe!CWinApp::OnAppExit() Line 24&nbsp;&nbsp;&nbsp; C++<br>...<br><br><br>We use XTP 17.3 with VS 2015.<br><br>Please help!<br>]]>
   </description>
   <pubDate>Tue, 28 Mar 2017 10:17:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23296&amp;PID=75659&amp;title=solved-warningcalling-destroywindow-in-cwnd#75659</guid>
  </item> 
 </channel>
</rss>