<?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 : Problem reserving accelerator keys</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Problem reserving accelerator keys]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 15:27:15 +0000</pubDate>
  <lastBuildDate>Wed, 18 Oct 2006 09:52:06 +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=5303</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[Problem reserving accelerator keys : Thank you ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5303&amp;PID=16629&amp;title=problem-reserving-accelerator-keys#16629</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1586">jansim</a><br /><strong>Subject:</strong> 5303<br /><strong>Posted:</strong> 18 October 2006 at 9:52am<br /><br />Thank you]]>
   </description>
   <pubDate>Wed, 18 Oct 2006 09:52:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5303&amp;PID=16629&amp;title=problem-reserving-accelerator-keys#16629</guid>
  </item> 
  <item>
   <title><![CDATA[Problem reserving accelerator keys : Hello, you right. Please modify...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5303&amp;PID=16607&amp;title=problem-reserving-accelerator-keys#16607</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5303<br /><strong>Posted:</strong> 18 October 2006 at 1:00am<br /><br /><P>Hello,</P><DIV>you right. Please modify sources:</DIV><DIV>&nbsp;</DIV><DIV>if (pMsg-&gt;wParam == VK_SHIFT<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|| pMsg-&gt;wParam == VK_CONTROL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|| pMsg-&gt;wParam == VK_MENU<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;// all work is already done<BR>&nbsp;&nbsp;&nbsp;}else if (bPressed)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;m_hAccel.key = (WORD) pMsg-&gt;wParam;<BR>&nbsp;&nbsp;&nbsp;&nbsp;m_bKeyDefined = TRUE;<BR>&nbsp;&nbsp;&nbsp;&nbsp;SetAccelFlag (FVIRTKEY, TRUE);<BR>&nbsp;&nbsp;&nbsp;}</DIV>]]>
   </description>
   <pubDate>Wed, 18 Oct 2006 01:00:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5303&amp;PID=16607&amp;title=problem-reserving-accelerator-keys#16607</guid>
  </item> 
  <item>
   <title><![CDATA[Problem reserving accelerator keys : I try to override the OnPreviewEditKey...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5303&amp;PID=16582&amp;title=problem-reserving-accelerator-keys#16582</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1586">jansim</a><br /><strong>Subject:</strong> 5303<br /><strong>Posted:</strong> 16 October 2006 at 4:47pm<br /><br /><P>I try to override the OnPreviewEditKey method from the shortcut manager to prevent the user fomr using some accelerators that conflicts with our built-in ones. Here it is the "Home" Key.</P><DIV>When the method is first called ( from the&nbsp;WM_KEYDOWN ), I receive the ACCEL struct with a fVirtKey, meaning that the key pressed is a virtual key-code. I return false if the key is VK_HOME. It works fine so far.</DIV><DIV>&nbsp;</DIV><DIV>The problem is that the method is called a second time ( for the WM_KEYUP ) and this time, the fVirtKey is not set to TRUE. Therefore I cannot say that the key depressed is "HOME", since the non virtual key code equivalent to "Home" is "$", and I don't want to forbid that key.</DIV><DIV>&nbsp;</DIV><DIV>The problem is the following, when the "HOME" key is depressed, the Preview Key mecanism thinks the user just depressed "$" and sets the EditBoxText to "$". </DIV><DIV>&nbsp;</DIV><DIV>The problem happens to the VK_ESCAPE key you are blocking. But you don't see the bug since&nbsp;the non-virtual equivalent to "Escape" is not a displayable character.</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>Jansim</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 16 Oct 2006 16:47:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5303&amp;PID=16582&amp;title=problem-reserving-accelerator-keys#16582</guid>
  </item> 
 </channel>
</rss>