happyice

Hi... I found out that using :

Invoke(DISPID dispidMember, REFIID riid,
LCID lcid, WORD wFlags,
DISPPARAMS* pDispParams,
VARIANT* pvarResult,
EXCEPINFO* pExcepInfo, UINT* puArgErr)

on dispidMember = DISPID_WINDOWSTATECHANGED

try to get value from (int)pDispParams->rgvarg[1].bstrVal

if the value is 3 that means the current tab is active
if the value is 2 that means the current tab is hidden.
if the value is 1 that means the current tab is disable by some windows dialog.

izzit correct are there any other values I can also use IsWindowVisible to check whether currrent toolbar is active or inactive, visible/invisible, hide/unhide.

However, when i try to use dispidMember = DISPID_ONTOOLBAR to detect the toolbar changes (show/hide), I use mytoolbarobject.IsWindowVisible to detect user show/hide my toolbar, nothing happen. May I know is there anything wrong

thanks so much....


Re: Internet Explorer Extension Development how to use onToolBar and tab event

happyice

i found out that the deskband function SHOWDW actually will trigger when user show/hide toolbar. So with the help of IsWindowVisible, and ShowDW, and also windowstatechange event, I manage to do what I want to do on the IE toolbar... So I don't have to use onToolbarChange anymore..