40 references to code
System.Windows.Forms (38)
System\Windows\Forms\Control.cs (1)
12487switch (nmhdr->code)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
30032if (nmhdr->code == PInvoke.TTN_GETDISPINFOW && !DesignMode)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1534switch (nmhdr->code)
System\Windows\Forms\Controls\ListView\ListView.cs (16)
6011&& nmhdr->code == PInvoke.NM_CUSTOMDRAW) 6032if (nmhdr->code == PInvoke.NM_CUSTOMDRAW && PInvoke.UiaClientsAreListening()) 6043if (nmhdr->code == PInvoke.NM_CUSTOMDRAW && OwnerDraw) 6096if (nmhdr->code == PInvoke.NM_RELEASEDCAPTURE && _listViewState[LISTVIEWSTATE_columnClicked]) 6102if (nmhdr->code == PInvoke.HDN_BEGINTRACKW) 6124if (nmhdr->code == PInvoke.HDN_ITEMCHANGINGW) 6159if ((nmhdr->code == PInvoke.HDN_ITEMCHANGEDW) && 6211if (nmhdr->code == PInvoke.HDN_ENDTRACKW) 6239if (nmhdr->code == PInvoke.HDN_ENDDRAG) 6306if (nmhdr->code == PInvoke.HDN_DIVIDERDBLCLICKW) 6467switch (nmhdr->code) 6712MouseButtons button = nmhdr->code == PInvoke.NM_CLICK ? MouseButtons.Left : MouseButtons.Right; 6806if (nmhdr->code == PInvoke.LVN_GETDISPINFOW) 6856else if (nmhdr->code == PInvoke.LVN_ODSTATECHANGED) 6872else if (nmhdr->code == PInvoke.LVN_GETINFOTIPW) 6895else if (nmhdr->code == PInvoke.LVN_ODFINDITEMW)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2189switch (nmhdr->code)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
5272switch (nmhdr->code)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
296switch (nmhdr->code)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3344switch (nmhdr->code)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
2082switch (nmhdr->code)
System\Windows\Forms\Controls\TreeView\TreeView.cs (8)
3194if (nmhdr->code == PInvoke.NM_CUSTOMDRAW) 3202switch (nmtv->hdr.code) 3238if (nmtv->hdr.code != PInvoke.NM_CLICK || (tvhip.flags & TVHITTESTINFO_FLAGS.TVHT_ONITEM) != 0) 3240button = nmtv->hdr.code == PInvoke.NM_CLICK ? MouseButtons.Left : MouseButtons.Right; 3246if (nmtv->hdr.code != PInvoke.NM_CLICK 3257if (nmtv->hdr.code == PInvoke.NM_RCLICK) 3275if (nmtv->hdr.code != PInvoke.NM_CLICK 3419switch (nmhdr->code)
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
280if (nmhdr->code == PInvoke.NM_CUSTOMDRAW)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
504switch (notify->hdr.code)
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
424if (nmhdr->code is PInvoke.TTN_SHOW or PInvoke.TTN_POP) 426OnToolTipVisibilityChanging((nint)nmhdr->idFrom, nmhdr->code == PInvoke.TTN_SHOW);
System\Windows\Forms\ToolTip\ToolTip.cs (2)
2273if (nmhdr->code == PInvoke.TTN_SHOW && !_trackPosition) 2277else if (nmhdr->code == PInvoke.TTN_POP)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
205if (nmtv->code == PInvoke.NM_CLICK)
System\Windows\Forms\Design\ListViewDesigner.cs (1)
138if (nmhdr->code == PInvoke.HDN_ENDTRACKW)