<?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 : C&#111;ntext menu - How?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : C&#111;ntext menu - How?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 09:11:50 +0000</pubDate>
  <lastBuildDate>Tue, 29 Jun 2004 21:21:52 +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=743</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[C&#111;ntext menu - How? : Fixed. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2386&amp;title=context-menu-how#2386</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=537">Kenneth</a><br /><strong>Subject:</strong> 743<br /><strong>Posted:</strong> 29 June 2004 at 9:21pm<br /><br />Fixed.]]>
   </description>
   <pubDate>Tue, 29 Jun 2004 21:21:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2386&amp;title=context-menu-how#2386</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu - How? : Maybe its my system. Would you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2356&amp;title=context-menu-how#2356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=537">Kenneth</a><br /><strong>Subject:</strong> 743<br /><strong>Posted:</strong> 25 June 2004 at 1:30pm<br /><br /><P>Maybe its my system.&nbsp; Would you try adding the line:</P><P>GetCommandBars()-&gt;GetCommandBarsOptions()-&gt;bShow ExpandButtonAlways = FALSE;</P><P>in the OnCreate function of the CommonControls sample and see if the animation, slider and static control aligns with the right border correct.<BR></P>]]>
   </description>
   <pubDate>Fri, 25 Jun 2004 13:30:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2356&amp;title=context-menu-how#2356</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu - How? :  No, I compile strictly ANSI...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2355&amp;title=context-menu-how#2355</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 743<br /><strong>Posted:</strong> 25 June 2004 at 1:05pm<br /><br /><br>No, I compile strictly ANSI versions and rely on the user setting theircode page if they really care about any amount of localizationsupport.&nbsp; It eliminates a lot of hassle to only program for whatWin95 has available.<br>I also  useGetCommandBars()-&gt;GetCommandBarsOptions()-&gt;bShowE xpandButtonAlways= FALSE; and like I said, my toolbars go flush against the right edgeif I drag them over.<br><br>]]>
   </description>
   <pubDate>Fri, 25 Jun 2004 13:05:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2355&amp;title=context-menu-how#2355</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu - How? : Ark41, On the toolbar issue: This...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2354&amp;title=context-menu-how#2354</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=537">Kenneth</a><br /><strong>Subject:</strong> 743<br /><strong>Posted:</strong> 25 June 2004 at 11:28am<br /><br /><P>Ark41, On the toolbar issue:</P><P>This problem can be seen in the ToolKitPro examples, CommonControls when you add the following to the MainFrm OnCreate function:</P><P> &nbsp;GetCommandBars()-&gt;GetCommandBarsOptions()-&gt;bShow ExpandButtonAlways = FALSE;<BR></P><P>Try to move the Animation, slider and the one with the words "Opened Documents" toolbars to the far right of the window and you can see it will stop exactly one dropdown button width from the right side.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 25 Jun 2004 11:28:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2354&amp;title=context-menu-how#2354</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu - How? : Found the reason. If I compile...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2351&amp;title=context-menu-how#2351</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=537">Kenneth</a><br /><strong>Subject:</strong> 743<br /><strong>Posted:</strong> 25 June 2004 at 10:03am<br /><br /><P>Found the reason.&nbsp; If I compile the application in ANSI mode, with no UNICOWS support, everything works perfect on all systems.&nbsp; If I compile with UNICODE and UNICOWS support, it works fine on Windows XP, but not on Windows 95, 98 or ME.</P><P>In addition to the right popup context menu not releasing on a left mouse click, the same holds true for the menubar.&nbsp; The only way to release any menu popup is to use the escape key or left mouse click on the title bar!</P><P>All the problems seen related to the left mouse click, when UNICOWS supported is added.</P><P>Ark42, do you use UNICOWS at all?</P>]]>
   </description>
   <pubDate>Fri, 25 Jun 2004 10:03:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2351&amp;title=context-menu-how#2351</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu - How? : I added the code within the DialogSample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2350&amp;title=context-menu-how#2350</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=537">Kenneth</a><br /><strong>Subject:</strong> 743<br /><strong>Posted:</strong> 25 June 2004 at 9:40am<br /><br /><P>I added the code within the DialogSample suggested by Oleg, but it has no affect.&nbsp; That sample does have the general menubar logic, but not a contextmenu popup.</P><P>Perhaps there is very good reason for contextmenu popup samples not being shown anywhere.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 25 Jun 2004 09:40:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2350&amp;title=context-menu-how#2350</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu - How? :  You will likely need to do some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2344&amp;title=context-menu-how#2344</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 743<br /><strong>Posted:</strong> 25 June 2004 at 2:07am<br /><br /><br>You will likely need to do some extra work for CFormViews because theytrap a lot of messages for dialog functions, and that could easilybreak the menus/toolbars.<br>If you route the proper msgs in OnCmdMsg and such, I'm sure you couldget it to work, you would just need to do some discovering and diggingthrough the MFC source to find out what messages you need to pass.<br><br>]]>
   </description>
   <pubDate>Fri, 25 Jun 2004 02:07:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2344&amp;title=context-menu-how#2344</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu - How? : The latest version. I used the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2343&amp;title=context-menu-how#2343</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=537">Kenneth</a><br /><strong>Subject:</strong> 743<br /><strong>Posted:</strong> 25 June 2004 at 1:55am<br /><br /><P>The latest version.&nbsp; I used the code exactly as shown by I guess the one and only codejock developer.&nbsp; In this case I am using his example code to turn off the customizable&nbsp;dropdown on only one toolbar.&nbsp; The rest have the customizable dropdown enabled.&nbsp;It works with the exception that I cannot drag the toolbar flush against the right edge of the window.</P><P>Also, on this problem, by view is a CFormView.&nbsp; Perhaps that is the difference that is causing the problem.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 25 Jun 2004 01:55:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2343&amp;title=context-menu-how#2343</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu - How? :  I don&amp;#039;t have that problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2342&amp;title=context-menu-how#2342</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 743<br /><strong>Posted:</strong> 25 June 2004 at 1:41am<br /><br /><br>I don't have that problem either (I have show expand button always setto false as well as customizable set to false in one of my programs)<br>You can drag the toolbar all the way flush against the right edge without any problems.<br><br>Maybe you need to upgrade? What version are you using?<br><br>]]>
   </description>
   <pubDate>Fri, 25 Jun 2004 01:41:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2342&amp;title=context-menu-how#2342</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu - How? : I don&amp;#039;t believe its a focus...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2341&amp;title=context-menu-how#2341</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=537">Kenneth</a><br /><strong>Subject:</strong> 743<br /><strong>Posted:</strong> 25 June 2004 at 1:38am<br /><br /><P>I don't believe its a focus problem.&nbsp; If I use:</P><P>void CSecureNetTermView::OnContextMenu(CWnd* pWnd,CPoint point)<BR>&nbsp;{<BR>&nbsp;if(point.x &lt; 0 || point.y &lt; 0 )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; point.x = 0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; point.y = 0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ClientToScreen(&amp;point);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;CMenu myMenu;<BR>&nbsp;myMenu.LoadMenu(IDR_NTPOPUP);<BR>&nbsp;CMenu* myPopup = myMenu.GetSubMenu(0);<BR>&nbsp;myPopup-&gt;TrackPopupMenu(TPM_LEFTALIGN | TPM_LEFTBUTTON,point.x,point.y,AfxGetMainWnd(),NULL);<BR>&nbsp;}</P><P>Then everything works fine on all systems.&nbsp; However I get the old style menu instead of the toolkitpro style menu.</P><P>Just another one of those strange ToolKitPro things like the CXTToolBar with the flag set not to display the customization bar, but the space is still there for the customization bar.&nbsp; Strange stuff indeed!</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 25 Jun 2004 01:38:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=743&amp;PID=2341&amp;title=context-menu-how#2341</guid>
  </item> 
 </channel>
</rss>