private static void InternalSetAutoHide(bool hide) { var data = new NativeMethods.APPBARDATA { lParam = hide ? NativeMethods.ABS.Autohide : NativeMethods.ABS.AlwaysOnTop }; NativeMethods.SHAppBarMessage(NativeMethods.ABM.SetState, ref data); UpdateTaskbar(); }
private static bool InternalGetAutoHide() { var data = new NativeMethods.APPBARDATA(); var result = NativeMethods.SHAppBarMessage(NativeMethods.ABM.GetState, ref data); return (result.ToInt32() & NativeMethods.ABS.Autohide) == NativeMethods.ABS.Autohide; }
private static TaskbarLocation InternalGetLocation() { var data = new NativeMethods.APPBARDATA(); NativeMethods.SHAppBarMessage(NativeMethods.ABM.GetTaskbarPos, ref data); return (TaskbarLocation) data.uEdge; }