Build Your Own Floating Toolbar

Build Your Own Floating Toolbar

Ever wanted a floating toolbar? To make one form “owned”by another, all it takes is a simple API call. Afterwards, the owned formwill float above the form that owns it, and will be automatically hiddenwhenever the owner form is minimized. To set up such a relationship, useSetWindowWord with the constant SWW_HPARENT:

 Declare Sub SetWindowWord Lib "User" (ByVal _ hWnd%, ByVal nCmd%, ByVal nVal%) Global Const SWW_HPARENT = -8 Call SetWindowWord(frmOwned.hWnd, SWW_HPARENT, _ frmOwner.hWnd) 


Share the Post: