|
-
Sep 7th, 2007, 09:46 PM
#1
Thread Starter
New Member
How to detect if my postmessage call fails?
I have a postmessage call which is
lngresult = PostMessage(GetTaskHwnd, WM_LBUTTONDOWN, 0&, ByVal lnglparam)
I wanted to know if postmessage have a return error. Because the above code only click the form with a handle of gettaskHwnd if it is in the top of the screen. If it is on the bottom of the screen, I the command will fail, but I have to programmed it so if it fails it will exit the subroutine and disregard the succeeding code statement.
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
|