Results 1 to 2 of 2

Thread: Menus? Mouse-Movement? For me, the two don't mix-!

  1. #1

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134

    Exclamation

    I don't know how to sense a mousemovement on a menu. I tried this:

    'properties
    tmrCheck.Interval = 150
    Code:
    Sub tmrCheck_Timer()
    Dim tmphWnd As Long
    Dim AAA As POINTAPI
       
       GetCursorPos AAA
    
       tmphWnd = GetWindowFromPoint(AAA.X, AAA.Y) 'I dunno if it's WindowFromPoint or whatever, but you know what I mean.
       
       If tmphWnd = mnuFileNew.hWnd then
          StatusBar.SimpleText = "Creates a new document with the attributes you wish."
       End If
    
    End Sub
    But...then I realized that menus don't have hWnds!!! HELP ME PLEASE!!!
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  2. #2
    Guest
    This is where Subclassing comes into use. Vb-World has a downloadable example on doing that.

    http://www.vb-world.net/demos/subclassmenus/

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