163 writes to Result
System.Windows.Forms (161)
winforms\Managed\System\WinForms\AxHost.cs (2)
3548m.Result = (IntPtr)REGMSG_RETVAL; 3562m.Result = UnsafeNativeMethods.CallWindowProc(wndProc, handle, m.Msg, m.WParam, m.LParam);
winforms\Managed\System\WinForms\CheckedListBox.cs (6)
1072m.Result = NativeMethods.InvalidIntPtr; 1087m.Result = NativeMethods.InvalidIntPtr; 1096m.Result = (IntPtr)LB_ERROR; 1099m.Result = (IntPtr)(GetItemChecked(item) ? LB_CHECKED : LB_UNCHECKED); 1106m.Result = IntPtr.Zero; 1110m.Result = (IntPtr)1;
winforms\Managed\System\WinForms\ComboBox.cs (6)
3468m.Result = (IntPtr)1; 3624m.Result = (IntPtr)1; 3646m.Result = (IntPtr)1; 3699m.Result = InitializeDCForWmCtlColor(m.WParam, m.Msg); 3939m.Result = UnsafeNativeMethods.UiaReturnRawElementProvider( 3983m.Result = UnsafeNativeMethods.LresultFromObject(ref IID_IAccessible, m.WParam, new HandleRef(this, punkAcc));
winforms\Managed\System\WinForms\Control.cs (18)
7864m.Result = (IntPtr)((value.Length + 1) * Marshal.SystemDefaultCharSize); 7869m.Result = (IntPtr)(-1); 7891m.Result = (IntPtr)((bytes.Length + nullBytes.Length)/Marshal.SystemDefaultCharSize); 11098m.Result = control.SendMessage(NativeMethods.WM_REFLECT + m.Msg, m.WParam, m.LParam); 12905m.Result = control.InitializeDCForWmCtlColor(m.WParam, m.Msg); 12961m.Result = (IntPtr)0; 12970m.Result = (IntPtr)1; 13044m.Result = UnsafeNativeMethods.UiaReturnRawElementProvider( 13096m.Result = (IntPtr)0; 13110m.Result = UnsafeNativeMethods.LresultFromObject(ref IID_IAccessible, m.WParam, new HandleRef(ctrlAccessibleObject, punkAcc)); 13559m.Result = (IntPtr) (e.Handled ? 0 : 1); 13586m.Result = UnsafeNativeMethods.SendMessage(new HandleRef(null, nmhdr->hwndFrom), NativeMethods.WM_REFLECT + m.Msg, m.WParam, m.LParam); 13631m.Result = control.SendMessage(NativeMethods.WM_REFLECT + m.Msg, handle, m.LParam); 13804m.Result = (IntPtr)1; 14190m.Result = IntPtr.Zero; 14329m.Result = IntPtr.Zero; 14335m.Result = IntPtr.Zero; 14354m.Result = (IntPtr)(Marshal.SystemDefaultCharSize == 1 ? NativeMethods.NFR_ANSI : NativeMethods.NFR_UNICODE);
winforms\Managed\System\WinForms\Control.Ime.cs (1)
718m.Result = IntPtr.Zero;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
29914m.Result = (IntPtr)((long)m.Result | NativeMethods.DLGC_WANTARROWS | NativeMethods.DLGC_WANTCHARS); 29919m.Result = (IntPtr) ((long) m.Result | NativeMethods.DLGC_WANTTAB);
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (4)
792m.Result = (IntPtr)(NativeMethods.CDRF_NOTIFYITEMDRAW | NativeMethods.CDRF_NOTIFYPOSTPAINT); 811m.Result = (IntPtr)NativeMethods.CDRF_SKIPDEFAULT; 816m.Result = (IntPtr)NativeMethods.CDRF_SKIPDEFAULT; 819m.Result = (IntPtr)NativeMethods.CDRF_DODEFAULT;
winforms\Managed\System\WinForms\Form.cs (12)
3778m.Result = UnsafeNativeMethods.DefFrameProc(m.HWnd, ctlClient.Handle, m.Msg, m.WParam, m.LParam); 3781m.Result = UnsafeNativeMethods.DefMDIChildProc(m.HWnd, m.Msg, m.WParam, m.LParam); 5191m.Result = (IntPtr)(unchecked((Size.Height & 0xFFFF) << 16) | (Size.Width & 0xFFFF)); 5193m.Result = IntPtr.Zero; 7065m.Result = (IntPtr)(e.Cancel ? 0 : 1); 7229m.Result = IntPtr.Zero; 7261m.Result = (IntPtr)NativeMethods.Util.MAKELONG(0, 1); 7374m.Result = IsMirrored ? (IntPtr)NativeMethods.HTBOTTOMLEFT : (IntPtr)NativeMethods.HTBOTTOMRIGHT; 7389m.Result = (IntPtr)NativeMethods.HTBORDER; 7627m.Result = IntPtr.Zero; 7635m.Result = IntPtr.Zero; 7637m.Result = (IntPtr)1;
winforms\Managed\System\WinForms\GroupBox.cs (2)
778m.Result = (IntPtr)1; 804m.Result = IntPtr.Zero;
winforms\Managed\System\WinForms\Label.cs (1)
1741m.Result = (IntPtr)((rectInScreen.Contains(pt) ? NativeMethods.HTCLIENT : NativeMethods.HTNOWHERE));
winforms\Managed\System\WinForms\ListBox.cs (2)
2352m.Result = (IntPtr)1; 2379m.Result = (IntPtr)1;
winforms\Managed\System\WinForms\ListView.cs (25)
2497m.Result = (IntPtr)(NativeMethods.CDRF_NOTIFYITEMDRAW); 2501m.Result = (IntPtr)(NativeMethods.CDRF_NOTIFYSUBITEMDRAW | NativeMethods.CDRF_NEWFONT); 2519m.Result = (IntPtr)NativeMethods.CDRF_NEWFONT; 2577m.Result = (IntPtr)(NativeMethods.CDRF_NOTIFYSUBITEMDRAW); 2583m.Result = (IntPtr)(NativeMethods.CDRF_SKIPDEFAULT); 2595m.Result = (IntPtr)(NativeMethods.CDRF_NOTIFYSUBITEMDRAW | NativeMethods.CDRF_NEWFONT); 2675m.Result = (IntPtr)(NativeMethods.CDRF_SKIPDEFAULT); 2685m.Result = (IntPtr)NativeMethods.CDRF_NEWFONT; 2857m.Result = (IntPtr)NativeMethods.CDRF_NEWFONT; 2866m.Result = (IntPtr)NativeMethods.CDRF_DODEFAULT; 2873m.Result = (IntPtr)NativeMethods.CDRF_DODEFAULT; 5466m.Result = (IntPtr)(NativeMethods.CDRF_NOTIFYITEMDRAW); 5495m.Result = (IntPtr)(NativeMethods.CDRF_DODEFAULT); 5501m.Result = (IntPtr)(NativeMethods.CDRF_SKIPDEFAULT); 5513m.Result = (IntPtr)NativeMethods.CDRF_DODEFAULT; 5556m.Result = (IntPtr) (colWidthChanging.Cancel ? 1 : 0); 5631m.Result = (IntPtr) 1; 5676m.Result = new IntPtr(1); 5750m.Result = (IntPtr) 1; 5826m.Result = (IntPtr)(e.CancelEdit ? 1 : 0); 5844m.Result = (IntPtr)(e.CancelEdit ? 0 : 1); 5893m.Result = (IntPtr)(((int)e.NewValue == 0 ? 0 : 1) == (int)oldState ? 1 : 0); 6172m.Result = (IntPtr) (-1); 6215m.Result = (IntPtr) sviEvent.Index; 6217m.Result = (IntPtr) (-1);
winforms\Managed\System\WinForms\Menu.cs (1)
636m.Result = menu.WmMenuCharInternal(menuKey);
winforms\Managed\System\WinForms\MenuItem.cs (2)
1510m.Result = (IntPtr)1; 1541m.Result = (IntPtr)1;
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
2377m.Result = (IntPtr)NativeMethods.DLGC_WANTARROWS;
winforms\Managed\System\WinForms\NativeWindow.cs (3)
833m.Result = UnsafeNativeMethods.DefWindowProc(m.HWnd, m.Msg, m.WParam, m.LParam); 836m.Result = UnsafeNativeMethods.CallWindowProc(defWindowProc, m.HWnd, m.Msg, m.WParam, m.LParam); 840m.Result = previousWindow.Callback(m.HWnd, m.Msg, m.WParam, m.LParam);
winforms\Managed\System\WinForms\PropertyGrid.cs (14)
4880m.Result = CanUndo ? (IntPtr)1 : (IntPtr)0; 4888m.Result = CanCut ? (IntPtr)1 : (IntPtr)0; 4897m.Result = CanCopy ? (IntPtr)1 : (IntPtr)0; 4906m.Result = CanPaste ? (IntPtr)1 : (IntPtr)0; 4912m.Result = (IntPtr)1; 4916m.Result = (IntPtr)toolStrip.Items.Count; 4926m.Result = (IntPtr)(button.Checked ? 1 : 0); 4929m.Result = IntPtr.Zero; 4978m.Result = AutomationMessages.WriteAutomationText(text); 4987m.Result = AutomationMessages.WriteAutomationText(testingInfo); 4993m.Result = (IntPtr) gridView.GetPropertyLocation(propName, m.LParam == IntPtr.Zero, m.WParam == IntPtr.Zero); 4999m.Result = gridView.SendMessage(m.Msg, m.WParam, m.LParam); 5008m.Result = (IntPtr)1; 5013m.Result = (IntPtr)0;
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
253msg.Result = (IntPtr) NativeMethods.HTTRANSPARENT;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (9)
1793m.Result = ctl.SendMessage(m.Msg, m.WParam, m.LParam); 5312m.Result = (IntPtr)1; 5369m.Result = (IntPtr)(flags); 5386m.Result = (IntPtr)GetRowFromGridEntry(selectedGridEntry); 5389m.Result = (IntPtr)Math.Min(visibleRows, totalProps); 6110m.Result = IntPtr.Zero; 6854m.Result = (IntPtr)1; 6914m.Result = (IntPtr)((long)m.Result | NativeMethods.DLGC_WANTARROWS | NativeMethods.DLGC_WANTCHARS); 6916m.Result = (IntPtr)((long)m.Result | NativeMethods.DLGC_WANTALLKEYS | NativeMethods.DLGC_WANTTAB);
winforms\Managed\System\WinForms\RichTextBox.cs (11)
3342m.Result = (IntPtr)1; 3351m.Result = (IntPtr)1; 3354m.Result = IntPtr.Zero; 3466m.Result = (IntPtr)1; // tell them we did the drop 3503m.Result = IntPtr.Zero; 3519m.Result = IntPtr.Zero; 3527m.Result = IntPtr.Zero; 3538m.Result = (IntPtr)1; 3693m.Result = (IntPtr)1; 3711m.Result = (IntPtr)((AcceptsTab) ? unchecked( (int) (long)m.Result) | NativeMethods.DLGC_WANTTAB : unchecked( (int) (long)m.Result) & ~NativeMethods.DLGC_WANTTAB); 3722m.Result = (IntPtr) ((Marshal.SystemDefaultCharSize == 1) ? (65536+29) : (65536+30));
winforms\Managed\System\WinForms\StatusBar.cs (1)
1149m.Result = (IntPtr)NativeMethods.HTCLIENT;
winforms\Managed\System\WinForms\StatusStrip.cs (2)
588m.Result = (IntPtr)NativeMethods.HTBOTTOMRIGHT; 622m.Result = (IntPtr)NativeMethods.HTBOTTOMLEFT;
winforms\Managed\System\WinForms\TabControl.cs (5)
2063m.Result = (IntPtr)1; 2175m.Result = (IntPtr)1; 2181m.Result = (IntPtr)1; 2191m.Result = (IntPtr)1; 2207m.Result = (IntPtr)1;
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
2229m.Result = (IntPtr)(unchecked( (int) (long)m.Result) | NativeMethods.DLGC_WANTTAB); 2233m.Result = (IntPtr)(unchecked( (int) (long)m.Result) & ~(NativeMethods.DLGC_WANTTAB | NativeMethods.DLGC_WANTALLKEYS));
winforms\Managed\System\WinForms\ToolBar.cs (4)
1686m.Result = (IntPtr)1; 1699m.Result = (IntPtr)1; 1754m.Result = (IntPtr)1; 1765m.Result = (IntPtr)1;
winforms\Managed\System\WinForms\ToolStrip.cs (2)
4725m.Result = (IntPtr)NativeMethods.MA_NOACTIVATE; 4739m.Result = (IntPtr)NativeMethods.MA_ACTIVATEANDEAT;
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
899m.Result = (IntPtr)NativeMethods.HTTRANSPARENT;
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
890m.Result = IntPtr.Zero;
winforms\Managed\System\WinForms\ToolTip.cs (3)
2254msg.Result = (IntPtr)NativeMethods.MA_NOACTIVATE; 2270msg.Result = GetWindowFromPoint(screenCoords, ref result); 2482m.Result = IntPtr.Zero;
winforms\Managed\System\WinForms\TreeView.cs (15)
2689m.Result = (IntPtr)NativeMethods.CDRF_NOTIFYITEMDRAW; // yes, we do... 2701m.Result = (IntPtr)(NativeMethods.CDRF_SKIPDEFAULT); 2717m.Result = (IntPtr) (NativeMethods.CDRF_NEWFONT | NativeMethods.CDRF_NOTIFYPOSTPAINT); 2751m.Result = (IntPtr)(NativeMethods.CDRF_SKIPDEFAULT); 2796m.Result = (IntPtr)NativeMethods.CDRF_NEWFONT; 2864m.Result = (IntPtr)NativeMethods.CDRF_NOTIFYSUBITEMDRAW; 2872m.Result = (IntPtr)NativeMethods.CDRF_DODEFAULT; 2983m.Result = TvnExpanding(nmtv); 2991m.Result = TvnSelecting(nmtv); 3007m.Result = TvnBeginLabelEdit((NativeMethods.NMTVDISPINFO)m.GetLParam(typeof(NativeMethods.NMTVDISPINFO))); 3011m.Result = TvnEndLabelEdit((NativeMethods.NMTVDISPINFO)m.GetLParam(typeof(NativeMethods.NMTVDISPINFO))); 3050m.Result = (IntPtr)1; 3212m.Result = (IntPtr)1; 3217m.Result = (IntPtr)1; 3275m.Result = IntPtr.Zero;
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
517m.Result = (IntPtr)WebBrowserHelper.REGMSG_RETVAL; 1993m.Result = (IntPtr)0;
System.Workflow.ComponentModel (2)
AuthoringOM\Design\DesignerWidgets.cs (1)
2263msg.Result = new IntPtr(1);
AuthoringOM\Design\WorkflowView.cs (1)
1428m.Result = IntPtr.Zero;
17 references to Result
System.Windows.Forms (16)
winforms\Managed\System\WinForms\Control.cs (3)
12906if (m.Result != IntPtr.Zero) { 13111Debug.WriteLineIf(CompModSwitches.MSAA.TraceInfo, "LresultFromObject returned " + m.Result.ToString()); 13213if (m.Result != IntPtr.Zero) {
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
29914m.Result = (IntPtr)((long)m.Result | NativeMethods.DLGC_WANTARROWS | NativeMethods.DLGC_WANTCHARS); 29919m.Result = (IntPtr) ((long) m.Result | NativeMethods.DLGC_WANTTAB);
winforms\Managed\System\WinForms\Form.cs (2)
7267if (m.Result != IntPtr.Zero) { 7386int result = unchecked( (int) (long)m.Result);
winforms\Managed\System\WinForms\MessageDecoder.cs (1)
359return ToString(message.HWnd, message.Msg, message.WParam, message.LParam, message.Result);
winforms\Managed\System\WinForms\NativeWindow.cs (2)
684return m.Result; 814return m.Result;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
6914m.Result = (IntPtr)((long)m.Result | NativeMethods.DLGC_WANTARROWS | NativeMethods.DLGC_WANTCHARS); 6916m.Result = (IntPtr)((long)m.Result | NativeMethods.DLGC_WANTALLKEYS | NativeMethods.DLGC_WANTTAB);
winforms\Managed\System\WinForms\RichTextBox.cs (2)
3711m.Result = (IntPtr)((AcceptsTab) ? unchecked( (int) (long)m.Result) | NativeMethods.DLGC_WANTTAB : unchecked( (int) (long)m.Result) & ~NativeMethods.DLGC_WANTTAB);
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
2229m.Result = (IntPtr)(unchecked( (int) (long)m.Result) | NativeMethods.DLGC_WANTTAB); 2233m.Result = (IntPtr)(unchecked( (int) (long)m.Result) & ~(NativeMethods.DLGC_WANTTAB | NativeMethods.DLGC_WANTALLKEYS));
System.Workflow.ComponentModel (1)
AuthoringOM\Design\WorkflowView.cs (1)
1439if (m.Result == IntPtr.Zero)