<?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 : PropertyGrid Toolbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : PropertyGrid Toolbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 16:39:05 +0000</pubDate>
  <lastBuildDate>Wed, 03 Jan 2007 10:28:57 +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=5793</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[PropertyGrid Toolbar : Hi, Craig,  Yes, Oleg&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5793&amp;PID=18767&amp;title=propertygrid-toolbar#18767</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 5793<br /><strong>Posted:</strong> 03 January 2007 at 10:28am<br /><br />Hi, Craig,<DIV>&nbsp;</DIV><DIV>Yes, Oleg's example worked fine - I just turned off the property grid's toolbar and inserted my on.&nbsp; The "real" work is all done in the WM_SIZE handler, where it moves the property grid down depending on the height of the toolbar.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I also have a CWnd-derived window, which has a CXTPPropertyGrid-derived member.&nbsp; In my CWnd, I have an OnGridNotify that forwards messages to the grid (function follows).&nbsp; It doesn't seem like much of a hack, and like you say, it works.</DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>&nbsp;</DIV><DIV>- David</DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT color=#3300ff size=2>LRESULT CC2PaneModelProperties::OnGridNotify( WPARAM wParam, LPARAM lParam )</FONT></DIV><DIV><FONT color=#3300ff size=2>{</FONT></DIV><DIV><FONT color=#3300ff><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; if</FONT><FONT size=2>(m_gridModelPropertyEdit.GetSafeHwnd())</FONT></FONT></DIV><DIV><FONT color=#3300ff size=2>&nbsp;&nbsp;&nbsp;&nbsp; {</FONT></DIV><DIV><FONT color=#3300ff size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return m_gridModelPropertyEdit.OnGridNotify(wParam,lParam);</FONT></DIV><DIV><FONT color=#3300ff size=2>&nbsp;&nbsp;&nbsp;&nbsp; }</FONT></DIV><DIV><FONT color=#3300ff size=2>&nbsp;&nbsp;&nbsp;&nbsp; return 0;</FONT></DIV><DIV><FONT color=#3300ff size=2>}</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 03 Jan 2007 10:28:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5793&amp;PID=18767&amp;title=propertygrid-toolbar#18767</guid>
  </item> 
  <item>
   <title><![CDATA[PropertyGrid Toolbar : David, did you have any luck with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5793&amp;PID=18749&amp;title=propertygrid-toolbar#18749</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1319">cglane</a><br /><strong>Subject:</strong> 5793<br /><strong>Posted:</strong> 03 January 2007 at 1:21am<br /><br />David, did you have any luck with this?&nbsp; <DIV>&nbsp;</DIV><DIV>I have not been able to do what Oleg suggests as the toolbar on the CXTPPropertyGrid is a <FONT size=2>CXTPPropertyGridToolBar.&nbsp; This has limited functionality compared with the toolbar used in the examples (<FONT size=2>CXTPToolBar).&nbsp; </FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>To get arround this problem I have a CWnd upon which&nbsp;I place the CXTPPropertyGrid Control.&nbsp; I then create a toolbar on the Cwnd but load propertygrid toolbar "XTP_IDR_PROPERTYGRID_TOOLBAR".&nbsp; I then add my custom controls to the toolbar.&nbsp; You will need to do a bit of message fowarding to the property grid.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>It is a bit doogy but hey it works..</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Craig..<FONT color=#008000 size=2></DIV><P></FONT></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 03 Jan 2007 01:21:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5793&amp;PID=18749&amp;title=propertygrid-toolbar#18749</guid>
  </item> 
  <item>
   <title><![CDATA[PropertyGrid Toolbar : Thanks, Oleg --- I knew it was...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5793&amp;PID=18241&amp;title=propertygrid-toolbar#18241</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 5793<br /><strong>Posted:</strong> 14 December 2006 at 4:46pm<br /><br />Thanks, Oleg --- I knew it was in there *somewhere*, the problem is just in the finding the right example! <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0"><DIV>&nbsp;</DIV><DIV>- David</DIV>]]>
   </description>
   <pubDate>Thu, 14 Dec 2006 16:46:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5793&amp;PID=18241&amp;title=propertygrid-toolbar#18241</guid>
  </item> 
  <item>
   <title><![CDATA[PropertyGrid Toolbar : Hi, you can just use custom Toolbars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5793&amp;PID=18216&amp;title=propertygrid-toolbar#18216</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5793<br /><strong>Posted:</strong> 14 December 2006 at 1:35pm<br /><br /><P>Hi, you can just use custom Toolbars as we do in most our samples. See GUI_Whidbey or DrawClient sample.</P>]]>
   </description>
   <pubDate>Thu, 14 Dec 2006 13:35:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5793&amp;PID=18216&amp;title=propertygrid-toolbar#18216</guid>
  </item> 
  <item>
   <title><![CDATA[PropertyGrid Toolbar : Is there a way to add buttons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5793&amp;PID=18209&amp;title=propertygrid-toolbar#18209</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 5793<br /><strong>Posted:</strong> 14 December 2006 at 10:18am<br /><br />Is there a way to add buttons to the property grid toolbar?&nbsp; I want a "reset to defaults" and "accept changes" and I don't want to wait until the user closes the box to ask them what they want to do....<DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Thu, 14 Dec 2006 10:18:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5793&amp;PID=18209&amp;title=propertygrid-toolbar#18209</guid>
  </item> 
 </channel>
</rss>