Example #1
0
        public static bool AppbarRemove()
        {
            AppBarData messageData = DefaultMessage;
            int        value       = NativeMethods.SHAppBarMessage((int)AppBarMessages.Remove, ref messageData);

            return(value != 0);
        }
Example #2
0
        private static void AppbarQueryPos(ref RECT rect)
        {
            AppBarData messageData = DefaultMessage;

            messageData.uEdge = (int)Side;
            messageData.rc    = rect;
            NativeMethods.SHAppBarMessage((int)AppBarMessages.QueryPos, ref messageData);
        }
Example #3
0
        internal static bool AppbarNew()
        {
            AppBarData messageData = DefaultMessage;

            messageData.uCallBackMessage = NativeMethods.RegisterWindowMessageW(MessageGuid);
            MessageId = messageData.uCallBackMessage;
            int value = NativeMethods.SHAppBarMessage((int)AppBarMessages.NewAppBar, ref messageData);

            return(value != 0);
        }
Example #4
0
 internal static extern int SHAppBarMessage(int dwMessage, ref AppBarData pData);