39 references to WM
PresentationFramework (39)
System\Windows\Shell\WindowChromeWorker.cs (21)
14
using HANDLE_MESSAGE = System.Collections.Generic.KeyValuePair<Standard.
WM
, Standard.MessageHandler>;
63
new HANDLE_MESSAGE(
WM
.SETTEXT, _HandleSetTextOrIcon),
64
new HANDLE_MESSAGE(
WM
.SETICON, _HandleSetTextOrIcon),
65
new HANDLE_MESSAGE(
WM
.NCACTIVATE, _HandleNCActivate),
66
new HANDLE_MESSAGE(
WM
.NCCALCSIZE, _HandleNCCalcSize),
67
new HANDLE_MESSAGE(
WM
.NCHITTEST, _HandleNCHitTest),
68
new HANDLE_MESSAGE(
WM
.NCRBUTTONUP, _HandleNCRButtonUp),
69
new HANDLE_MESSAGE(
WM
.SIZE, _HandleSize),
70
new HANDLE_MESSAGE(
WM
.WINDOWPOSCHANGED, _HandleWindowPosChanged),
71
new HANDLE_MESSAGE(
WM
.DWMCOMPOSITIONCHANGED, _HandleDwmCompositionChanged),
350
var
message = (
WM
)msg;
361
private IntPtr _HandleSetTextOrIcon(
WM
uMsg, IntPtr wParam, IntPtr lParam, out bool handled)
379
private IntPtr _HandleNCActivate(
WM
uMsg, IntPtr wParam, IntPtr lParam, out bool handled)
386
IntPtr lRet = NativeMethods.DefWindowProc(_hwnd,
WM
.NCACTIVATE, wParam, new IntPtr(-1));
400
private IntPtr _HandleNCCalcSize(
WM
uMsg, IntPtr wParam, IntPtr lParam, out bool handled)
478
private IntPtr _HandleNCHitTest(
WM
uMsg, IntPtr wParam, IntPtr lParam, out bool handled)
535
private IntPtr _HandleNCRButtonUp(
WM
uMsg, IntPtr wParam, IntPtr lParam, out bool handled)
547
private IntPtr _HandleSize(
WM
uMsg, IntPtr wParam, IntPtr lParam, out bool handled)
567
private IntPtr _HandleWindowPosChanged(
WM
uMsg, IntPtr wParam, IntPtr lParam, out bool handled)
596
private IntPtr _HandleDwmCompositionChanged(
WM
uMsg, IntPtr wParam, IntPtr lParam, out bool handled)
System\Windows\Standard\MessageWindow.cs (3)
142
private static IntPtr _WndProc(IntPtr hwnd,
WM
msg, IntPtr wParam, IntPtr lParam)
147
if (msg ==
WM
.CREATE)
173
if (msg ==
WM
.NCDESTROY)
System\Windows\Standard\NativeMethods.cs (13)
2274
internal delegate IntPtr WndProc(IntPtr hwnd,
WM
uMsg, IntPtr wParam, IntPtr lParam);
2277
internal delegate IntPtr WndProcHook(IntPtr hwnd,
WM
uMsg, IntPtr wParam, IntPtr lParam, ref bool handled);
2280
internal delegate IntPtr MessageHandler(
WM
uMsg, IntPtr wParam, IntPtr lParam, out bool handled);
2302
private static extern bool _ChangeWindowMessageFilter(
WM
message, MSGFLT dwFlag);
2306
private static extern bool _ChangeWindowMessageFilterEx(IntPtr hwnd,
WM
message, MSGFLT action, [In, Out, Optional] ref CHANGEFILTERSTRUCT pChangeFilterStruct);
2310
public static HRESULT ChangeWindowMessageFilterEx(IntPtr hwnd,
WM
message, MSGFLT action, out MSGFLTINFO filterInfo)
2492
public static extern IntPtr DefWindowProc(IntPtr hWnd,
WM
Msg, IntPtr wParam, IntPtr lParam);
2556
public static extern bool DwmDefWindowProc(IntPtr hwnd,
WM
msg, IntPtr wParam, IntPtr lParam, out IntPtr plResult);
2861
private static extern bool _PostMessage(IntPtr hWnd,
WM
Msg, IntPtr wParam, IntPtr lParam);
2863
public static void PostMessage(IntPtr hWnd,
WM
Msg, IntPtr wParam, IntPtr lParam)
2891
public static
WM
RegisterWindowMessage(string lpString)
2898
return (
WM
)iRet;
3075
public static extern IntPtr SendMessage(IntPtr hWnd,
WM
Msg, IntPtr wParam, IntPtr lParam);
System\Windows\SystemCommands.cs (2)
37
NativeMethods.PostMessage(hwnd,
WM
.SYSCOMMAND, new IntPtr((int)command), IntPtr.Zero);
91
NativeMethods.PostMessage(hwnd,
WM
.SYSCOMMAND, new IntPtr(cmd), IntPtr.Zero);