Click to See Complete Forum and Search --> : How to disable the arrow keys movement on a slider control?


jasinto
April 26th, 2005, 05:02 PM
Hi Gurus!
I've a slider control (tracker) on a MFC dialog form. I want to control it only with the mouse, not with the arrow keys. How I disable the option to control the slider using arrow keys? I use the arrow keys for something else.
Thanks!!!
Juan

NoHero
April 27th, 2005, 11:04 AM
This supposed to be the Non-MFC WinAPI forum but I think I have the right solution for you: Subclass the Tracker and simply handle WM_KEYDOWN on your own. So you can easily remove and/or rewrite key behaviour on your own.