cfmoxey
Jan 6th, 2000, 03:58 AM
What I am attempting to do is eliminate the possibility of the operator closing, minimizing, or resizing my application.
I have managed to get rid of the Minimize/Maximize/Close behavior of the MDIform menu and buttons with this little bit of code
hSysMenu = GetSystemMenu(Me.hWnd, 0)
For intCounter = 8 To 0 Step -1
lReturn = RemoveMenu(hSysMenu, intCounter, MF_BYPOSITION)
Next intCounter
Then I discovered that if I double-clicked the titlebar, lo' and behold, the form resized itself. And, of course, I could no longer resize it back to normal.
Any ideas on what to do to trap and disable this behavior?
Thanks in advance,
--Carl
I have managed to get rid of the Minimize/Maximize/Close behavior of the MDIform menu and buttons with this little bit of code
hSysMenu = GetSystemMenu(Me.hWnd, 0)
For intCounter = 8 To 0 Step -1
lReturn = RemoveMenu(hSysMenu, intCounter, MF_BYPOSITION)
Next intCounter
Then I discovered that if I double-clicked the titlebar, lo' and behold, the form resized itself. And, of course, I could no longer resize it back to normal.
Any ideas on what to do to trap and disable this behavior?
Thanks in advance,
--Carl