Hi all,
I don't want to scare anybody with that subject line but I found something out over the week-end that may be of some use. When you use SetWindowLong(hWnd,%GWL_USERDATA,value) while processing the WM_CREATE message the value is overwritten and reset to zero in following messages.
EXAMPLE:
I think this has somthing to do with the window not really existing yet 
Any comments?
------------------
Cheers
I don't want to scare anybody with that subject line but I found something out over the week-end that may be of some use. When you use SetWindowLong(hWnd,%GWL_USERDATA,value) while processing the WM_CREATE message the value is overwritten and reset to zero in following messages.
EXAMPLE:
Code:
select case (message) case %WM_CREATE SetWindowLong hWnd,%GWL_USERDATA,256 PostMessage hWnd,%WM_USER,0,0 case %WM_USER msgbox str$(GetWindowLong(hWnd,%GWL_USERDATA)) rem message box will return zero here for me. end select

Any comments?
------------------
Cheers
Comment