[Lazarus] Lazarus and windows messages - how to hook into them ?
Justin Smyth
delphian at smythconsulting.net
Sun Mar 21 11:32:52 CET 2010
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
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20100321/a88a50ff/attachment-0004.html>
More information about the Lazarus
mailing list