How to restore hidden instance using windows API

Maddis

Новичок
Регистрация
22.10.2018
Сообщения
26
Благодарностей
3
Баллы
3
Hi there. I am trying to restore a window of an instance via API that has been closed (after clicking X on Toolbar) rather than having to double click the instance thumbnail each time under the Instances tab in Zenno Poster. My code works fine (External exe separate to Zenno) however chrome remains inactive and does not render unless I double click the instance in Zenno, which will then update the chrome instance.

I need to be able to fully activate the window without using ZennoPoster/Box. Prior to the instance preview window feature being added (since Zenno Poster 7) my code worked fine.

What additional API do i need to use to fully activate chrome again? Is chrome treated as a separate window (child). If so, how do i get its hwnd?


Current code being used in my VB project:

Код:
 Dim hWnd as long
 
' Get hWnd of instance window
 hWnd = FindWindow(vbNullString, InstanceTitle)
 
'Display Window
 apiShowWindow hWnd, SW_SHOW
 SetWindowLong hWnd, GWL_EXSTYLE, 65792
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)