<?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 : [solved] BeforeAdd Id parameter 2-byte integer</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : [solved] BeforeAdd Id parameter 2-byte integer]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 13:32:45 +0000</pubDate>
  <lastBuildDate>Wed, 05 Apr 2017 13:31:24 +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=23304</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[[solved] BeforeAdd Id parameter 2-byte integer : Hello,There is a real bug with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23304&amp;PID=75699&amp;title=solved-beforeadd-id-parameter-2byte-integer#75699</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23304<br /><strong>Posted:</strong> 05 April 2017 at 1:31pm<br /><br />Hello,<br><br>There is a real bug with getting only last 2 bytes from control ID. And only in&nbsp;CXTPCustomizeKeyboardPage::OnAssign() method. In other places &nbsp;used whole ID.<br><br>I've fixed this.&nbsp;Thank you for bringing this to our attention.<br><br>Hot fix for MFC version:<table width="99%"><tr><td><pre class="BBcode">void CXTPCustomizeKeyboardPage::OnAssign()<br>{<br>.....<br>&nbsp; &nbsp; <font color="#009900"><b>pAccel-&gt;cmd = pControl-&gt;GetID();</b></font> &nbsp; &nbsp;<font color="#666666">//pAccel-&gt;cmd = </font><b><font color="#ff0000">(WORD)</font></b><font color="#666666">pControl-&gt;GetID();</font><br>.....<br>}</pre></td></tr></table><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Wed, 05 Apr 2017 13:31:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23304&amp;PID=75699&amp;title=solved-beforeadd-id-parameter-2byte-integer#75699</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] BeforeAdd Id parameter 2-byte integer : Thank you, Oleksandr. For your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23304&amp;PID=75695&amp;title=solved-beforeadd-id-parameter-2byte-integer#75695</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8886">wrecks</a><br /><strong>Subject:</strong> 23304<br /><strong>Posted:</strong> 03 April 2017 at 5:10pm<br /><br />Thank you, Oleksandr. &nbsp;For your next release, maybe you could add that information to the help file. &nbsp;Right now it only shows:&nbsp;<div><br><div><t></t><table ="codec&#111;ntainertable"="" cellspacing="0" cellpadding="0"><t><tr><td nowrap=""><code ="vb"=""><font ="keyword"="">Public</font> <font ="keyword"="">Const</font> FSHIFT = 4<br><font ="keyword"="">Public</font> <font ="keyword"="">Const</font> FCONTROL = 8<br><font ="keyword"="">Public</font> <font ="keyword"="">Const</font> FALT = 16<br><br></code></td></tr></t></table><div><br></div></div><div><b>Can you comment on the short integer ID codes? &nbsp;Is that a bug?</b></div></div>]]>
   </description>
   <pubDate>Mon, 03 Apr 2017 17:10:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23304&amp;PID=75695&amp;title=solved-beforeadd-id-parameter-2byte-integer#75695</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] BeforeAdd Id parameter 2-byte integer : 17 is FVIRTKEY &amp;amp;FALTFVIRTKEY...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23304&amp;PID=75692&amp;title=solved-beforeadd-id-parameter-2byte-integer#75692</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23304<br /><strong>Posted:</strong> 03 April 2017 at 3:17pm<br /><br />17 is &nbsp;<str&#111;ng style="color: rgb42, 42, 42; font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"><b>FVIRTKEY &amp;</b>&nbsp;<font color="#2a2a2a" face="Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 14px;"><b>FALT<br></b></span></font><span style="color: rgb69, 69, 69; font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"><br></span><str&#111;ng style="color: rgb42, 42, 42; font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms648010%28v=vs.85%29.aspx" target="_blank" rel="nofollow">FVIRTKEY (TRUE, 0x1)</a>:&nbsp;<span style="color: rgb69, 69, 69; font-family: &quot;Segoe UI&quot;, &quot;Lucida Grande&quot;, Verdana, Arial, Helvetica, sans-serif; font-size: 14px;">The accelerator key is a&nbsp;</span><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx" target="_blank" rel="nofollow">virtual-key code</a><font color="#454545" face="Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 14px;">. If this flag is not specified, the accelerator key is assumed to specify an ASCII character code.</span></font><br><br><font color="#454545" face="Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif"><span style="font-size: 14px;">You should use bit-wise &nbsp;operations with fVirt variable.&nbsp;&nbsp;</span></font></strong></strong>]]>
   </description>
   <pubDate>Mon, 03 Apr 2017 15:17:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23304&amp;PID=75692&amp;title=solved-beforeadd-id-parameter-2byte-integer#75692</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] BeforeAdd Id parameter 2-byte integer : For a Codejock CommandBars 17.2...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23304&amp;PID=75689&amp;title=solved-beforeadd-id-parameter-2byte-integer#75689</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8886">wrecks</a><br /><strong>Subject:</strong> 23304<br /><strong>Posted:</strong> 03 April 2017 at 7:59am<br /><br />For a Codejock CommandBars 17.2 Ribbon, I have been using numbers like 12300004 as my control Id numbers. &nbsp;Everything is working fine until I tried to implement the Customize Keyboard facility. &nbsp;When the BeforeAdd event fires, I get an Id of&nbsp;44772, which did not match any of my Ids, and had no effect when I passed it along to KeyBindings.Add. &nbsp;Now I realize that 44772 is the lower 2 bytes of 12300004 ! &nbsp;<div><br></div><div>Can you confirm that this is correct? &nbsp;So I must use Id numbers &lt;&nbsp;65536 ?</div><div><br></div><div><br></div><div><span style=": rgb248, 248, 252;">Also, the BeforeAdd event Control, Shift, and Alt flags are unexpected.</span><div style=": rgb248, 248, 252;"><br><div>For example, if I press Alt+0, I get fVirt=17 and Key=48.</div><div>The way I read the documentation, I was expecting fVirt=16.</div><div>Can you explain the extra 1 ?</div></div></div>]]>
   </description>
   <pubDate>Mon, 03 Apr 2017 07:59:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23304&amp;PID=75689&amp;title=solved-beforeadd-id-parameter-2byte-integer#75689</guid>
  </item> 
 </channel>
</rss>