CompuServe Thread

#Callbacks from DLL

5 messages in this thread
#1146From: Don FunkOct 3, 1991 9:34 AM
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.
#1200From: Jonathan Zuck (UFI)Oct 3, 1991 1:33 PM
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.
#1215From: Mark Novisoff/MicroHelpOct 3, 1991 4:29 PM
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.
#1251From: Jonathan Zuck (UFI)Oct 3, 1991 8:15 PM
Mark, Huh? I'm not sure why I got this message. You got the technique from me, did you not?<g> -=- Jonathan
#1256From: Jonathan Zuck (UFI)Oct 3, 1991 8:26 PM
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