thanks, i saw that article but i do not have enough experience to use. i am not suggesting you
write anything, but i need more assistance
this is what i found for the close butto
Option Compare Databas
Option Explici
Private Declare Function GetSystemMenu Lib "user32" (ByVal hWnd As Long,
ByVal bRevert As Long) As Lon
Private Declare Function EnableMenuItem Lib "user32" (ByVal hMenu As
Long, ByVal wIDEnableItem As Long, ByVal wEnable As Long) As Lon
Private Declare Function GetMenuItemInfo Lib "user32" Alias
"GetMenuItemInfoA" (ByVal hMenu As Long, ByVal un As Long, ByVal b As
Long, lpMenuItemInfo As MENUITEMINFO) As Lon
Private Type MENUITEMINF
cbSize As Lon
fMask As Lon
fType As Lon
fState As Lon
wID As Lon
hSubMenu As Lon
hbmpChecked As Lon
hbmpUnchecked As Lon
dwItemData As Lon
dwTypeData As Strin
cch As Lon
End Typ
Const MF_GRAYED = &H1
Const MF_BYCOMMAND = &H0
Const SC_CLOSE = &HF060
Public Property Get Enabled() As Boolea
Dim hWnd As Lon
Dim hMenu As Lon
Dim result As Lon
Dim MI As MENUITEMINF
MI.cbSize = Len(MI
MI.dwTypeData = String(80, 0
MI.cch = Len(MI.dwTypeData
MI.fMask = MF_GRAYE
MI.wID = SC_CLOS
hWnd = Application.hWndAccessAp
hMenu = GetSystemMenu(hWnd, 0
result = GetMenuItemInfo(hMenu, MI.wID, 0, MI
Enabled = (MI.fState And MF_GRAYED) =
End Propert
Public Property Let Enabled(boolClose As Boolean
Dim hWnd As Lon
Dim wFlags As Lon
Dim hMenu As Lon
Dim result As Lon
hWnd = Application.hWndAccessAp
hMenu = GetSystemMenu(hWnd, 0
If Not boolClose The
wFlags = MF_BYCOMMAND Or MF_GRAYE
Els
wFlags = MF_BYCOMMAND And Not MF_GRAYE
End I
result = EnableMenuItem(hMenu, SC_CLOSE, wFlags
End Propert
my first thoughts were to find the constant values and names for restore and mi
and just insert. but, of course, i did not find
i assume that there is more to the programming then just copying the maxrestore routine in th
paper you referenced