Dialog always needs to see keypresses...
Posted on 1998-06-23
I have a dialog box containing a long scrollable RichEdit that contains the text of an agreement. There are two buttons, Yes I Do, & No I Don't Accept the agreement. The default button when the dialog comes up is NO. Even though it is not standard windows interface design, I need the dialog to react to PageUp, PageDown, ArrowUp, ArrowDown, no matter which button (or box) is currently highlighted.
I've used Class Wizard to generate functions for WM_ONCHAR & WM_ONKEYDOWN, but they never get called (yes, me newbie). I know how to talk to the box to scroll the text but I can't trap the keys.