This is a rewrite of my previous thumbnail toolbar UDF that includes all the other methods for ITaskBarList4. Some of the function new functions I really liked were the icon overlays like the IE icon in the snapshot, and SetThumbNailClip that allows you to crop the Thumbnail preview to any portion of the gui you want it to be. I tested this in 64bit and didnt have any problems so hopefully all the structure alignment problems have been fixed in autoit. As with anything I post, please let me know if you have any problems or suggestions (and I love comments). Requirements are Windows 7 and the new beta (188.8.131.52). All examples are included in the attatchment.
Special thanks to the AutoitObject Team, wraithdu for his original ITaskBarList Example, and extra thanks to trancexx for the new ObjCreateInterface() thats actually included in autoit now!! Your the F****ing Sh**t!
; #INDEX# ======================================================================================================================= ; Title .........: ITaskBarList ; AutoIt Version : 184.108.40.206 (Beta) ; Language ......: English ; Description ...: Functions to assist in using the ITaskBarList Interface. ; Author(s) .....: Brian J Christy (Beege) ; =============================================================================================================================== ; #CURRENT# ===================================================================================================================== ; _ITaskBar_CreateTaskBarObj - Creates a ITaskBarList object. ; _ITaskBar_SetOverlayIcon - Applies an overlay to a taskbar button to indicate application status or a notification to the user. ; _ITaskBar_SetThumbNailClip - Selects a portion of a window's client area to display as that window's thumbnail in the taskbar. ; _ITaskBar_AddTBButtons - Applies buttons that have been previously created using _ITaskBar_CreateTBButton() ; _ITaskBar_CreateTBButton - Creates a ThumbBar button ; _ITaskBar_UpdateTBButton - Shows, enables, disables, or hides buttons in a thumbnail toolbar as required by the window's current state. ; _ITaskBar_SetTBImageList - Specifies an image list that contains button images for a toolbar embedded in a thumbnail image of a window in a taskbar button flyout. ; _ITaskBar_ActivateTab - Activates an item on the taskbar. The window is not actually activated; the window's item on the taskbar is merely displayed as active. ; _ITaskBar_AddTab - Adds an item to the taskbar. ; _ITaskBar_DeleteTab - Deletes an item from the taskbar. ; _ITaskBar_SetActiveAlt - Marks a taskbar item as active but does not visually activate it. ; _ITaskBar_MarkFullscreenWindow - Marks a window as full-screen. ; _ITaskBar_RegisterTab - Informs the taskbar that a new tab or document thumbnail has been provided for display in an application's taskbar group flyout. ; _ITaskBar_UnregisterTab - Removes a thumbnail from an application's preview group when that tab or document is closed in the application. ; _ITaskBar_SetTabProperties - Allows a tab to specify whether the main application frame window or the tab window should be used as a thumbnail or in the peek feature under certain circumstances. ; _ITaskBar_SetProgressState - Sets the type and state of the progress indicator displayed on a taskbar button. ; _ITaskBar_SetProgressValue - Displays or updates a progress bar hosted in a taskbar button to show the specific percentage completed of the full operation. ; _ITaskBar_SetTabActive - Informs the taskbar that a tab or document window has been made the active window. ; _ITaskBar_SetTabOrder - Inserts a new thumbnail into a tabbed-document interface (TDI) or multiple-document interface (MDI) application's group flyout or moves an existing thumbnail to a new position in the application's group. ; _ITaskBar_SetThumbNailToolTip - Specifies or updates the text of the tooltip that is displayed when the mouse pointer rests on an individual preview thumbnail in a taskbar button flyout. ; _ITaskBar_DestroyObject - Destroys ITaskBarObject and icons freeing any memory the icons occupied ; ===============================================================================================================================
ITaskBarList.html 164bytes 1140 downloads
Note: The .html link is just to help me keep track of downloads. Open the .html file and a download dialog will display.
Edited by Beege, 01 October 2011 - 04:35 PM.