Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Intermediate
Aug 21, 1997

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 form will float above the form that owns it, and will be automatically hidden whenever the owner form is minimized. To set up such a relationship, use SetWindowWord 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) 
Karl E.
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date