0

Someone change the numerical value of one of the accelerator in the resource.h file and because of that the accelerator stopped working.

(old value that was working)

#define IDR_DELETE_FROM_ACCELERATOR 32873

(new value that is not working)

#define IDR_DELETE_FROM_ACCELERATOR     22873

related code :

ON_COMMAND( IDR_DELETE_FROM_ACCELERATOR, OnDeleteFromAccelerator )

void CMyViewClass::OnDeleteFromAccelerator()
{
///....
}

In both cases, the numerical values are unique (no conflict).

From MSDN, It seems that both numerical values should be valid.

Am I reading/understanding this correctly?

I can simply renumber the value to the one that worked, but I would like to understand why it stopped working.

Thanks,

Max.

2
  • 3
    Did you try to clean and rebuild your project? Sometimes resources and code become out of sync.
    – Paul
    Jun 30, 2015 at 21:30
  • Yes, I did rebuild (and deleted all temporary files).
    – Max
    Jul 1, 2015 at 12:43

1 Answer 1

0

Read the TN020 paying more attention.

On the table it is stated:

ID_            commands              0x8000 through 0xDFFF

0x8000 in decimal is 32768.

22873 is lower than that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.