92bad0a60a
Fix #5822
65 lines
1.2 KiB
Python
65 lines
1.2 KiB
Python
# List many windows message numbers
|
|
|
|
msgs = {
|
|
"WM_ACTIVATE":6,
|
|
"WM_ACTIVATEAPP":28,
|
|
"WM_CAPTURECHANGED":533,
|
|
"WM_CHAR":258,
|
|
"WM_CLOSE":16,
|
|
"WM_CREATE":1,
|
|
"WM_COMMAND":273,
|
|
"WM_DESTROY":2,
|
|
"WM_ENTERSIZEMOVE":561,
|
|
"WM_ERASEBKGND":20,
|
|
"WM_EXITSIZEMOVE":562,
|
|
"WM_GETMINMAXINFO":36,
|
|
"WM_GETTEXT":13,
|
|
"WM_GETTEXTLENGTH":14,
|
|
"WM_IME_SETCONTEXT":0x0281,
|
|
"WM_IME_NOTIFY":0x0282,
|
|
"WM_KEYDOWN":256,
|
|
"WM_KEYUP":257,
|
|
"WM_KILLFOCUS":8,
|
|
"WM_LBUTTONDOWN":513,
|
|
"WM_LBUTTONUP":514,
|
|
"WM_MBUTTONDOWN":519,
|
|
"WM_MBUTTONUP":520,
|
|
"WM_MBUTTONDBLCLK":521,
|
|
"WM_MOUSEACTIVATE":33,
|
|
"WM_MOUSEMOVE":512,
|
|
"WM_MOVE":3,
|
|
"WM_MOVING":534,
|
|
"WM_NCACTIVATE":134,
|
|
"WM_NCCALCSIZE":131,
|
|
"WM_NCCREATE":129,
|
|
"WM_NCDESTROY":130,
|
|
"WM_NCHITTEST":132,
|
|
"WM_NCLBUTTONDBLCLK":163,
|
|
"WM_NCLBUTTONDOWN":161,
|
|
"WM_NCLBUTTONUP":162,
|
|
"WM_NCMOUSEMOVE":160,
|
|
"WM_NCPAINT":133,
|
|
"WM_PAINT":15,
|
|
"WM_PARENTNOTIFY":528,
|
|
"WM_SETCURSOR":32,
|
|
"WM_SETFOCUS":7,
|
|
"WM_SETFONT":48,
|
|
"WM_SETTEXT":12,
|
|
"WM_SHOWWINDOW":24,
|
|
"WM_SIZE":5,
|
|
"WM_SIZING":532,
|
|
"WM_SYNCPAINT":136,
|
|
"WM_SYSCOMMAND":274,
|
|
"WM_SYSKEYDOWN":260,
|
|
"WM_TIMER":275,
|
|
"WM_USER":1024,
|
|
"WM_USER+1":1025,
|
|
"WM_WINDOWPOSCHANGED":71,
|
|
"WM_WINDOWPOSCHANGING":70,
|
|
}
|
|
|
|
sgsm={}
|
|
for k,v in msgs.items():
|
|
sgsm[v] = k
|
|
|