#Callbacks from DLL
5 messages in this thread
Hi Gary,
You could pass the hadle to the window using the GetFocus() when the
control has the focus. This will return the handle which you could pass the
function. About calling one of the Sub's in VB, the only way you can call
one of the Sub's in a VB app is through VB-API VBFireEvent() function. This
would require you creating a custom control as documented in the Custom
Control Developement Kit.
Don Funk
There is 1 Reply.
Don,
I haven't tried this yet but I was wondering if I could, from a DLL,
fire an event in a *normal* control. As long as it was one of the standard
events and I had the hCtl, I should be able to do it. Right? -=- Jonathan
There is 1 Reply.
Jonathan,
I think you'll find that SendMessage and PostMessage work exactly as you'd
expect with the VB controls. I've done it with WM_SENDKEYS and a few
others.
Mark
There are 2 Replies.
Mark,
Huh? I'm not sure why I got this message. You got the technique
from me, did you not?<g> -=- Jonathan
Mark,
Oh, now I see what you were responding to. What I meant was could I
*directly* use VBFireEvent on a normal VB control. Sorry for the confusion.
-=- Jonathan