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