Hi i have been searching on the internet on how to disable the X button at run time, i have got it working, but i don't realy understand what is going on can some please help?
What does this mean, i am OK on the function as i understand it but what is Lib and user 32. I presume that
Code:
hMenu = GetSystemMenu(h Wnd, False)
is stored in the byVal for its declaration
DeleteMenu hMenu, 6, MF_BYPOSITION
and same with this
I hope this makes sense cheers
Code:
Private Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long Private Declare Function GetSystemMenu Lib "user32" (ByVal hWnd As Long, ByVal bRevert As Long) As Long Private Const MF_BYPOSITION = &H400&
Code:
hMenu = GetSystemMenu(h Wnd, False)
is stored in the byVal for its declaration
DeleteMenu hMenu, 6, MF_BYPOSITION
and same with this
I hope this makes sense cheers
Comment