回答編集履歴

3

追記

2020/09/26 23:59

投稿

Zuishin
Zuishin

スコア28660

test CHANGED
@@ -5,3 +5,21 @@
5
5
 
6
6
 
7
7
  トップレベルウィンドウというのは、ボタンやテキストボックスなど他のウィンドウのコントロールではないウィンドウを指します。雑に言うと、宙に浮いているものがトップレベルです。ただし MDI を除きます。
8
+
9
+
10
+
11
+ ### 追記
12
+
13
+
14
+
15
+ もっとも、トップレベルの場合は通常は親と言わずオーナーと言います。
16
+
17
+
18
+
19
+ [GetParent function (winuser.h) - Win32 apps | Microsoft Docs](https://docs.microsoft.com/ja-jp/windows/win32/api/winuser/nf-winuser-getparent)
20
+
21
+
22
+
23
+ > GetParent function (winuser.h)
24
+
25
+ > If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window with the WS_POPUP style, the return value is a handle to the owner window.

2

修正

2020/09/26 23:59

投稿

Zuishin
Zuishin

スコア28660

test CHANGED
@@ -1,4 +1,4 @@
1
- たとえばポップアップメニューなどがトップレベルですね。
1
+ たとえばポップアップメニューなどが他のウィンドウを親として持つトップレベルウィンドウですね。
2
2
 
3
3
  Windows Forms で作った場合は Form はトップレベルですが、Application という不可視のウィンドウの子になります。
4
4
 

1

修正

2020/09/26 23:53

投稿

Zuishin
Zuishin

スコア28660

test CHANGED
@@ -1,6 +1,6 @@
1
1
  たとえばポップアップメニューなどがトップレベルですね。
2
2
 
3
- Windows Forms で作った場合は Form はトップレベルですが、Application ウィンドウの子になります。
3
+ Windows Forms で作った場合は Form はトップレベルですが、Application という不可視のウィンドウの子になります。
4
4
 
5
5
 
6
6