Callback and GetMessage
Posted: Sat Apr 05, 2008 1:06 pm
The SetWindowCallback function is a comfortable way with regard to the treatment of events. But according to the WinApi the API functions GetMessage, TranslateMessage and DispatchMessage should also work. My problem is: These functions require only a pointer to the structure MSG. How do they know what procedure in my PB-code is responsible for the handling of events? Shouldn't there be a pointer to my callback procedure as it is the case when I use: SetWindowCallback(@MyCallbackProcedure)?
P.S.
SetWindowCallback, WaitWindowEvent, WindowEvent - these all work fine. I only want to get a deeper inside in WinAPI. That's why I did post this question.
P.S.
SetWindowCallback, WaitWindowEvent, WindowEvent - these all work fine. I only want to get a deeper inside in WinAPI. That's why I did post this question.