-
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
-
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