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