private static void RaiseInvokedEvent(IntPtr hwnd, int idObject, int idChild) { ProxySimple button = null; if (idChild == 1) { WindowsUpDown wtv = new WindowsUpDown(hwnd, null, -1); button = wtv.CreateSpinButtonItem(SpinItem.DownArrow); } else if (idChild == 2) { WindowsUpDown wtv = new WindowsUpDown(hwnd, null, -1); button = wtv.CreateSpinButtonItem(SpinItem.UpArrow); } if (button != null) { button.DispatchEvents(NativeMethods.EventObjectInvoke, InvokePattern.InvokedEvent, idObject, idChild); } }
private static void RaiseInvokedEvent(IntPtr hwnd, int idObject, int idChild) { ProxySimple button = null; if (idChild == 1) { WindowsUpDown wtv = new WindowsUpDown(hwnd, null, -1); button = wtv.CreateSpinButtonItem(SpinItem.DownArrow); } else if (idChild == 2) { WindowsUpDown wtv = new WindowsUpDown(hwnd, null, -1); button = wtv.CreateSpinButtonItem(SpinItem.UpArrow); } if (button != null) { button.DispatchEvents(NativeMethods.EventObjectInvoke, InvokePattern.InvokedEvent, idObject, idChild); } }