回答編集履歴
1
コード追加
test
CHANGED
@@ -13,3 +13,35 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
こう言ったウィンドウ構成ならMDIを使ったほうがいいと思います。
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
**--------- 追記 ---------------------------**
|
20
|
+
|
21
|
+
```C
|
22
|
+
|
23
|
+
case WM_SIZE:
|
24
|
+
|
25
|
+
{
|
26
|
+
|
27
|
+
if (GetClientRect(hwnd, &rcWindow) == false) {
|
28
|
+
|
29
|
+
MessageBox(hwnd, L"Can't Get the ClientRect", L"Alert", IDOK);
|
30
|
+
|
31
|
+
break;
|
32
|
+
|
33
|
+
}
|
34
|
+
|
35
|
+
int w = rcWindow.right - rcWindow.left;
|
36
|
+
|
37
|
+
int h = rcWindow.bottom - rcWindow.top;
|
38
|
+
|
39
|
+
MoveWindow(hChildWnd_L, 0, 0, w/2, h, TRUE);
|
40
|
+
|
41
|
+
MoveWindow(hChildWnd_R, w/2, 0, w/2, h, TRUE);
|
42
|
+
|
43
|
+
break;
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
```
|