Need help with an abstraction...
Michael S. Sanders
Sat Nov 29 04:26:10 PST 2008
Using some custom Msg's & UDT like so:
CONST MY_CUSTOM_MSG = WM_APP + 1
TYPE foo
v As BOOL
x As INTEGER
END TYPE
Global goo As foo
My question: How do I both pass & recive a UDT as lParam?
(or even wParam for that matter)
'--------------------------------------------------------------
Sub Example()
'--------------------------------------------------------------
goo.v = 0
goo.x = 22
PostMessage(hFRM, MY_CUSTOM_MSG, 0, &goo)
End Sub
'--------------------------------------------------------------
Begin Events
'--------------------------------------------------------------
If Msg = MY_CUSTOM_MSG Then
goo = (foo)lParam
msgbox str$(goo.v), str$(goo.x)
End If
--
Later on,
Mike
More information about the BCX
mailing list