Example #1
0
        /// <summary>
        /// The SendMessage function sends the specified message to a
        /// window or windows. It calls the window procedure for the
        /// specified window and does not return until the window
        /// procedure has processed the message
        /// </summary>
        /// <param name="hwnd">Handle to the window whose window procedure will
        /// receive the message</param>
        /// <param name="msg">Specifies the message to be sent</param>
        /// <param name="wParam">Specifies additional message-specific information</param>
        /// <param name="lParam">Specifies 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 int SendMessage(IntPtr hwnd, WindowMessageFlags msg, IntPtr wParam, IntPtr lParam)
        {
#if MAC  // [xiperware]
            return(0);
#else
            return(NativeMethods.InternalSendMessage(hwnd, (int)msg, wParam, lParam));
#endif
        }
Example #2
0
 /// <summary>
 /// The SendMessage function sends the specified message to a
 /// window or windows. It calls the window procedure for the
 /// specified window and does not return until the window
 /// procedure has processed the message
 /// </summary>
 /// <param name="hwnd">Handle to the window whose window procedure will
 /// receive the message</param>
 /// <param name="msg">Specifies the message to be sent</param>
 /// <param name="wParam">Specifies additional message-specific information</param>
 /// <param name="lParam">Specifies 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 int SendMessage(IntPtr hwnd, WindowMessageFlags msg, IntPtr wParam, IntPtr lParam)
 {
     return(NativeMethods.InternalSendMessage(hwnd, (int)msg, wParam, lParam));
 }
Example #3
0
 /// <summary>
 /// The SendMessage function sends the specified message to a 
 /// window or windows. It calls the window procedure for the 
 /// specified window and does not return until the window 
 /// procedure has processed the message
 /// </summary>
 /// <param name="hwnd">Handle to the window whose window procedure will 
 /// receive the message</param>
 /// <param name="msg">Specifies the message to be sent</param>
 /// <param name="wParam">Specifies additional message-specific information</param>
 /// <param name="lParam">Specifies 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 int SendMessage(IntPtr hwnd, WindowMessageFlags msg, IntPtr wParam, IntPtr lParam)
 {
     return NativeMethods.InternalSendMessage(hwnd, (int)msg, wParam, lParam);
 }