size : 1128
uploaded_on : Thu Oct 15 00:00:00 1998
modified_on : Wed Dec 8 14:03:20 1999
title : Add items to the taskbar
org_filename : taskbar.txt
author : Vadim E. Gurevich
authoremail : vadim@mmdata.kharkov.ua
description : How to add controls to the taskbar
keywords :
tested : not tested yet
submitted_by : The CKB Crew
submitted_by_email : ckb@netalive.org
uploaded_by : nobody
modified_by : nobody
owner : nobody
lang : plain
file-type : text/plain
category : delphi-system32bit
__END_OF_HEADER__
> How does one get about adding controls/toolbars or anything to the W95
> Taskbar **NOT** the Tray notification area. So I mean like what the W95
> taskbar becomes after you've installed IE4 or W98.
It is not very difficult.
First You should get TrayBar handle:
FindWindow( 'Shell_TrayWnd', '' )
And then You may do whatever You whant. For example create a button:
AButtonWnd :=CreateWindow( 'button' ,
'Caption' ,
WS_ChildWindow ,
0 ,
0 ,
75 ,
20 ,
FindWindow( 'Shell_TrayWnd', '' ) ,
0 ,
hInstance ,
Nil );
ShowWindow( AButtonWnd, SW_SHOW )
If You don't whant to create controls by Yourself and let Delphi do it,
use such a WinApi function for any Delphi-made control:
function SetParent(WndChild: HWnd;
WndNewParent: HWnd): HWnd;
( see coresponding Help )
And if You use Delphi 3.0 You can modify ParentWindow prperty of
TWinControl-derived controls.