vb6的窗体嵌入问题。 请教VB6的窗体嵌入问题。想把一些窗体动态的显示到主窗体界面中,但不想用MDI窗体。请问有什么好方法? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 相关api声明 略Public Sub Main() Dim lStyle As Long Load DlgLoginParent Load DlgChildLogin With DlgChildLogin lStyle = GetWindowLong(.hwnd, GWL_STYLE) lStyle = lStyle Or WS_CHILD Or WS_POPUP '*** Set the Style Attributes to the DlgChildLogin form Call SetWindowLong(.hwnd, GWL_STYLE, lStyle) '*** Make the DlgChildLogin form a Child of the DlgLoginParent form Call SetParent(.hwnd, DlgLoginParent.hwnd) '*** Set the Parent Style Attribute to the DlgLognParent form Call SetWindowLong(.hwnd, GWL_HWNDPARENT, DlgLoginParent.hwnd) End With '*** Show the Child and Parent Forms DlgChildLogin.Show DlgLoginParent.Show '*** Set the focus on the Child Form DlgChildLogin.SetFocus End Sub ch21st(风尘鸟) 非常感谢你的回答,我先试试看。 计算机改名后,vb无法运行 菜鸟问,模糊查询问题 listview 能多行选择,在线等 大家帮我看一下这个Label控件的过程 请教个SQL查询处理的问题 一个特别恐怖的打包问题!!!!! 关于控件vfoutbar 求解二元一次三角方程组的解法 急救,那位大大能帮帮我 怎么在VB实现这个界面 初学VB,DATA REPORT是个什么东东啊?控件吗? 清除资源
Dim lStyle As Long Load DlgLoginParent
Load DlgChildLogin
With DlgChildLogin
lStyle = GetWindowLong(.hwnd, GWL_STYLE)
lStyle = lStyle Or WS_CHILD Or WS_POPUP
'*** Set the Style Attributes to the DlgChildLogin form
Call SetWindowLong(.hwnd, GWL_STYLE, lStyle)
'*** Make the DlgChildLogin form a Child of the DlgLoginParent form
Call SetParent(.hwnd, DlgLoginParent.hwnd)
'*** Set the Parent Style Attribute to the DlgLognParent form
Call SetWindowLong(.hwnd, GWL_HWNDPARENT, DlgLoginParent.hwnd)
End With '*** Show the Child and Parent Forms
DlgChildLogin.Show
DlgLoginParent.Show
'*** Set the focus on the Child Form
DlgChildLogin.SetFocus
End Sub