Friday, May 25, 2012

FIND THE TASKBAR AND SYSTEM TRAY WINDOW HANDLES

The task bar is a top level window which has class name "Shell_TrayWnd". We can find it using the Windows FindWindow API function as follows:

function TaskbarHandle: THandle;
begin
   Result := FindWindow('Shell_TrayWnd', nil);
end;

0 comments:

Post a Comment

 
Related Posts Plugin for WordPress, Blogger...