for all those who didnt reply i found the simple answer was to do this put the following in front of my calls to AllocateHWND and DeAllocateHWND TWin32WidgetSet(WidgetSet).
Now it works !!! ----- Original Message ----- From: Justin Smyth To: Lazarus mailing list Sent: Sunday, March 21, 2010 1:12 PM Subject: [Lazarus] Lazarus and windows messages - how to hook into them ? Hi guys got a issue where i need to be able to hook into the windows message que so i can trap messages like WM_GRAPHCHANGED etc as i have ported a media player writen around directshow in delphi over to lazarus 64 bit , i would normally use something like Allocatehwnd(procname) to do this bit i can see that for AllocateHWND & DeallocHWND have stubs and are not supported. I have tried the CreateWindowEX and it doesnt work i get an exception when i try to use it ( this has a callback function to pass messages to your procedure...) any one got a simple idea how to get this working I have noticed that on interfaces for win32 the widget seems to have it there but i cant call it from my unit. Justin Smyth ------------------------------------------------------------------------------ -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
