tags:

views:

39

answers:

1

I need to temporarily disable a few items from an accelerator table when the input focus is on a CEdit field.

My application has some commands associated with keyboard keys (A, S, D, etc.) and I need to disable those while the user is entering text in the field.

+1  A: 

You could try CopyAcceleratorTable to get the ARRAY of ACCEL structures then edit out the ones you don't want, Call DEstroyAcceleratorTable on the current table. Then use CreateAcceleratorTable to create the new table with the edited accelerator table.

Edit: This link may be useful.

Goz