Esempio n. 1
0
        private static void AppBarPosition(Form form, AppBarEdge edge, AppBarMessage appBarMessage)
        {
            APPBARDATA appData = new APPBARDATA();

            appData.cbSize = (uint)Marshal.SizeOf(appData);
            appData.uEdge  = edge;
            appData.rc     = Win32.RECT.FromRectangle(form.Bounds);
            appData.hWnd   = form.Handle;

            SHAppBarMessage(appBarMessage, ref appData);
            //let the application handle some events first
            //if we dont do this (especially for SetPos)
            //the position will be off and the bar jumps around
            Application.DoEvents();
            form.Bounds = appData.rc.ToRectangle();
        }
Esempio n. 2
0
 private static extern uint SHAppBarMessage(AppBarMessage dwMessage, ref APPBARDATA pData);
Esempio n. 3
0
        private static void AppBarPosition(Form form, AppBarEdge edge, AppBarMessage appBarMessage)
        {
            APPBARDATA appData = new APPBARDATA();
            appData.cbSize = (uint)Marshal.SizeOf(appData);
            appData.uEdge = edge;
            appData.rc = Win32.RECT.FromRectangle(form.Bounds);
            appData.hWnd = form.Handle;

            SHAppBarMessage(appBarMessage, ref appData);
            //let the application handle some events first
            //if we dont do this (especially for SetPos)
            //the position will be off and the bar jumps around
            Application.DoEvents();
            form.Bounds = appData.rc.ToRectangle();
        }
Esempio n. 4
0
 private static extern int SHAppBarMessage(AppBarMessage dwMessage, ref APPBARDATA pData);
Esempio n. 5
0
 public static extern UIntPtr SHAppBarMessage(
     AppBarMessage dwMessage,
     ref APPBARDATA pData);
Esempio n. 6
0
 public static extern uint SHAppBarMessage(AppBarMessage dwMessage, ref APPBARDATA pData);
 private static extern IntPtr SHAppBarMessage(AppBarMessage dwMessage, ref AppBarData pData);
Esempio n. 8
0
 private static extern IntPtr SHAppBarMessage(AppBarMessage dwMessage, [In] ref APPBARDATA pData);
Esempio n. 9
0
 static extern IntPtr SHAppBarMessage(AppBarMessage message, ref AppBarData appBarData);
Esempio n. 10
0
 public static extern UIntPtr SHAppBarMessage(AppBarMessage dwMessage, ref APPBARDATA pData);
Esempio n. 11
0
 /// <summary>
 /// Sends an appbar message to the system.
 /// </summary>
 /// <param name="dwMessage">Appbar message value to send.</param>
 /// <param name="pData">A pointer to an APPBARDATA structure. The content of the structure on entry and on exit depends on the value set in the dwMessage parameter. See the individual message pages for specifics.</param>
 /// <returns></returns>
 public static UIntPtr SHAppBarMessage(AppBarMessage dwMessage, ref APPBARDATA pData)
 {
     return NativeMethods.SHAppBarMessage(dwMessage, ref pData);
 }
Esempio n. 12
0
 /// <summary>
 /// Sends an appbar message to the system.
 /// </summary>
 /// <param name="dwMessage">Appbar message value to send.</param>
 /// <param name="pData">A pointer to an APPBARDATA structure. The content of the structure on entry and on exit depends on the value set in the dwMessage parameter. See the individual message pages for specifics.</param>
 /// <returns></returns>
 public static UIntPtr SHAppBarMessage(AppBarMessage dwMessage, ref APPBARDATA pData)
 {
     return(NativeMethods.SHAppBarMessage(dwMessage, ref pData));
 }