i am subclassing, and the lParam ends up returning a pointer to a structure of type MDICREATESTRUCTURE..
i want to know how i can access data in this structure when all i have is a pointer???
any ideas?
thanks
jeffrey
Printable View
i am subclassing, and the lParam ends up returning a pointer to a structure of type MDICREATESTRUCTURE..
i want to know how i can access data in this structure when all i have is a pointer???
any ideas?
thanks
jeffrey
use the CopyMemory API
and put this in your substitute window procedureCode:Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
then make all your changes to uMDIStruct and copy them back to lParam withCode:
Dim uMDIStruct As MDICREATESTRUCTURE
CopyMemory uMDIStruct, ByVal lParam, LenB(uMDIStruct)
Code:CopyMemory ByVal lParam, uMDIStruct, LenB(uMDIStruct)
Hope this helps