Okay my current problem is as follows:

Each window in my MDI interface is created with two controls. A richedit control and an editbox. What I want to do is whenever the focus is set on the richedit control, I want to set the focus to the editbox instead (keep focus off of the richedit). I store both HWNDs for the controls when they are created, and I tried when WM_SETFOCUS comes in that I get the HWND of the control by using GetFocus() and then comparing the returned HWND with that of the RichEdit (if they match then SetFocus() to the editbox). However, this doesn't do anything.

Any ideas?