Hide or remove the close button from an anchor window

A

amirbar1

Hi,
Is it possible to hide/remove the close button from an anchor window ?
My anchor window creation function is listed below.

Public WithEvents theWindow As Window
Public Function createAnchorWindow(ByVal height As Integer, _
ByVal width As Integer) As window

Dim windowsStates As Object
theWindow = activeWindow.Windows.Add( _
windowCaption, _
VisWindowStates.visWSVisible Or
VisWindowStates.visWSAnchorAutoHide Or _
VisWindowStates.visWSRestored Or
VisWindowStates.visWSAnchorTop _
Or VisWindowStates.visWSAnchorLeft,
VisWinTypes.visAnchorBarAddon, _
0, 0, width, height, 0, 0, 0)
createAnchorWindow = theWindow
End Function

I didn't find any visWindowState constant that does that

Thanks
Amir
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top