Keystrokes for custom control in dialog
-
I've created a custom control (a la article by Chris) to display a region of a bitmap. The control has vertical and a horizontal markers manipulated with the OnLButtonDown/OnLButtonUp/OnMouseMove handlers. The control is placed in a dialog. Now I'd like to add OnKeyDown support. Unfortunately, the dialog traps the WM_KEYDOWN message and just advances to the next control!:mad: How do I get the WM_KEYDOWN message to the custom control? Regards, Kylur
-
I've created a custom control (a la article by Chris) to display a region of a bitmap. The control has vertical and a horizontal markers manipulated with the OnLButtonDown/OnLButtonUp/OnMouseMove handlers. The control is placed in a dialog. Now I'd like to add OnKeyDown support. Unfortunately, the dialog traps the WM_KEYDOWN message and just advances to the next control!:mad: How do I get the WM_KEYDOWN message to the custom control? Regards, Kylur
Have a look at WM_GETDLGCODE / ON_WM_GETDLGCODE. That should answer your questions! Iain.
-
Have a look at WM_GETDLGCODE / ON_WM_GETDLGCODE. That should answer your questions! Iain.