Пример #1
0
        private BUTTON_SPLITINFO GetSplitInfo()
        {
            var info = new BUTTON_SPLITINFO();

            SendMessage(new HandleRef(this, Handle), ButtonMessage.BCM_GETSPLITINFO, 0, ref info);
            return(info);
        }
Пример #2
0
 public static extern IntPtr SendMessage(HWND hWnd, ButtonMessage Msg, int wParam, ref BUTTON_SPLITINFO splitInfo);
Пример #3
0
 /// <summary>
 /// Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return
 /// until the window procedure has processed the message.
 /// </summary>
 /// <param name="hWnd">
 /// A handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST ((HWND)0xffff), the message is sent to
 /// all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not
 /// sent to child windows.
 /// </param>
 /// <param name="Msg">The message to be sent.</param>
 /// <param name="wParam">Additional message-specific information.</param>
 /// <param name="splitInfo">Additional message-specific information.</param>
 /// <returns>The return value specifies the result of the message processing; it depends on the message sent.</returns>
 public static IntPtr SendMessage(HandleRef hWnd, ButtonMessage Msg, int wParam, ref BUTTON_SPLITINFO splitInfo) => User32_Gdi.SendMessage(hWnd, Msg, wParam, ref splitInfo);
Пример #4
0
 private void SetSplitInfo(BUTTON_SPLITINFO info)
 {
     SendMessage(new HandleRef(this, Handle), ButtonMessage.BCM_SETSPLITINFO, 0, ref info);
     Refresh();
 }