Results 1 to 2 of 2

Thread: Bm_getstate

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2005
    Posts
    230

    Bm_getstate

    I search all the forums, google... nobody could post a solution to this, basically, i want to get the button status let say if it's enabled of disabled.

    Try:
    Sendmessage btnhwnd, BM_GETSTATE,0,0, always return 0.

    forgot to tell you that it's not a VB button so btnhwnd.enabled = True or False is not the case.

    any help is appreciated

  2. #2
    PowerPoster Ellis Dee's Avatar
    Join Date
    Mar 2007
    Location
    New England
    Posts
    3,530

    Re: Bm_getstate

    I don't actually know the answer, but I can make guesses.

    It may not be returning the value, but instead filling the state by reference. To find out:
    Code:
    Dim lngTest1 As Long
    Dim lngTest2 As Long
    
    Sendmessage btnhwnd, BM_GETSTATE, lngTest1, lngTest2
    Debug.Print lngTest1, lngTest2

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