Page 1 of 1
Thumbnail of window
Posted: Thu Apr 07, 2022 7:48 am
by Natter
Hi,
There is a list of windows (handles). Is it possible to make thumbnails of these windows ?
Re: Thumbnail of window
Posted: Thu Apr 07, 2022 11:08 pm
by James Bott
Maybe you should use folders instead.
Re: Thumbnail of window
Posted: Fri Apr 08, 2022 5:33 am
by Jimmy
hi,
i do not know how to simulate ALT + TAB ... have something to do with GetAltTabInfo
when have TaskList of (visible) Windows Handle you can get Icon from App
! Note : this Xbase++ Code use ANSI ( for Unicode change it to "W" )
Code: Select all | Expand
FUNCTION FindIcon(nHandle)
LOCAL nIcon
LOCAL ICON_SMALL:=0
LOCAL ICON_BIG:=1
LOCAL GCL_HICONSM:=-34
LOCAL GCL_HICON:=-14
LOCAL IDI_WINLOGO:=32517
nIcon := SendMessageA(nHandle, WM_GETICON, ICON_BIG, 0)
if nIcon != 0
RETURN nIcon
endif
nIcon := SendMessageA(nHandle, WM_GETICON, ICON_SMALL, 0)
if nIcon != 0
RETURN nIcon
endif
nIcon := GetClassLongA(nHandle, GCL_HICON)
if nIcon != 0
RETURN nIcon
endif
nIcon := GetClassLongA(nHandle, GCL_HICONSM)
if nIcon != 0
RETURN nIcon
endif
nIcon:=LoadIconA( 0, IDI_WINLOGO )
RETURN nIcon
p.s. when nIcon = IDI_WINLOGO -> Service or other Task
Re: Thumbnail of window
Posted: Fri Apr 08, 2022 9:03 am
by Natter
Thank you, Jimmy!
I needed to get thumbnails of visible application windows and browser pages and show them in xBrowse. I solved this problem by saving the windows to a bmp file - SaveWindow(). and then making miniatures of them - FiMakeThumbNail()