10 writes to WParam
System.Windows.Forms (10)
winforms\Managed\System\WinForms\Application.cs (1)
888message.WParam = msg.wParam;
winforms\Managed\System\WinForms\AxHost.cs (2)
2055msg.WParam = win32Message.wParam; 4123msg.WParam = pMsg.wParam;
winforms\Managed\System\WinForms\ComboBox.cs (1)
3784m.WParam = dc;
winforms\Managed\System\WinForms\Control.cs (1)
10658m.WParam = newWParam;
winforms\Managed\System\WinForms\Form.cs (1)
5300msg.WParam = win32Message.wParam;
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
243msg.WParam = IntPtr.Zero;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
2235m.WParam = (IntPtr)1;
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
326msg.WParam = win32Message.wParam;
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (1)
173msg.WParam = pMsg.wParam;
166 references to WParam
System.Web.Entity.Design (1)
System\Data\WebControls\Design\Util\DesignerForm.cs (1)
173if ((m.Msg == WM_SYSCOMMAND) && ((int)m.WParam == SC_CONTEXTHELP))
System.Web.Mobile (1)
UI\MobileControls\Design\DesignerForm.cs (1)
151if ((m.Msg == WM_SYSCOMMAND) && ((int)m.WParam == SC_CONTEXTHELP)) {
System.Windows.Forms (163)
winforms\Managed\System\WinForms\Application.cs (4)
881msg.wParam = message.WParam; 3615msg.wParam = m.WParam; 3708msg.wParam = m.WParam; 4210if (NativeMethods.Util.LOWORD(unchecked( (int) (long)m.WParam)) == NativeMethods.WM_DESTROY) {
winforms\Managed\System\WinForms\AxHost.cs (3)
2043win32Message.wParam = msg.WParam; 3465hwndFocus = m.WParam; 3562m.Result = UnsafeNativeMethods.CallWindowProc(wndProc, handle, m.Msg, m.WParam, m.LParam);
winforms\Managed\System\WinForms\Button.cs (1)
405if (NativeMethods.Util.HIWORD(m.WParam) == NativeMethods.BN_CLICKED) {
winforms\Managed\System\WinForms\ButtonBase.cs (1)
1323if (NativeMethods.Util.HIWORD(m.WParam) == NativeMethods.BN_CLICKED && !ValidationCancelled) {
winforms\Managed\System\WinForms\CheckedListBox.cs (4)
1029switch (NativeMethods.Util.HIWORD(m.WParam)) { 1056int keycode = NativeMethods.Util.LOWORD(m.WParam); 1094int item = unchecked( (int) (long)m.WParam); 1103int item = unchecked( (int) (long)m.WParam);
winforms\Managed\System\WinForms\ComboBox.cs (13)
1665char keyChar = unchecked((char)(long)m.WParam); 1927UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.WM_CONTEXTMENU, m.WParam, m.LParam); 2223if ((Keys)unchecked( (int) (long)m.WParam) == Keys.Delete) { 2235char keyChar = unchecked((char)(long)m.WParam); 3453Graphics graphics = Graphics.FromHdcInternal(m.WParam); 3476if (unchecked((int)(long)m.WParam) == (NativeMethods.WM_CREATE | 1000 << 16)) { 3564switch (NativeMethods.Util.HIWORD(m.WParam)) { 3696m.Result = InitializeDCForWmCtlColor(m.WParam, m.Msg); 3771if (m.WParam == IntPtr.Zero) { 3776dc = m.WParam; 3813using (Graphics g = Graphics.FromHdcInternal(m.WParam)) { 3938m.WParam, 3980m.Result = UnsafeNativeMethods.LresultFromObject(ref IID_IAccessible, m.WParam, new HandleRef(this, punkAcc));
winforms\Managed\System\WinForms\Control.cs (51)
7868if (unchecked((int)(long)m.WParam) < value.Length + 1) { 10162Keys keyData = (Keys)(unchecked((int)(long)msg.WParam) | (int)ModifierKeys); 10185if (msg.Msg == NativeMethods.WM_CHAR && IsInputChar((char)msg.WParam)) { 10190ret = ProcessDialogChar((char)msg.WParam); 10244Keys keyData = (Keys)(unchecked((int)(long)msg.WParam) | (int)ModifierKeys); 10276if (target.GetState2(STATE2_INPUTCHAR) || target.IsInputChar((char)msg.WParam)) { 10527kpe = new KeyPressEventArgs(unchecked((char)(long)m.WParam)); 10544byte[] b = new byte[] {(byte)(unchecked((int)(long)m.WParam) >> 8), unchecked((byte)(long)m.WParam)}; 10587kpe = new KeyPressEventArgs(unchecked((char)(long)m.WParam)); 10595newWParam = m.WParam; 10638newWParam = m.WParam; 10647ke = new KeyEventArgs((Keys)(unchecked((int)(long)m.WParam)) | ModifierKeys); 10770Keys keyCode = (Keys)((int)msg.WParam) & Keys.KeyCode; 11098m.Result = control.SendMessage(NativeMethods.WM_REFLECT + m.Msg, m.WParam, m.LParam); 12834if (Command.DispatchID(NativeMethods.Util.LOWORD(m.WParam))) return; 12905m.Result = control.InitializeDCForWmCtlColor(m.WParam, m.Msg); 12927if (m.WParam == IntPtr.Zero) { 12959IntPtr dc = m.WParam; 12983bool isContextMenu = (unchecked((int)(long)m.WParam) == 0) ? false : true; 13046m.WParam, 13110m.Result = UnsafeNativeMethods.LresultFromObject(ref IID_IAccessible, m.WParam, new HandleRef(ctrlAccessibleObject, punkAcc)); 13168if (contextMenu.ProcessInitMenuPopup(m.WParam)) 13182if (m.WParam == IntPtr.Zero) { 13225int item = NativeMethods.Util.LOWORD(m.WParam); 13226int flags = NativeMethods.Util.HIWORD(m.WParam); 13557NativeMethods.Util.SignedHIWORD(m.WParam)); 13586m.Result = UnsafeNativeMethods.SendMessage(new HandleRef(null, nmhdr->hwndFrom), NativeMethods.WM_REFLECT + m.Msg, m.WParam, m.LParam); 13590UnsafeNativeMethods.SendMessage(new HandleRef(null, nmhdr->hwndFrom), NativeMethods.WM_REFLECT + m.Msg, m.WParam, m.LParam); 13603if (!ReflectMessageInternal(m.WParam, ref m)) { 13616int ctrlId = unchecked((int)(long)m.WParam); 13627IntPtr handle = window.GetHandleFromID((short)NativeMethods.Util.LOWORD(m.WParam)); 13665if (m.WParam == IntPtr.Zero) { 13679dc = m.WParam; 13692if (doubleBuffered || m.WParam == IntPtr.Zero) { 13743if ((m.WParam == IntPtr.Zero) && GetStyle(ControlStyles.AllPaintingInWmPaint) || doubleBuffered) { 13788using (PaintEventArgs e = new PrintPaintEventArgs(m, m.WParam, ClientRectangle)) { 13818if (m.WParam == InternalHandle && NativeMethods.Util.LOWORD(m.LParam) == NativeMethods.HTCLIENT) { 13864int msg = NativeMethods.Util.LOWORD(m.WParam); 13873hWnd = UnsafeNativeMethods.GetDlgItem(new HandleRef(this, Handle), NativeMethods.Util.HIWORD(m.WParam)); 13932bool visible = m.WParam != IntPtr.Zero; 14000int cmd = NativeMethods.Util.LOWORD(m.WParam); 14017if ((NativeMethods.Util.HIWORD(m.WParam) & NativeMethods.UISF_HIDEACCEL) != 0) { 14039if ((NativeMethods.Util.HIWORD(m.WParam) & NativeMethods.UISF_HIDEFOCUS) != 0) { 14185if ((unchecked((int)(long)m.WParam) & 0xFFF0) == NativeMethods.SC_KEYMENU) { 14312WmMouseDown(ref m, GetXButton(NativeMethods.Util.HIWORD(m.WParam)), 1); 14315WmMouseUp(ref m, GetXButton(NativeMethods.Util.HIWORD(m.WParam)), 1); 14318WmMouseDown(ref m, GetXButton(NativeMethods.Util.HIWORD(m.WParam)), 2); 14418SendMessage(m.Msg, (IntPtr)((unchecked((int)(long)m.WParam) << 16) | (int)keyState), m.LParam); 14427(unchecked((int)(long)m.WParam) << 16) | (int)keyState, 18525lpmsg.wParam = msg.WParam;
winforms\Managed\System\WinForms\Control.Ime.cs (2)
762int wparam = (int) m.WParam; 782Debug.WriteLineIf( CompModSwitches.ImeMode.Level >= TraceLevel.Info, string.Format( CultureInfo.CurrentCulture, "Inside WmImeNotify(m.wparam=[{0}]), this={1}", m.WParam, this ) );
winforms\Managed\System\WinForms\DataGrid.cs (2)
8211KeyEventArgs ke = new KeyEventArgs((Keys)(unchecked((int)(long)m.WParam)) | ModifierKeys); 8237KeyEventArgs ke = new KeyEventArgs((Keys)(unchecked((int)(long)m.WParam)) | ModifierKeys);
winforms\Managed\System\WinForms\DataGridTextBox.cs (1)
103Keys key = (Keys)unchecked((int)(long)m.WParam);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (5)
22318KeyEventArgs ke = new KeyEventArgs((Keys)(unchecked((int)(long)m.WParam)) | ModifierKeys); 22340this.editingControl.SendMessage(m.Msg, m.WParam, m.LParam); 22357this.editingControl.SendMessage(m.Msg, m.WParam, m.LParam); 22371KeyEventArgs ke = new KeyEventArgs((Keys)((int)m.WParam) | ModifierKeys); 29990this.editingControl.SendMessage(m.Msg, m.WParam, m.LParam);
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (1)
291switch ((Keys)(int) m.WParam)
winforms\Managed\System\WinForms\Form.cs (14)
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); 5190if (OnGetDpiScaledSize(deviceDpi, NativeMethods.Util.SignedLOWORD(m.WParam), ref desiredSize)) { 5289win32Message.wParam = msg.WParam; 6946Active = NativeMethods.Util.LOWORD(m.WParam) != NativeMethods.WA_INACTIVE; 7077e.Cancel = m.WParam == IntPtr.Zero; 7243if (curMenu.ProcessInitMenuPopup(m.WParam)) 7260UnsafeNativeMethods.PostMessage(new HandleRef(formMdiParent, formMdiParent.Handle), NativeMethods.WM_SYSCOMMAND, new IntPtr(NativeMethods.SC_KEYMENU), m.WParam); 7290if (Handle == m.WParam) { 7412int sc = (NativeMethods.Util.LOWORD(m.WParam) & 0xFFF0); 7440if (Command.DispatchID(NativeMethods.Util.LOWORD(m.WParam))) { 7463int wParam = m.WParam.ToInt32(); 7623Debug.Assert(NativeMethods.Util.SignedLOWORD(m.WParam) == NativeMethods.Util.SignedHIWORD(m.WParam), "Non-square pixels!");
winforms\Managed\System\WinForms\GroupBox.cs (1)
772using (Graphics graphics = Graphics.FromHdcInternal(m.WParam)) {
winforms\Managed\System\WinForms\InputLanguage.cs (2)
333return new InputLanguageChangedEventArgs(new InputLanguage(m.LParam), unchecked((byte)(long)m.WParam)); 346bool localeSupportedBySystem = !(m.WParam == IntPtr.Zero);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1924if (m.WParam == InternalHandle && NativeMethods.Util.LOWORD(m.LParam) == NativeMethods.HTCLIENT) {
winforms\Managed\System\WinForms\ListBox.cs (2)
2279using (Graphics g = Graphics.FromHdc(m.WParam)) { 2303switch (NativeMethods.Util.HIWORD(m.WParam)) {
winforms\Managed\System\WinForms\ListView.cs (2)
6230using (Graphics g = Graphics.FromHdc(m.WParam)) { 6370if (unchecked( (int) (long)m.WParam) != LVTOOLTIPTRACKING || !ComctlSupportsVisualStyles) {
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
3180using (Graphics g = Graphics.FromHdc(m.WParam)) {
winforms\Managed\System\WinForms\Menu.cs (1)
634char menuKey = Char.ToUpper((char) NativeMethods.Util.LOWORD(m.WParam), CultureInfo.CurrentCulture);
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 (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\NotifyIcon.cs (4)
902if (Command.DispatchID((int)msg.WParam & 0xFFFF)) return; 911if (msg.WParam == IntPtr.Zero) { 917if (msg.WParam == IntPtr.Zero) { 942if (contextMenu.ProcessInitMenuPopup(m.WParam)) {
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (3)
362switch (NativeMethods.Util.LOWORD(m.WParam)) { 375pos = NativeMethods.Util.HIWORD(m.WParam); 811Keys keyData = (Keys)((int)msg.WParam | (int)ModifierKeys);
winforms\Managed\System\WinForms\PropertyGrid.cs (7)
4922int index = unchecked((int)(long)m.WParam); 4937int index = unchecked((int)(long)m.WParam); 4948switch (unchecked((int)(long)m.WParam)) { 4967int index = unchecked((int)(long)m.WParam); 4986string testingInfo = gridView.GetTestingInfo(unchecked((int) (long) m.WParam)); 4993m.Result = (IntPtr) gridView.GetPropertyLocation(propName, m.LParam == IntPtr.Zero, m.WParam == IntPtr.Zero); 4999m.Result = gridView.SendMessage(m.Msg, m.WParam, m.LParam);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
242if (unchecked( (int) (long)msg.WParam) != 0 && dontShow){
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (6)
1790if (dropDownHolder != null && dropDownHolder.Visible && m.Msg == NativeMethods.WM_KEYDOWN && (int)m.WParam != (int)Keys.Tab) { 1793m.Result = ctl.SendMessage(m.Msg, m.WParam, m.LParam); 5351UnsafeNativeMethods.PostMessage(new HandleRef(Edit, Edit.Handle), NativeMethods.WM_IME_COMPOSITION, m.WParam, m.LParam); 6080if (Visible && NativeMethods.Util.LOWORD(m.WParam) == NativeMethods.WA_INACTIVE && !this.OwnsWindow(activatedWindow)) { 6875if ((unchecked( (int) (long)m.WParam) & NativeMethods.GWL_EXSTYLE) != 0) { 6889if (IntPtr.Zero == m.WParam) {
winforms\Managed\System\WinForms\RichTextBox.cs (3)
3410switch (Util.HIWORD(m.WParam)) { 3740int loWord = Util.LOWORD(m.WParam); 3753loWord = Util.LOWORD(m.WParam);
winforms\Managed\System\WinForms\ScrollableControl.cs (5)
1313bool thumbTrack = NativeMethods.Util.LOWORD(m.WParam) != NativeMethods.SB_THUMBTRACK; 1322switch (NativeMethods.Util.LOWORD(m.WParam)) { 1399switch (NativeMethods.Util.LOWORD(m.WParam)) { 1443if (GetScrollState(ScrollStateFullDrag) || NativeMethods.Util.LOWORD(m.WParam) != NativeMethods.SB_THUMBTRACK) { 1457ScrollEventType type = (ScrollEventType)NativeMethods.Util.LOWORD(m.WParam);
winforms\Managed\System\WinForms\ScrollBar.cs (1)
819ScrollEventType type = (ScrollEventType)NativeMethods.Util.LOWORD(m.WParam);
winforms\Managed\System\WinForms\SplitContainer.cs (2)
2350if (m.WParam == InternalHandle && ((int)m.LParam & 0x0000FFFF) == NativeMethods.HTCLIENT) { 2550if ((m.Msg == NativeMethods.WM_KEYDOWN && (int)m.WParam == (int)Keys.Escape)
winforms\Managed\System\WinForms\Splitter.cs (1)
1086if (m.Msg == NativeMethods.WM_KEYDOWN && unchecked((int)(long)m.WParam) == (int)Keys.Escape) {
winforms\Managed\System\WinForms\TextBox.cs (1)
848using (Graphics g = Graphics.FromHdc(m.WParam)) {
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
2203if (NativeMethods.Util.HIWORD(m.WParam) == NativeMethods.EN_CHANGE && CanRaiseTextChangedEvent) { 2206else if (NativeMethods.Util.HIWORD(m.WParam) == NativeMethods.EN_UPDATE) {
winforms\Managed\System\WinForms\Timer.cs (1)
456if (unchecked( (int) (long)m.WParam) == _timerID) {
winforms\Managed\System\WinForms\ToolBar.cs (1)
1650int id = NativeMethods.Util.LOWORD(m.WParam);
winforms\Managed\System\WinForms\ToolStrip.cs (1)
4702SnapFocus(m.WParam);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (3)
2139Debug.WriteLineIf(ToolStrip.SnapFocusDebug.TraceVerbose, "[ToolStripDropDown.WndProc] got a WM_ACTIVATE " + (((int)m.WParam == NativeMethods.WA_ACTIVE) ? "WA_ACTIVE" : "WA_INACTIVE") + " - checkin if we need to set the active toolstrip"); 2141if((int)m.WParam == NativeMethods.WA_ACTIVE) { 2224if (m.WParam != IntPtr.Zero /*activating*/) {
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
982Keys keyData = (Keys)(int)m.WParam;
winforms\Managed\System\WinForms\TrackBar.cs (1)
1175switch (NativeMethods.Util.LOWORD(m.WParam)) {
winforms\Managed\System\WinForms\TreeView.cs (1)
3136using (Graphics g = Graphics.FromHdc(m.WParam)) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
303win32Message.wParam = msg.WParam; 473hwndFocus = (IntPtr)m.WParam;
System.Workflow.ComponentModel (1)
AuthoringOM\Design\WorkflowView.cs (1)
2230KeyEventArgs eventArgs = new KeyEventArgs((Keys)(unchecked((int)(long)m.WParam)) | ModifierKeys);