|
-
Jun 21st, 2008, 08:53 AM
#1
Thread Starter
Addicted Member
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
-
Jun 21st, 2008, 01:18 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|