<?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 : Update handler doesn&#039;t work for popup menus?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Update handler doesn&#039;t work for popup menus?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 05:42:57 +0000</pubDate>
  <lastBuildDate>Sun, 22 Jun 2008 02:35:46 +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=11131</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[Update handler doesn&#039;t work for popup menus? : Hi, if you use &amp;#034;this&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11131&amp;PID=37170&amp;title=update-handler-doesnt-work-for-popup-menus#37170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11131<br /><strong>Posted:</strong> 22 June 2008 at 2:35am<br /><br />Hi,<DIV>if you use "this" Update handler have to be in CTodoListView.</DIV><DIV>&nbsp;</DIV><DIV>Instead "this" try "AfxGetMainWnd()"</DIV>]]>
   </description>
   <pubDate>Sun, 22 Jun 2008 02:35:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11131&amp;PID=37170&amp;title=update-handler-doesnt-work-for-popup-menus#37170</guid>
  </item> 
  <item>
   <title><![CDATA[Update handler doesn&#039;t work for popup menus? : Hi, here&amp;#039;s my code  void...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11131&amp;PID=37158&amp;title=update-handler-doesnt-work-for-popup-menus#37158</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3353">Howard Farseer</a><br /><strong>Subject:</strong> 11131<br /><strong>Posted:</strong> 21 June 2008 at 2:17pm<br /><br />Hi, here's my code<DIV>&nbsp;</DIV><DIV>void CTodoListView::OnRightClickList(NMHDR* pNMHDR, LRESULT* pResult)<BR>{<BR>&nbsp;NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;<BR>&nbsp;const int nRow = pNMListView-&gt;iItem;<BR>&nbsp;const int nCol = pNMListView-&gt;iSubItem;<BR>&nbsp;int ret = 0;<BR>&nbsp;POINT point = pNMListView-&gt;ptAction;</DIV><DIV>&nbsp;if (nRow != -1 &amp;&amp; m_wndTodoList.GetItemState(nRow,LVIS_SELECTED) == LVIS_SELECTED)<BR>&nbsp;{<BR>&nbsp;&nbsp;CMenu menu;</DIV><DIV>//&nbsp;&nbsp;ClientToScreen(&amp;point);<BR>&nbsp;&nbsp;GetCursorPos(&amp;point);<BR>&nbsp;&nbsp;VERIFY(menu.LoadMenu(IDR_TODOLIST));<BR>&nbsp;&nbsp;CMenu* pPopup = menu.GetSubMenu(1);<BR>&nbsp;&nbsp;ASSERT(pPopup != NULL);<BR>/*<BR>&nbsp;&nbsp;CShellContextMenus scm; <BR>&nbsp;&nbsp;CStringArray saFilesSel;<BR>&nbsp;&nbsp;m_wndTodoList.GetAllSelectedPaths(saFilesSel);<BR>&nbsp;&nbsp;scm.SetObjects(saFilesSel);&nbsp; <BR>&nbsp;&nbsp;UINT idCommand = scm.ShowContextMenu(this, point);*/<BR>//&nbsp;&nbsp;pPopup-&gt;TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this);<BR>&nbsp;&nbsp;XTFuncContextMenu(pPopup, TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this, IDR_TOOLBAR_TODOLIST);</DIV><DIV>...</DIV>]]>
   </description>
   <pubDate>Sat, 21 Jun 2008 14:17:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11131&amp;PID=37158&amp;title=update-handler-doesnt-work-for-popup-menus#37158</guid>
  </item> 
  <item>
   <title><![CDATA[Update handler doesn&#039;t work for popup menus? : Hi, Check what hWnd parameter...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11131&amp;PID=37113&amp;title=update-handler-doesnt-work-for-popup-menus#37113</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11131<br /><strong>Posted:</strong> 20 June 2008 at 2:11pm<br /><br />Hi,<DIV>Check what hWnd parameter you use.</DIV>]]>
   </description>
   <pubDate>Fri, 20 Jun 2008 14:11:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11131&amp;PID=37113&amp;title=update-handler-doesnt-work-for-popup-menus#37113</guid>
  </item> 
  <item>
   <title><![CDATA[Update handler doesn&#039;t work for popup menus? : I created a popup menu by loading...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11131&amp;PID=37111&amp;title=update-handler-doesnt-work-for-popup-menus#37111</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3353">Howard Farseer</a><br /><strong>Subject:</strong> 11131<br /><strong>Posted:</strong> 20 June 2008 at 2:03pm<br /><br />I created a popup menu by loading from resource when right-click at dockpane, but it doesn't change its state like enable/disabled. i'v already immplemented ON_UPDATE_COMMAND_UI for that same&nbsp;item&nbsp;ID and it works for toolbar popup menu. I dont want to append menu one by one but to load menu from resource. Any body knows that?]]>
   </description>
   <pubDate>Fri, 20 Jun 2008 14:03:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11131&amp;PID=37111&amp;title=update-handler-doesnt-work-for-popup-menus#37111</guid>
  </item> 
 </channel>
</rss>