<?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 : How to destroy CXTPPopupControl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to destroy CXTPPopupControl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 01:28:16 +0000</pubDate>
  <lastBuildDate>Fri, 24 Apr 2009 03:24:21 +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=14121</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[How to destroy CXTPPopupControl :   eksubbot wrote:Hello all,I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14121&amp;PID=48310&amp;title=how-to-destroy-cxtppopupcontrol#48310</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2928">terrym</a><br /><strong>Subject:</strong> 14121<br /><strong>Posted:</strong> 24 April 2009 at 3:24am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by eksubbot" alt="Originally posted by eksubbot" style="vertical-align: text-bottom;" /> <strong>eksubbot wrote:</strong><br /><br />Hello all,<BR><BR><BR>I have a question related to CXTPPopupControl.<BR>I create popup control&nbsp; as CXTPPopupControl* pPopupControl = new CXTPPopupControl().<BR>Should I release this memory manually if user presses close button or it will be deleted automatically?<BR>Should I release this memory manually if we call pPopupControl -&gt;Close()? <BR><BR>In help I see that CXTPPopupControl::Close method destroys a popup window but there is no information if CXTPPopupControl's destructor is called.<BR><BR>Thanks in advance.</td></tr></table><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>We have&nbsp;OnPopUpControlNotifyt as below which is called and closes the popup control:</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#030003 size=2><FONT color=#030003 size=2><P>LRESULT</FONT></FONT><FONT size=2> </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>CMainFrame</FONT></FONT><FONT size=2>::</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>OnPopUpControlNotify</FONT></FONT><FONT size=2>( </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>WPARAM</FONT></FONT><FONT size=2> </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>wParam</FONT></FONT><FONT size=2>, </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>LPARAM</FONT></FONT><FONT size=2> </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>lParam</FONT></FONT><FONT size=2> )</P><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> ( </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>wParam</FONT></FONT><FONT size=2> == </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>XTP_PCN_ITEMCLICK</FONT></FONT><FONT size=2> )</P><P>{</P><P></FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>CXTPPopupItem</FONT></FONT><FONT size=2> *</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pItem</FONT></FONT><FONT size=2> = (</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>CXTPPopupItem</FONT></FONT><FONT size=2> *)</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>lParam</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>ASSERT</FONT></FONT><FONT size=2>( </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pItem</FONT></FONT><FONT size=2> );</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// get click id</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>nID</FONT></FONT><FONT size=2> = </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pItem</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>GetID</FONT></FONT><FONT size=2>();</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// close popup</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pItem</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>GetPopupControl</FONT></FONT><FONT size=2>()-&gt;</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>Close</FONT></FONT><FONT size=2>();</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// was this a click ?</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> ( </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>nID</FONT></FONT><FONT size=2> == </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>POPUP_CONTROL_HYPERLINK_BUY_NOW</FONT></FONT><FONT size=2> )</P><P>{</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// yes, so open buy now page</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>OnActivateBuyNow</FONT></FONT><FONT size=2>();</P><P>}</P><P>}</P><P></FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>m_PopupControl</FONT></FONT><FONT size=2>.</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>OnNotify</FONT></FONT><FONT size=2>( </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>wParam</FONT></FONT><FONT size=2>, </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>lParam</FONT></FONT><FONT size=2> );</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>TRUE</FONT></FONT><FONT size=2>;</P><P>}</P></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 24 Apr 2009 03:24:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14121&amp;PID=48310&amp;title=how-to-destroy-cxtppopupcontrol#48310</guid>
  </item> 
  <item>
   <title><![CDATA[How to destroy CXTPPopupControl : I believe this is correctly implemented...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14121&amp;PID=48303&amp;title=how-to-destroy-cxtppopupcontrol#48303</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14121<br /><strong>Posted:</strong> 24 April 2009 at 3:04am<br /><br />I believe this is correctly implemented in Samples\Controls\PopupControl.]]>
   </description>
   <pubDate>Fri, 24 Apr 2009 03:04:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14121&amp;PID=48303&amp;title=how-to-destroy-cxtppopupcontrol#48303</guid>
  </item> 
  <item>
   <title><![CDATA[How to destroy CXTPPopupControl :  Hello all,I have a question...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14121&amp;PID=48281&amp;title=how-to-destroy-cxtppopupcontrol#48281</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5171">eksubbot</a><br /><strong>Subject:</strong> 14121<br /><strong>Posted:</strong> 23 April 2009 at 8:28am<br /><br />Hello all,<br><br><br>I have a question related to CXTPPopupControl.<br>I create popup control&nbsp; as CXTPPopupControl* pPopupControl = new CXTPPopupControl().<br>Should I release this memory manually if user presses close button or it will be deleted automatically?<br>Should I release this memory manually if we call pPopupControl -&gt;Close()? <br><br>In help I see that CXTPPopupControl::Close method destroys a popup window but there is no information if CXTPPopupControl's destructor is called.<br><br>Thanks in advance.]]>
   </description>
   <pubDate>Thu, 23 Apr 2009 08:28:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14121&amp;PID=48281&amp;title=how-to-destroy-cxtppopupcontrol#48281</guid>
  </item> 
 </channel>
</rss>