求教getwindow的参数gw_owner问题
新人请教:------------------------------------------------------------
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
Private Const GW_OWNER = 4
--------------------------
Private Sub Command1_Click()
Dim lphWnd As Long
lphWnd = GetWindow(Me.hwnd, GW_OWNER)
End Sub
----------------------------------------------------------------
lphWnd为什么会有值呢?它是哪一个宿主窗口啊?我只画了一个有按纽的窗体,并没设定它的owner窗口啊。谢谢!