Hi,
I´m having some trouble getting the preTranslateMessage funktion to work while playing a movie using Dshow.

this is what I call, but it wont react at all. My guess is because it has rendered the file and doesn´t let any other messages pass throug. But how do I solve this. I want to be able to close the playing window with the esc-button.

this is my preTranslateMessage function.
if (pMsg->message == WM_KEYDOWN)
if (pMsg->wParam == VK_ESCAPE)
PostMessage(WM_CLOSE);

please help

Regards Frederik.