6 writes to Msg
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Application.cs (1)
887message.Msg = msg.message;
winforms\Managed\System\WinForms\AxHost.cs (2)
2054msg.Msg = win32Message.message; 4122msg.Msg = pMsg.message;
winforms\Managed\System\WinForms\Form.cs (1)
5299msg.Msg = win32Message.message;
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
325msg.Msg = win32Message.message;
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (1)
172msg.Msg = pMsg.message;
199 references to Msg
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 (186)
winforms\Managed\System\WinForms\Application.cs (5)
880msg.message = message.Msg; 3614msg.message = m.Msg; 4207if (m.Msg != NativeMethods.WM_SHOWWINDOW) { 4209if (m.Msg == NativeMethods.WM_PARENTNOTIFY) { 4214else if (m.Msg == WM_CHECKDESTROY) {
winforms\Managed\System\WinForms\AxHost.cs (4)
2042win32Message.message = msg.Msg; 3430switch (m.Msg) { 3547if (m.Msg == REGMSG_MSG) { 3562m.Result = UnsafeNativeMethods.CallWindowProc(wndProc, handle, m.Msg, m.WParam, m.LParam);
winforms\Managed\System\WinForms\Button.cs (1)
403switch (m.Msg) {
winforms\Managed\System\WinForms\ButtonBase.cs (3)
1268switch (m.Msg) { 1283switch (m.Msg) { 1321switch (m.Msg) {
winforms\Managed\System\WinForms\CheckedListBox.cs (3)
1085switch (m.Msg) { 1093if (m.Msg == LBC_GETCHECKSTATE) { 1102else if (m.Msg == LBC_SETCHECKSTATE) {
winforms\Managed\System\WinForms\ComboBox.cs (8)
1631switch (m.Msg) { 2223if (m.Msg == NativeMethods.WM_KEYDOWN) { 2236else if (m.Msg == NativeMethods.WM_CHAR) { 3658switch (m.Msg) { 3699m.Result = InitializeDCForWmCtlColor(m.WParam, m.Msg); 3851if (m.Msg == NativeMethods.WM_MOUSEENTER) { 3876switch (m.Msg) { 5810if (m.Msg == NativeMethods.WM_NCDESTROY) {
winforms\Managed\System\WinForms\ContainerControl.cs (1)
1941switch (m.Msg) {
winforms\Managed\System\WinForms\Control.cs (38)
10157if (msg.Msg == NativeMethods.WM_KEYDOWN || msg.Msg == NativeMethods.WM_SYSKEYDOWN) { 10184else if (msg.Msg == NativeMethods.WM_CHAR || msg.Msg == NativeMethods.WM_SYSCHAR) { 10185if (msg.Msg == NativeMethods.WM_CHAR && IsInputChar((char)msg.WParam)) { 10247if (msg.Msg == NativeMethods.WM_KEYDOWN || msg.Msg == NativeMethods.WM_SYSKEYDOWN) { 10263if (msg.Msg == NativeMethods.WM_KEYDOWN || msg.Msg == NativeMethods.WM_SYSKEYDOWN) { 10272else if (msg.Msg == NativeMethods.WM_CHAR || msg.Msg == NativeMethods.WM_SYSCHAR) { 10516if (m.Msg == NativeMethods.WM_CHAR || m.Msg == NativeMethods.WM_SYSCHAR) { 10532else if (m.Msg == NativeMethods.WM_IME_CHAR) { 10648if (m.Msg == NativeMethods.WM_KEYDOWN || m.Msg == NativeMethods.WM_SYSKEYDOWN) { 11098m.Result = control.SendMessage(NativeMethods.WM_REFLECT + m.Msg, m.WParam, m.LParam); 12905m.Result = control.InitializeDCForWmCtlColor(m.WParam, m.Msg); 13034if (m.Msg == NativeMethods.WM_GETOBJECT && m.LParam == (IntPtr)NativeMethods.UiaRootObjectId && this.SupportsUiaProviders) { 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); 13631m.Result = control.SendMessage(NativeMethods.WM_REFLECT + m.Msg, handle, m.LParam); 14126switch (m.Msg) { 14392if (m.Msg == threadCallbackMessage && m.Msg != 0) { 14396else if (m.Msg == Control.WM_GETCONTROLNAME) { 14400else if (m.Msg == Control.WM_GETCONTROLTYPE) { 14410if (m.Msg == mouseWheelMessage) { 14418SendMessage(m.Msg, (IntPtr)((unchecked((int)(long)m.WParam) << 16) | (int)keyState), m.LParam); 14436if (m.Msg == NativeMethods.WM_MOUSEENTER) { 14635switch (m.Msg) { 18524lpmsg.message = msg.Msg; 18742if (m.Msg >= NativeMethods.WM_MOUSEFIRST && m.Msg <= NativeMethods.WM_MOUSELAST) { 18745if (m.Msg >= NativeMethods.WM_NCLBUTTONDOWN && m.Msg <= NativeMethods.WM_NCMBUTTONDBLCLK) { 18748if (m.Msg >= NativeMethods.WM_KEYFIRST && m.Msg <= NativeMethods.WM_KEYLAST) {
winforms\Managed\System\WinForms\DataGrid.cs (2)
8210if (m.Msg == NativeMethods.WM_KEYDOWN) { 8236} else if (m.Msg == NativeMethods.WM_KEYUP) {
winforms\Managed\System\WinForms\DataGridTextBox.cs (8)
55if (m.Msg == NativeMethods.WM_PASTE || m.Msg == NativeMethods.WM_CUT || m.Msg == NativeMethods.WM_CLEAR) { 112if (m.Msg == NativeMethods.WM_CHAR) 117if (m.Msg == NativeMethods.WM_CHAR) { 126if (m.Msg == NativeMethods.WM_KEYUP) 195if (m.Msg == NativeMethods.WM_CHAR) return true; 206if (m.Msg == NativeMethods.WM_CHAR) return true;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (14)
22306if (m.Msg == NativeMethods.WM_SYSKEYDOWN || m.Msg == NativeMethods.WM_KEYDOWN) 22340this.editingControl.SendMessage(m.Msg, m.WParam, m.LParam); 22352(m.Msg == NativeMethods.WM_SYSCHAR || m.Msg == NativeMethods.WM_CHAR || m.Msg == NativeMethods.WM_IME_CHAR)) 22357this.editingControl.SendMessage(m.Msg, m.WParam, m.LParam); 22378if (m.Msg == NativeMethods.WM_CHAR) 22420if (this.editingControl != null && (m.Msg == NativeMethods.WM_KEYDOWN || m.Msg == NativeMethods.WM_SYSKEYDOWN)) 22432if (m.Msg == NativeMethods.WM_KEYDOWN || m.Msg == NativeMethods.WM_SYSKEYDOWN) 29959switch (m.Msg) 29990this.editingControl.SendMessage(m.Msg, m.WParam, m.LParam);
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (3)
294if (m.Msg == NativeMethods.WM_CHAR && 305if (m.Msg == NativeMethods.WM_CHAR && 314if (m.Msg == NativeMethods.WM_KEYDOWN && ModifierKeys == Keys.Control)
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
1686switch (m.Msg) {
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
850if (m.Msg == NativeMethods.WM_REFLECT + NativeMethods.WM_NOTIFY) {
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1288switch (m.Msg) {
winforms\Managed\System\WinForms\Form.cs (11)
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); 5288win32Message.message = msg.Msg; 7001if (m.Msg != NativeMethods.WM_ENDSESSION) { 7064if (m.Msg == NativeMethods.WM_QUERYENDSESSION) { 7083if (m.Msg != NativeMethods.WM_QUERYENDSESSION) { 7526switch (m.Msg) { 7945if (msg.Msg == NativeMethods.WM_LBUTTONDOWN 7946|| msg.Msg == NativeMethods.WM_RBUTTONDOWN 7947|| msg.Msg == NativeMethods.WM_MBUTTONDOWN 7948|| msg.Msg == NativeMethods.WM_XBUTTONDOWN) {
winforms\Managed\System\WinForms\GroupBox.cs (1)
791switch (m.Msg) {
winforms\Managed\System\WinForms\Label.cs (1)
1734switch (m.Msg) {
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1944switch (msg.Msg) {
winforms\Managed\System\WinForms\ListBox.cs (1)
2390switch (m.Msg) {
winforms\Managed\System\WinForms\ListView.cs (1)
6250switch (m.Msg) {
winforms\Managed\System\WinForms\MaskedTextBox.cs (3)
2721if( m.Msg == NativeMethods.WM_CHAR && base.ImeWmCharsToIgnore > 0 ) { 3203switch (m.Msg) 3230switch (m.Msg)
winforms\Managed\System\WinForms\MDIClient.cs (1)
353switch (m.Msg) {
winforms\Managed\System\WinForms\MenuStrip.cs (1)
269if (m.Msg == NativeMethods.WM_MOUSEACTIVATE && (ActiveDropDowns.Count == 0)) {
winforms\Managed\System\WinForms\MessageDecoder.cs (1)
359return ToString(message.HWnd, message.Msg, message.WParam, message.LParam, message.Result);
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
2414switch (m.Msg) {
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 (2)
850switch (msg.Msg) { 932if (msg.Msg == WM_TASKBARCREATED) {
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
920switch (m.Msg) {
winforms\Managed\System\WinForms\PropertyGrid.cs (4)
4874switch (m.Msg) { 4970if (m.Msg == AutomationMessages.PGM_GETBUTTONTEXT) { 4992if (m.Msg == this.dwMsg) { 4999m.Result = gridView.SendMessage(m.Msg, m.WParam, m.LParam);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
240switch (msg.Msg) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (7)
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); 5324switch (m.Msg) { 6076if (m.Msg == NativeMethods.WM_ACTIVATE) { 6089else if (m.Msg == NativeMethods.WM_CLOSE) { 6097else if (m.Msg == NativeMethods.WM_DPICHANGED) { 6873switch (m.Msg) {
winforms\Managed\System\WinForms\RichTextBox.cs (1)
3670switch (m.Msg) {
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
1479switch (m.Msg) {
winforms\Managed\System\WinForms\ScrollBar.cs (1)
918switch (m.Msg) {
winforms\Managed\System\WinForms\SendKeys.cs (1)
997if (m.Msg == NativeMethods.WM_CANCELJOURNAL) {
winforms\Managed\System\WinForms\SplitContainer.cs (5)
2495switch (msg.Msg) { 2549if (m.Msg >= NativeMethods.WM_KEYFIRST && m.Msg <= NativeMethods.WM_KEYLAST) { 2550if ((m.Msg == NativeMethods.WM_KEYDOWN && (int)m.WParam == (int)Keys.Escape) 2551|| (m.Msg == NativeMethods.WM_SYSKEYDOWN)) {
winforms\Managed\System\WinForms\Splitter.cs (3)
1085if (m.Msg >= NativeMethods.WM_KEYFIRST && m.Msg <= NativeMethods.WM_KEYLAST) { 1086if (m.Msg == NativeMethods.WM_KEYDOWN && unchecked((int)(long)m.WParam) == (int)Keys.Escape) {
winforms\Managed\System\WinForms\StatusBar.cs (2)
1163switch (m.Msg) { 1906switch (msg.Msg) {
winforms\Managed\System\WinForms\StatusStrip.cs (2)
554if ((m.Msg == NativeMethods.WM_NCHITTEST) && SizingGrip) { 617if (m.Msg == NativeMethods.WM_NCHITTEST) {
winforms\Managed\System\WinForms\TabControl.cs (2)
2154switch (m.Msg) { 2212if (m.Msg == tabBaseReLayoutMessage) {
winforms\Managed\System\WinForms\TextBox.cs (1)
874switch (m.Msg) {
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
2290switch (m.Msg) {
winforms\Managed\System\WinForms\Timer.cs (2)
454if (m.Msg == NativeMethods.WM_TIMER) { 461else if (m.Msg == NativeMethods.WM_CLOSE) {
winforms\Managed\System\WinForms\ToolBar.cs (1)
1669switch (m.Msg) {
winforms\Managed\System\WinForms\ToolStrip.cs (4)
4711if (m.Msg == NativeMethods.WM_SETFOCUS) { 4714if (m.Msg == NativeMethods.WM_MOUSEACTIVATE) { 4761if (m.Msg == NativeMethods.WM_NCDESTROY) { 5154switch (m.Msg) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (3)
2117if (m.Msg >= NativeMethods.WM_KEYFIRST && m.Msg <= NativeMethods.WM_KEYLAST && IsRestrictedWindow) { 2127switch (m.Msg) {
winforms\Managed\System\WinForms\ToolStripManager.cs (8)
1215if (m.Msg >= NativeMethods.WM_MOUSEFIRST && m.Msg <= NativeMethods.WM_MOUSELAST) { 1218else if (m.Msg >= NativeMethods.WM_NCLBUTTONDOWN && m.Msg <= NativeMethods.WM_NCMBUTTONDBLCLK) { 1221else if (m.Msg >= NativeMethods.WM_KEYFIRST && m.Msg <= NativeMethods.WM_KEYLAST) { 1276switch (m.Msg) { 1541if (m.Msg == NativeMethods.WM_SYSKEYDOWN) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
898if (m.Msg == NativeMethods.WM_NCHITTEST){
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (2)
186if (m.Msg >= NativeMethods.WM_KEYFIRST && m.Msg <= NativeMethods.WM_KEYLAST) {
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
894if (m.Msg == NativeMethods.WM_NCPAINT) {
winforms\Managed\System\WinForms\ToolTip.cs (1)
2554switch (msg.Msg) {
winforms\Managed\System\WinForms\TrackBar.cs (1)
1172switch (m.Msg) {
winforms\Managed\System\WinForms\TreeView.cs (1)
3155switch (m.Msg) {
winforms\Managed\System\WinForms\UpDownBase.cs (1)
1212switch (m.Msg)
winforms\Managed\System\WinForms\UserControl.cs (1)
372switch (m.Msg) {
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1647switch (m.Msg) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (4)
302win32Message.message = msg.Msg; 427switch (m.Msg) { 516if (m.Msg == WebBrowserHelper.REGMSG_MSG) { 1970switch (m.Msg) {
System.Workflow.ComponentModel (11)
AuthoringOM\Design\DesignerWidgets.cs (1)
2256if (msg.Msg == NativeMethods.WM_NOTIFY && msg.LParam != IntPtr.Zero && !this.inplaceTipRectangle.IsEmpty)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (2)
1210if (msg.Msg >= WM_MOUSEFIRST && msg.Msg <= WM_MOUSELAST)
AuthoringOM\Design\WorkflowView.cs (8)
1416if (m.Msg == WM_CONTEXTMENU) 1434if (this.workflowToolTip != null && m.Msg == NativeMethods.WM_NOTIFY) 2224if (m.Msg == NativeMethods.WM_KEYDOWN || m.Msg == NativeMethods.WM_SYSKEYDOWN || 2225m.Msg == NativeMethods.WM_KEYUP || m.Msg == NativeMethods.WM_SYSKEYUP) 2231if (m.Msg == NativeMethods.WM_KEYDOWN || m.Msg == NativeMethods.WM_SYSKEYDOWN)