deactivate the GM window, SetFocus and SetCapture to your window or control... reactivate gm's window ReleaseCapture and SetFocus back on GM's window when you hit escape.
Your main window proc should catch the keyboard messages and you should retun 0 (methinks) to tell the parent window (you should have called SetPArent or is it owner to set your window to be child or governed by GM' main window) the keyboard event was processed.
Oh, yeah, you have to have the right relationship with the sipling... is you window a child, is it a control (edit box) on gm's window?
deactivate would deactivate input to controls (edit box) and all children (like floating window on top of gm), so yeah, forget about setting the parent of your window, or forget about deactivating gm's window; setting the focus on your window should work
Edited by icuurd12b42, 02 September 2010 - 09:53 PM.