<?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 : Trapping Property Sheet buttons messages</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Trapping Property Sheet buttons messages]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 08 Apr 2026 20:56:19 +0000</pubDate>
  <lastBuildDate>Thu, 25 Jun 2020 13:22:59 +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=24006</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[Trapping Property Sheet buttons messages : (I moved this post to this sub-forum...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24006&amp;PID=77744&amp;title=trapping-property-sheet-buttons-messages#77744</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9425">mstj</a><br /><strong>Subject:</strong> 24006<br /><strong>Posted:</strong> 25 June 2020 at 1:22pm<br /><br /><div>(I moved this post to this sub-forum which is more appropriate and deleted the old post)<br></div><div><br></div><div>Hello.</div><div><br></div><div>I'm having trouble trapping any message coming from the property sheet to pages, especially when I click on OK | Cancel | Apply buttons. <br></div><div><br></div><div>First thing I tried was whether I could trap a button click on the Property Sheet.<br></div><div>It seems that a simple ON_BN_CLICKED with the appropriate button ID like so:</div><div><br></div><div>&nbsp;&nbsp; ON_BN_CLICKED(IDOK, OnBnClickedOk)<br>&nbsp;&nbsp; ON_BN_CLICKED(IDCANCEL, OnBnClickedClose)<br>&nbsp;&nbsp; ON_BN_CLICKED(ID_APPLY_NOW, OnBnClickedApply)<br></div><div><br></div><div>doesn't do anything.<br></div><div><br></div><div>Following the source code, its seems that a SendMessage(WM_NOTIFY) is sent to each <b>page </b>after a button click.&nbsp; So I could trap some message in the Property Page but WM_NOTIFY is usually not used as an ON_MESSAGE(WM_NOTIFY) to trap anything.&nbsp; <br></div><div><br></div><div>Another funny thing:&nbsp; The property sheet sample is pretty silent about it.<br></div><div><br></div><div>So how can I trap any button messages either on the Property Sheet or Page ?<br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 25 Jun 2020 13:22:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24006&amp;PID=77744&amp;title=trapping-property-sheet-buttons-messages#77744</guid>
  </item> 
 </channel>
</rss>