第i个消息 | 值 | 宏 | 消息 |
---|---|---|---|
0 | 24H | WM_GETMINMAXINFO | 当窗口将要改变大小或位置时,由系统发送本消息给窗口,用户拖动一个可重置大小的窗口时便会发出本消息 |
1 | 81H | WM_NCCREATE | 当某窗口首次被创建时,本消息在WM_CREATE消息发送前发送 |
2 | 83H | WM_NCCALCSIZE | 当某窗口的客户区的大小和位置须被计算时发送本消息 |
3 | 93H | aaaaa | gggg |
4 | 94H | aaaaa | gggg |
5 | 1H | WM_CREATE | 新建一个窗口 |
6 | 18H | WM_SHOWWINDOW | 发送本消息给一个窗口,以便隐藏或显示该窗口 |
7 | 46H | WM_WINDOWPOSCHANGING | 本消息会发送给那些大小和位置(Z_Order)将被改变的窗口,以调用SetWindowPos函数或其它窗口管理函数 |
8 | 46H | aaaaa | gggg |
9 | 1cH | WM_ACTIVATEAPP | 窗口进程激活状态改动,正被激活的窗口属于不同的应用程序 |
10 | 86H | WM_NCACTIVATE | 本消息发送给某窗口,在窗口的非客户区被激活时重绘窗口 |
11 | 93H | aaaaa | gggg |
12 | 7fH | WM_GETICON | 本消息发送给某个窗口,用于返回与某窗口有关联的大图标或小图标的句柄 |
13 | 7fH | aaaaa | gggg |
14 | 7fH | aaaaa | gggg |
15 | 93H | aaaaa | gggg |
16 | 91H | aaaaa | gggg |
17 | 92H | aaaaa | gggg |
18 | 6H | WM_ACTIVATE | MFC内部保留的未公开消息 |
19 | 281H | WM_IME_SETCONTEXT | 应用程序的窗口激活时,系统将向应用程序发送WM_IME_SETCONTEXT消息,注:输入法相关 |
20 | 282H | WM_IME_NOTIFY | 可使用WM_IME_NOTIFY消息来通知关于IME窗口状态的常规改变,注:输入法相关 |
21 | 7H | WM_SETFOCUS | 将焦点转向一个窗口 |
22 | 85H | WM_NCPAINT | 当窗口框架(非客户区)必须被被重绘时,应用程序发送本消息给该窗口 |
23 | 93H | aaaaa | gggg |
24 | 93H | aaaaa | gggg |
25 | 91H | aaaaa | gggg |
26 | 92H | aaaaa | gggg |
27 | 14H | WM_ERASEBKGND | 当一个窗口的背景必须被擦除时本消息会被触发(如:窗口大小改变时 |
28 | 47H | WM_WINDOWPOSCHANGED | 本消息会发送给那些大小和位置(Z_Order)已被改变的窗口,以调用SetWindowPos函数或其它窗口管理函数 |
29 | 93H | aaaaa | gggg |
30 | 5H | WM_SIZE | 改变一个窗口的大小 |
31 | 3H | WM_MOVE | 移动一个窗口 |
32 | fH | WM_PAINT | 窗口重绘 |
33 | 55H | WM_NOTIFYFORMAT | 公用控件、自定义控件和其父窗通过本消息判断控件在WM_NOTIFY通知消息中是使用ANSI还是UNICODE,使用本消息能使某个控件与它的父控件间进行相互通信 |
34 | 129H | WM_QUERYUISTATE | gggg |
35 | 133H | WM_CTLCOLOREDIT | 当一个编辑框控件将要被绘制时,发送本消息给其父窗;通过响应本消息,所有者窗口可通过使用给定的相关显示设备的句柄来设置编辑框的文本和背景色 |
36 | 133H | aaaaa | gggg |
37 | 210H | WM_PARENTNOTIFY | 当MDI子窗口被创建或被销毁,或用户按了一下鼠标键而光标在子窗口上时,发送本消息给其父窗 |
38 | 14H | WM_ERASEBKGND | 当一个窗口的背景必须被擦除时本消息会被触发(如:窗口大小改变时) |
39 | 133H | WM_CTLCOLOREDIT | 当一个编辑框控件将要被绘制时,发送本消息给其父窗;通过响应本消息,所有者窗口可通过使用给定的相关显示设备的句柄来设置编辑框的文本和背景色 |
40 | 133H | aaaaa | gggg |
41 | 4eH | WM_NOTIFY | 当某控件的某事件已发生或该控件需得到一些信息时,发送本消息给其父窗 |
42 | 7fH | WM_GETICON | 本消息发送给某个窗口,用于返回与某窗口有关联的大图标或小图标的句柄 |
43 | 31fH | WM_DWMNCRENDERINGCHANGED | gggg |
44 | 7fH | aaaaa | gggg |
45 | c134H | aaaaa | gggg |
46 | 7fH | aaaaa | gggg |
47 | 24H | aaaaa | gggg |
48 | 84H | aaaaa | gggg |
49 | 20H | aaaaa | gggg |
50 | 200H | aaaaa | gggg |
51 | 282H | aaaaa | gggg |
52 | 84H | aaaaa | gggg |
53 | 20H | aaaaa | gggg |
54 | 200H | aaaaa | gggg |
55 | 84H | aaaaa | gggg |
56 | 20H | aaaaa | gggg |
57 | 200H | aaaaa | gggg |
58 | 84H | aaaaa | gggg |
59 | 20H | aaaaa | gggg |
60 | 200H | aaaaa | gggg |
61 | 84H | aaaaa | gggg |
62 | 20H | aaaaa | gggg |
63 | 200H | aaaaa | gggg |
64 | 84H | aaaaa | gggg |
65 | 20H | aaaaa | gggg |
66 | 200H | aaaaa | gggg |
67 | 84H | aaaaa | gggg |
68 | 20H | aaaaa | gggg |
69 | 200H | aaaaa | gggg |
70 | 84H | aaaaa | gggg |
71 | 20H | aaaaa | gggg |
72 | 200H | aaaaa | gggg |
73 | 84H | aaaaa | gggg |
74 | 20H | aaaaa | gggg |
75 | 200H | aaaaa | gggg |
76 | 84H | aaaaa | gggg |
77 | 20H | aaaaa | gggg |
78 | 200H | aaaaa | gggg |
79 | 84H | aaaaa | gggg |
80 | 20H | aaaaa | gggg |
81 | 200H | aaaaa | gggg |
82 | 84H | aaaaa | gggg |
83 | 20H | aaaaa | gggg |
84 | 200H | aaaaa | gggg |
85 | 84H | aaaaa | gggg |
86 | 20H | aaaaa | gggg |
87 | 200H | aaaaa | gggg |
88 | 84H | aaaaa | gggg |
89 | 20H | aaaaa | gggg |
90 | 200H | aaaaa | gggg |
91 | 84H | aaaaa | gggg |
92 | 20H | aaaaa | gggg |
93 | 200H | aaaaa | gggg |
94 | 84H | aaaaa | gggg |
95 | 20H | aaaaa | gggg |
96 | 200H | aaaaa | gggg |
97 | 84H | aaaaa | gggg |
98 | 20H | aaaaa | gggg |
99 | 200H | aaaaa | gggg |
版权声明:本文为weixin_40087142原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。