[lazarus] GetWindowLong
Marc Weustink
weus at quicknet.nl
Fri Jan 7 17:15:39 EST 2000
At 14:05 07-01-2000 -0600, Shane wrote:
>Second, just setting those specific items as data won't work
>because there are more than just those. I just gave those as
>an example. there are a few more I would use so I was thinking
>of storing the class which would encompass everything.
Hmm... if I look at the winhelp there are only 6 more :-)
But some of them you can't put them in the class.
GWL_EXSTYLE, GWL_STYLE
can
GWL_WNDPROC , DWL_DLGPROC
this one is incompatible with the windowproc we use
(that's an object instance pointer this is a pointer)
GWL_HINSTANCE
depends on application and doesn't have to be stored
in the class
GWL_HWNDPARENT
obvious
GWL_ID
?? the gtkwidget as ID ??
GWL_USERDATA, DWL_USER
this is userdata and I think you want to store this
in the class
DWL_MSGRESULT
??
seen this I think it makes not a big difference of storing them all, you
have to store some of them anyhow. Besides that GetWindowLong is an API
function and I think that it is not a good thing to mess up the LCL with
these.
Marc
More information about the Lazarus
mailing list