回答編集履歴
2
追記
test
CHANGED
@@ -13,3 +13,31 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
を`UpdateWindow`の代わりにいれてみてはいかがでしょうか?
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
---
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
**追記**
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
閉じた時に終了しないのならば
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
```c++
|
32
|
+
|
33
|
+
if( PeekMessage(&msg,hWnd,0,0,PM_REMOVE) ){
|
34
|
+
|
35
|
+
if(msg.message == WM_QUIT) break; // 追加
|
36
|
+
|
37
|
+
TranslateMessage(&msg);
|
38
|
+
|
39
|
+
DispatchMessage(&msg);
|
40
|
+
|
41
|
+
}
|
42
|
+
|
43
|
+
```
|
1
修正
test
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
```c++
|
2
|
-
|
3
|
-
MSG msg;
|
4
2
|
|
5
3
|
if( PeekMessage(&msg,hWnd,0,0,PM_REMOVE) ){
|
6
4
|
|