I lost access to a thread I was working in last night.
http://vbforums.com/showthread.php?t=471163
now says
"Mr.Mac, you do not have permission to access this page. "
It was regarding how to make postmessage work. Someone suggested putting it in a loop or putting DoEvents into a loop.
I wanted to add this:
Well, this works without loops, etc.
Code:Option Explicit Private Sub cmdStart_Click() Call PostMessage(Me.cmdTest.hwnd, WM_LBUTTONDOWN, 0&, 0&) End Sub Private Sub cmdTest_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) MsgBox "Got Here" End SubAny idea what happened?Code:Option Explicit Public Const WM_LBUTTONDOWN = &H201 Public Const WM_LBUTTONUP = &H202 Public Declare Function PostMessage Lib "user32" _ Alias "PostMessageA" _ (ByVal hwnd As Long, _ ByVal wMsg As Long, _ ByVal wParam As Long, _ lParam As Long) As Long
Mac




Reply With Quote