Removing system menu item without changing form
hMenu = GetSystemMenu(Form1.hwnd, 0)
Call RemoveMenu(hMenu, SC_CLOSE, MF_BYCOMMAND)
Call RemoveMenu(hMenu, SC_MOVE, MF_BYCOMMAND)
...should only remove those two menu items.
But it actually makes the form "unclosable" (is disables the little button
in the right corner with the "x" on it). It also makes the form "unmovable"
(nothing happens when I try to drag the menubar).
How can I remove these menu items without causing this?
Re: Removing system menu item without changing form
> How can I remove these menu items without causing this?
John: You can't. The only alternative that comes to mind is to owner-draw
the title bar; then you can include any control buttons you wish, respond to
mouse down/move events, etc.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center