VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Hyperlink Sample (one API function used:-)

by Vlad Vissoultchev (13 Submissions)
Category: Windows System Services
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (120 Votes)

This is in response to a yesterday's submission. No timer. No Set/Release capture (almost). The trick is that windowless controls ARE capturing mouse events upon mousedown BY DESIGN. So every label, image, or custom windowless control has the capture ability build-in. Thank you VB, I just figured out how to use this. Purely as an excercise you can encapsulate this code in a windowless usercontrol. Anyway, this implementation has at least two flaws. Can you find them? :-)) UPDATED: By popular demand now supports right click context menu, OLE drag&drop (good enough), "hand" mouse cursor (with shadow on win2k!), WM_CANCELMODE (pretty decently). More API's used but still under 160 lines of code. 10x for the votes

API Declarations
Private Declare Sub mouse_event Lib "user32"( _
ByVal dwFlags As Long, ByVal dx As Long, _
ByVal dy As Long, ByVal cButtons As Long, _
ByVal dwExtraInfo As Long)

Rate Hyperlink Sample (one API function used:-)

Download Hyperlink Sample (one API function used:-)

Download Hyperlink Sample (one API function used:-) (3 KB)

Hyperlink Sample (one API function used:-) Comments

No comments have been posted about Hyperlink Sample (one API function used:-). Why not be the first to post a comment about Hyperlink Sample (one API function used:-).

Post your comment

Subject:
Message:
0/1000 characters