Results 1 to 1 of 1

Thread: VB6-Mouse Wheel with Any Control

Threaded View

  1. #1

    Thread Starter
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    VB6-Mouse Wheel with Any Control

    These example projects demonstrate enabling the MouseWheel for any control (multiple controls / multiple forms).

    Examples

    Enabling MouseWheel Support with any control - attached to post #1
    14/03/06: Slight correction to code
    20/04/06: Minor modification to code (more info: post #9)
    12/01/07: Nested Controls example created allowing the mousewheel to work with controls nested to any depth - incorporates fixes from other posts (1, 2) - attached to post #1

    Scrolling the MSFlexGrid that the mouse is over - attached to post #2
    21/02/06: Small bug fix

    Scrolling if the MSFlexGrid is the active control - attached in post #13 of original thread


    The hooking code was modified from here.
    Original thread, with suggestions from other members.

    Note:
    These codes use subclassing which can cause your IDE to crash if your code is incorrectly ended (e.g. via the stop button).
    See here for adding in code to detect if your program is running in the IDE


    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width