The button control message BM_CLICK can be sent via defining a pInvoke method as follows:
[DllImport("user32.dll")]
public static extern IntPtr SendMessage(HandleRef hWnd, uint Msg, IntPtr wParam, string lParam);
and then calling the method with the corresponding Msg
value, 0x00F5
.
Is it possible to call the button control macro Button_Enable in a similar fashion?