|
|
|
TrayControl
Some applications display a icon in the system tray
when they are running, witch allows to
hide the main Application window from from the taskbar giving the user less
windows to care
about. When the user wants to use the application it just selects it from
the tray area.
I usually use Winamp to listen to my music when I am programming, I use it
with the
option System Tray Only, so that when I minimize it its only visible in the
tray area, but its
playing my music but not taking my screen space allowing me to work without
stumble
on its window.
Create a blank User Control and change the InvisibleAtRuntime property to
true and the
CanGetFocus property to False. The control will not be visible at runtime, a
timer for example
is not visible at runtime but is working, and we don't need to receive user
input so CanGetFocus
is set to false.
Start up the ActiveX Control Interface Wizard, in the page Select Interface
Members remove all
the Properties, Events and Methods that by default the wizard ads to a User
Control and only
leave the event MouseMove. Click in the next button to advance to the next
page.
[ TrayControl ] [ Create Custom Interface Members ] [ The API Declarations ] [ Code Please! ] [ Let the drawing begin! ] [ The Control in use ]
|
|
|