Thanks for posting that. I wasn't losing sleep over it, but I confess that
this one had me curious. It's nice to know the resolution.
On Apr 26, 1:24 pm, Steve Achelis <i...@RescueRigger.com> wrote:
I think my computer is possessed. My app (in VS2008 using the MFC
Enhancement Pack) defined an accelerator for the '-' key which posted
the message ID_VIEW_ZOOMOUT (which is defined as 33455). I wanted to
remove this accelerator. So I deleted the following line in the
"IDR_MAINFRAME ACCELERATORS" section of my rc file:
<snip>
I found the culprit! Apparently the CKeyboardManager stores the
accelerators (in \HKEY_CURRENT_USER\Software\Company\Product\Workspace
\Keyboard-0). I know the user can customize the accelerator keys by
right-clicking on the Quick Access Toolbar, choosing Customize and
then Customize Keyboard Shortcuts, but I'm surprised my resource-
defined accelerator ended up in the registry (and I didn't check the
customized keyboard shortcuts dialog before deleting the Keyboard-0
entry in the registry). At this point I'm just glad to have this bug
behind me.
Steve