![]() : hSource = Handle to the window to be previewed. : Initialize the object, registering a new thumbnail and allocating the memory. : Manages thumbnails creation and destruction. hLT := LiveThumb(hwndNotepad, Mygui.Hwnd) WinGetPos( &X, &Y, &W, &H, "ahk_pid " PID) This should be called everytime if some value is changed. thumb.Update() Updates the given Propertys. ![]() hLT.Opacity := 255 Optional: value between 0 and 255 hLT.SourceClientAreaOnly := True Optional: True or False Set Show Client Area Only. thumb.Visible := True True or False Set the Thumbnail Visible To show the full area its should be the same size like the Destination Window Shrinks or streches the Thumbnail to the given size. thumb.Destination := Size of the Destination Window Thumbnail. ![]() Should be the same Size of the Source Window or it shows free space thumb.Source := Size of the Source Window Thumbnail. thumb := LiveThumb(HWND Source Window, HWND Destination Window) : "DwmUnregisterThumbnail" Win32 function: : "DwmUpdateThumbnailProperties" Win32 function: : "DWM_TNP" Constants for the dwFlags field: : "DWM_THUMB_PROPERTIES" Win32 structure: : "DwmQueryThumbnailSourceSize" Win32 function: : Implements the following functions and structures from Win32 API. : Due to some internal unknown reason, the instantiated object must be in the global namespace to work. : when an update has not been performed before, will result in the string "NOT UPDATED" to be returned. : been updated, the "Update()" method should be called to submit the properties. : The class registers a thumbnail and waits for properties update. 26, 2023 - v0.1.5 - Conerverted to Autohotkey version 2 15, 2022 - v0.1.5 - Fixed DWM_THUMB_PROPERTIES structure offsets (thanks swagfag). 21, 2019 - v0.1.4 - Fixed Object.SetCapacity not zero-filling allocated memory. 21, 2019 - v0.1.3 - Fixed potential issue with HRESULT return code. : when returning false from the constructor (thanks Helgef). Fixed LoadLibrary return type and a wrong behavior 04, 2019 - v0.1.1 - Added active properties management and propertes getters. : Windows live thumbnails implementation (requires AERO to be enabled).
0 Comments
Leave a Reply. |