|
|
Title | Create an ActiveX control with a menu bar |
Keywords | ActiveX control, menu, menu bar |
Categories | ActiveX Controls, ActiveX, Controls |
|
|
Place a form in the ActiveX control project. Use the SetParent API function to display the form inside the control.
|
|
Public Sub ShowMenu()
If m_ParentHwnd <> 0 Then Exit Sub
m_ParentHwnd = SetParent(frmMenu.hWnd, hWnd)
frmMenu.Move 0, 0
frmMenu.Show
End Sub
|
|
|
|
|
|