AddinExpress.IE.ADXIEWindowState bug?

Add-in Express™ Support Service
That's what is more important than anything else

AddinExpress.IE.ADXIEWindowState bug?
AddinExpress.IE.ADXIEWindowStateChanged_EventHandler using AddinExpress.IE.ADXIEWindowState 
mark kwan




Posts: 4
Joined: 2010-04-26
I don't know if this is a bug, or I am using it wrong. I think wsUserVisible = 1, wsEnabled = 2 is the correct way to define it.


// AddinExpress metatdata
namespace AddinExpress.IE
{
	[ComVisible(false)]
	[Flags]
	public enum ADXIEWindowState
	{
		wsUserVisible = 0,
		wsEnabled = 1,
	}
}


// my code
private void IEModule_WindowStateChanged(AddinExpress.IE.ADXIEWindowState windowState, AddinExpress.IE.ADXIEWindowState validState)
{
  // this doesn't work
  if (windowState & AddinExpress.IE.ADXIEWindowState.wsUserVisible) != 0)  // then window is visible.

  // this works
  if ((int)windowState & 0x01) != 0)  // then window is visible.

}

Posted 29 Apr, 2010 14:20:35 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Mark.

You are correct. Thanks. I will change it in the next build.
Posted 30 Apr, 2010 09:19:39 Top