Search Tools Links Login

Hyperlink Sample (one API function used:-)


Visual Basic 6, or VB Classic

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

Original Author: Vlad Vissoultchev

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)

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 165 times

Categories

Visual Basic 6

Attachments

Hyperlink_548112122002.zip
Posted: 9/3/2020 3:45:00 PM
Size: 3,913 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.