Created
January 7, 2016 08:06
-
-
Save kumatti1/77afc08a08f995369d67 to your computer and use it in GitHub Desktop.
WebBrowser非表示
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private Declare PtrSafe _ | |
Function WindowFromAccessibleObject Lib "oleacc.dll" ( _ | |
ByVal pacc As IAccessible, _ | |
hwnd As Any _ | |
) As Long | |
Private Declare PtrSafe _ | |
Function ShowWindow Lib "user32.dll" ( _ | |
ByVal hwnd As LongPtr, _ | |
ByVal nCmdShow As Long _ | |
) As Long | |
Private Sub UserForm_Initialize() | |
Dim hwnd As LongPtr | |
WindowFromAccessibleObject Me.WebBrowser1, hwnd | |
ShowWindow hwnd, vbHide | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment