RegisterHotKey throwing tantrum
I'm looking for advance here with RegisterHotKey. It's a general function call that looks like this:
However, MsgDlg was created and on a different thread simply because that thread is running the message loop. RegisterHotKey won't let me register a hotkey for a dialog that was created on a different thread (which is a pretty stupid thing to restrict).
if (! ::RegisterHotKey(MsgDlg.m_hWnd, m_nId, sModifier, sKey) )
So I'm looking for advance on how to make this doable. Do I have to go around by sending an event to the dialog and calling RegisterHotKey from there?