-
Removing system menu item without changing form
This code:
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?
Thanks!
/john
-
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.
---
Phil Weber
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|