<?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 : again, property grid right button menu losing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : again, property grid right button menu losing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 11:19:53 +0000</pubDate>
  <lastBuildDate>Tue, 25 Aug 2009 05:34:43 +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=15038</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[again, property grid right button menu losing : Hi,  Create sample (or modify...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15038&amp;PID=52356&amp;title=again-property-grid-right-button-menu-losing#52356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15038<br /><strong>Posted:</strong> 25 August 2009 at 5:34am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Create sample (or modify TabbeView sample)&nbsp;that shows this&nbsp;problem and what exactly you do in your code and attach it here.</DIV>]]>
   </description>
   <pubDate>Tue, 25 Aug 2009 05:34:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15038&amp;PID=52356&amp;title=again-property-grid-right-button-menu-losing#52356</guid>
  </item> 
  <item>
   <title><![CDATA[again, property grid right button menu losing : big masters, can you have a try...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15038&amp;PID=52348&amp;title=again-property-grid-right-button-menu-losing#52348</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5482">rienzi</a><br /><strong>Subject:</strong> 15038<br /><strong>Posted:</strong> 24 August 2009 at 11:41pm<br /><br />big masters, can you have a try of the task below?<br /><br /><br />first establish a tab view control, then add items of CWnd to the control with the fellowing codes<br /><br /><br />BOOL CTabbedViewView::AddView(CRuntimeClass* pViewClass, LPCTSTR lpszTitle, int nIcon)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CCreateContext contextT;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contextT.m_pCurrentDoc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= GetDocument();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contextT.m_pNewViewClass&nbsp;&nbsp;&nbsp;= pViewClass;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contextT.m_pNewDocTemplate = GetDocument()-&gt;GetDocTemplate();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CWnd* pWnd;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TRY<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pWnd = (CWnd*)pViewClass-&gt;CreateObject();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (pWnd == NULL)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AfxThrowMemoryException();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CATCH_ALL(e)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TRACE0( "Out of memory creating a view.\n" );<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Note: DELETE_EXCEPTION(e) not required<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return FALSE;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;END_CATCH_ALL<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DWORD dwStyle = AFX_WS_DEFAULT_VIEW;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dwStyle &= ~WS_BORDER;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int nTab = m_wndTabControl.GetItemCount();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Create with the right size (wrong position)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CRect rect(0,0,0,0);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!pWnd-&gt;Create(NULL, NULL, dwStyle,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rect, &m_wndTabControl, (AFX_IDW_PANE_FIRST + nTab), &contextT))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TRACE0( "Warning: couldn't create client tab for view.\n" );<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// pWnd will be cleaned up by PostNcDestroy<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return NULL;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_wndTabControl.InsertItem(nTab, lpszTitle, pWnd-&gt;GetSafeHwnd(), nIcon);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pWnd-&gt;SetOwner(this);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return TRUE;<br /><br />}<br /><br /><br />add some CFormView items which contains property grid controls to the tabcontrol, then when you run your application and use the property grid controls in your tab view, the right button menu of your mouse in an edit item does not work<br /><br />I also tried that when I let a CDialog object which contains property grid control be the child of a CFormView item in a tab view control, the same problem occurs again.<br /><br /><br /><br />Can anybody try this and tell me the result and tell me why? I want use tab view control and property grid control together. And I am confused by this problem for days.]]>
   </description>
   <pubDate>Mon, 24 Aug 2009 23:41:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15038&amp;PID=52348&amp;title=again-property-grid-right-button-menu-losing#52348</guid>
  </item> 
 </channel>
</rss>