<?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 : No notification message from custom button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : No notification message from custom button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 23:30:17 +0000</pubDate>
  <lastBuildDate>Thu, 13 Mar 2008 02:45:11 +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=9835</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[No notification message from custom button :   oleg wrote:See code in sample:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32203&amp;title=no-notification-message-from-custom-button#32203</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3829">floydzhang</a><br /><strong>Subject:</strong> 9835<br /><strong>Posted:</strong> 13 March 2008 at 2:45am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />See code in sample: <DIV>&nbsp;</DIV><DIV>BEGIN_MESSAGE_MAP(CInplaceButton, CXTButton)<BR>&nbsp;ON_CONTROL_REFLECT(BN_CLICKED, OnClicked)<BR>&nbsp;ON_WM_SETCURSOR()<BR>END_MESSAGE_MAP()</DIV><DIV>void CInplaceButton::OnClicked()<BR>{<BR>&nbsp;m_pItem-&gt;m_bValue = !m_pItem-&gt;m_bValue;<BR>&nbsp;m_pItem-&gt;OnValueChanged(m_pItem-&gt;GetValue());<BR>&nbsp;<BR>&nbsp;SetChecked(m_pItem-&gt;m_bValue);<BR>}<BR></DIV><DIV>check that you have same.</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>Hi, Oleg,</DIV><DIV>&nbsp;</DIV><DIV>Thank you for your information. The probelm has been fixed. Because one line was commented by a guy. Haha. Thank you and sorry.</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>Boyang</DIV>]]>
   </description>
   <pubDate>Thu, 13 Mar 2008 02:45:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32203&amp;title=no-notification-message-from-custom-button#32203</guid>
  </item> 
  <item>
   <title><![CDATA[No notification message from custom button : I copied the customitems.h and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32190&amp;title=no-notification-message-from-custom-button#32190</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3829">floydzhang</a><br /><strong>Subject:</strong> 9835<br /><strong>Posted:</strong> 12 March 2008 at 7:51am<br /><br />I copied the customitems.h and customitems.cpp to my project from sample, but it didn't work. ]]>
   </description>
   <pubDate>Wed, 12 Mar 2008 07:51:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32190&amp;title=no-notification-message-from-custom-button#32190</guid>
  </item> 
  <item>
   <title><![CDATA[No notification message from custom button : See code in sample:  BEGIN_MESSAGE_MAP(CInplaceButton,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32180&amp;title=no-notification-message-from-custom-button#32180</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9835<br /><strong>Posted:</strong> 12 March 2008 at 4:45am<br /><br />See code in sample:<DIV>&nbsp;</DIV><DIV>BEGIN_MESSAGE_MAP(CInplaceButton, CXTButton)<BR>&nbsp;ON_CONTROL_REFLECT(BN_CLICKED, OnClicked)<BR>&nbsp;ON_WM_SETCURSOR()<BR>END_MESSAGE_MAP()</DIV><DIV>void CInplaceButton::OnClicked()<BR>{<BR>&nbsp;m_pItem-&gt;m_bValue = !m_pItem-&gt;m_bValue;<BR>&nbsp;m_pItem-&gt;OnValueChanged(m_pItem-&gt;GetValue());<BR>&nbsp;<BR>&nbsp;SetChecked(m_pItem-&gt;m_bValue);<BR>}<BR></DIV><DIV>check that you have same.</DIV>]]>
   </description>
   <pubDate>Wed, 12 Mar 2008 04:45:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32180&amp;title=no-notification-message-from-custom-button#32180</guid>
  </item> 
  <item>
   <title><![CDATA[No notification message from custom button : Anyone can help me? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32178&amp;title=no-notification-message-from-custom-button#32178</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3829">floydzhang</a><br /><strong>Subject:</strong> 9835<br /><strong>Posted:</strong> 12 March 2008 at 4:26am<br /><br />Anyone can help me? <img src="https://forum.codejock.com/smileys/smiley19.gif" border="0">]]>
   </description>
   <pubDate>Wed, 12 Mar 2008 04:26:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32178&amp;title=no-notification-message-from-custom-button#32178</guid>
  </item> 
  <item>
   <title><![CDATA[No notification message from custom button : Hi, Oleg,   Thank you for your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32079&amp;title=no-notification-message-from-custom-button#32079</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3829">floydzhang</a><br /><strong>Subject:</strong> 9835<br /><strong>Posted:</strong> 10 March 2008 at 7:29am<br /><br />Hi, Oleg, <DIV>&nbsp;</DIV><DIV>Thank you for your reply. Actually, they are not standard buttons.&nbsp;These custom buttons are propertygrid items derived from CTXPropertyGridItem. I copied this&nbsp;class from GridSample shipped with XTP. This class is defined as below:</DIV><DIV>&nbsp;</DIV><DIV>class CCustomItemButton : public CXTPPropertyGridItem<BR>{<BR>protected:</DIV><DIV>public:<BR>&nbsp;CCustomItemButton(CString strCaption, BOOL bFullRowButton, BOOL bValue);</DIV><DIV>&nbsp;BOOL GetBool();<BR>&nbsp;void SetBool(BOOL bValue);</DIV><DIV>protected:<BR>&nbsp;virtual BOOL IsValueChanged();<BR>&nbsp;virtual void SetVisible(BOOL bVisible);<BR>&nbsp;BOOL OnDrawItemValue(CDC&amp; dc, CRect rcValue);<BR>&nbsp;virtual void OnIndexChanged();<BR>&nbsp;void CreateButton();</DIV><DIV><BR>private:<BR>&nbsp;CInplaceButton m_wndButton;<BR>&nbsp;BOOL m_bValue;<BR>&nbsp;CFont m_wndFont;<BR>&nbsp;CString m_strButtonText;<BR>&nbsp;BOOL m_bFullRowButton;</DIV><DIV>&nbsp;friend class CInplaceButton;<BR>};</DIV><DIV><BR>&nbsp;</DIV><DIV>I created this grid items as following code:</DIV><DIV>&nbsp;</DIV><DIV>CXTPPropertyGridItem* pCustomItem = m_wndPropertyGridPart.AddCategory(_T("Test Button"));<BR>&nbsp;&nbsp;&nbsp;pCustomItem-&gt;AddChildItem(new CCustomItemButton(_T("Update"), TRUE, TRUE));</DIV><DIV>&nbsp;</DIV><DIV>But GridSample hasn't this kind of problem, it can catch notify message when the button grid item is clicked through OnGirdNotify(). I do the same as GridSample, but I can get the same result.</DIV><DIV>&nbsp;</DIV><DIV>By the way,&nbsp;I update these grid items dynamically. This mean I will remove or add some items according to some rules. I use a function UpdateGrid()&nbsp;located in CMainFarme to do this (update grid items).</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>Boyang</DIV>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 07:29:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32079&amp;title=no-notification-message-from-custom-button#32079</guid>
  </item> 
  <item>
   <title><![CDATA[No notification message from custom button : Hi, Why standard buttons have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32066&amp;title=no-notification-message-from-custom-button#32066</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9835<br /><strong>Posted:</strong> 10 March 2008 at 4:26am<br /><br />Hi,<DIV>Why standard buttons have to send messages to OnGridNotify??? They send them to its parent.</DIV>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 04:26:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32066&amp;title=no-notification-message-from-custom-button#32066</guid>
  </item> 
  <item>
   <title><![CDATA[No notification message from custom button : Hi,   I met a strange problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32062&amp;title=no-notification-message-from-custom-button#32062</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3829">floydzhang</a><br /><strong>Subject:</strong> 9835<br /><strong>Posted:</strong> 10 March 2008 at 3:54am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>I met a strange problem with XTP 11.2.1. I inserted a propertygrid on a pane, and I also created a CXTListCtrl on that pane. I could catch the notification message through OnGridNotify() when I clicked the standard grid items. Then I inserted some custom button as grid item into the propertygrid(same&nbsp;as GridSample) , but I couldn't catch the notification message through OnGridNotify() when I clicked custom button.</DIV><DIV>&nbsp;</DIV><DIV>What's the problem...? </DIV><DIV>&nbsp;</DIV><DIV>some of my code:</DIV><DIV>&nbsp;</DIV><DIV>BEGIN_MESSAGE_MAP(CPropertiesPane, CWnd)<BR>&nbsp;&nbsp;&nbsp;&nbsp; ......</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; ON_MESSAGE(XTPWM_PROPERTYGRID_NOTIFY, OnGirdNotify)</DIV><DIV>END_MESSAGE_MAP()</DIV><DIV>&nbsp;</DIV><DIV>LRESULT CPropertiesPane::OnGirdNotify(WPARAM wParam, LPARAM lParam)<BR>{<BR>&nbsp;&nbsp; &nbsp; int nGridAction = (int)wParam;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; .....</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>int CPropertiesPane::OnCreate(LPCREATESTRUCT lpCreateStruct)<BR>{<BR>&nbsp;&nbsp;&nbsp; if (CWnd::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;</DIV><DIV>&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp; ......</DIV><DIV>&nbsp;&nbsp; &nbsp;if (m_wndPropertyGridPart.GetSafeHwnd() == 0)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndPropertyGridPart.Create(CRect(0, 0, 0, 0), this, 0xf0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndPropertyGridPart.SetOwner(this);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndPropertyGridPart.SetTheme(xtpGridThemeDefault);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndPropertyGridPart.ShowHelp(FALSE);</DIV><DIV>&nbsp;&nbsp;&nbsp; .....<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>Boyang</DIV>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 03:54:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9835&amp;PID=32062&amp;title=no-notification-message-from-custom-button#32062</guid>
  </item> 
 </channel>
</rss>