Sdl event blocked when using surface under mfc


I want to use render SDL surface into a MFC Dialog (for video display).
I have creted a picture control on dialog box and display surface in this
picture control.
Problem is that SDL event loop can NOT receive any event when MFC window
It seems the message mechanism in MFC blocks the SDL events.
Someone knows about this?
View this message in context:
Sent from the SDL mailing list archive at