|
-
Apr 7th, 2001, 08:59 AM
#1
Thread Starter
PowerPoster
A while back I created an ActiveX control that is basically an enhanced textbox. I have been using it for a while and have had no problems. Now, I want to use a SendMessage API on it, but wouldja believe it has no hWnd property. What modifications would have to make in my AX control project to let this thing have an hWnd property? TIA.
"It's cold gin time again ..."
Check out my website here.
-
Apr 7th, 2001, 11:32 AM
#2
Lively Member
Create an hWnd property as usual, setting its value to the hWnd of the textbox control.
-
Apr 10th, 2001, 06:15 AM
#3
Hyperactive Member
-
Apr 10th, 2001, 04:13 PM
#4
Fanatic Member
Actually, if it's a UserControl, then is already has an hWnd. Just make a new property like so:
Code:
Public Property Get hWnd() As Long
hWnd = UserControl.hWnd
End Property
(No need for a Property Let, as this propertyy is always readonly)
If you are defining a set of you own special messages (WM_USER through WM_USER + &h7BFF) then you'll need to subclass the usercontrol from within the usercontrol project (or a subclasser control) to look for those messages.
Dang, I just went off on another tangent. Sorry. See ya next time you got a question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|