modal dialog, center outlook window, disable outlook window
I've tried a few solutions with SetParent and SetWindowLong... and I'm
stumped. Any help would be greatly, immensely even, apperciated.
Here's what I've done in the UserForm_Activate() event (closest I
could find to a form load event).
hwnd = FindWindow("ThunderDFrame", Me.Caption)
If (hwnd 0) Then
'SetParent hwnd, FindWindow("rctrl_renwnd32", vbNullString)
SetWindowLong hwnd, GWL_HWNDPARENT, FindWindow("rctrl_renwnd32",
vbNullString)
SetForegroundWindow hwnd
Else
MsgBox "Couldn't find the window handle to fix the outlook modal
dialog bug!", vbInformation, Me.Caption
End If
The commented SetParent() call causes the code to hang.
I know that I'm getting the right window handles as well by checking
against the results of GetWindowText() on the handles.
|