SHAppBarMessage and AutoHide
问题 public void toggleAutoHide() { APPBARDATA data = new APPBARDATA.ByReference(); data.hWnd = hWndGlobal; data.cbSize.setValue(data.size()); data.lParam.setValue(Shell32.INSTANCE.SHAppBarMessage(new DWORD(ShellAPI.ABM_GETSTATE), data).longValue()); data.lParam.setValue(data.lParam.intValue() ^ 0x0000001); UINT_PTR result = Shell32.INSTANCE.SHAppBarMessage(new DWORD(ShellAPI.ABM_SETSTATE), data); } I have the code above that is supposed to autohide a created appbar, but somehow instead of doing