Can I replace the standard Restore, Move, Size, etc. context menu that
appears on the titlebar with my own?
- Jason
lukasz - 10 Sep 2004 22:15 GMT
One option is to remove the standard menu along with the icon and draw the
icon and menu on your own, but it'll not change the menu when you
right-click the window's button in the taskbar. An other possibility is to
use shell functions to add extra menu items to your form's system menu, and
these changes will be visible in both the titlebar and taskbar; I don't know
if you can remove items this way.
> Can I replace the standard Restore, Move, Size, etc. context menu that
> appears on the titlebar with my own?
>
> - Jason
Mick Doherty - 10 Sep 2004 22:32 GMT
You can modify the appearance and remove and add menuitems to the Window
Menu, but you'll need to do it via Interop.
Theres a basic Window Menu manipulation example on my site:
http://dotnetrix.co.uk/menus.html

Signature
Mick Doherty
http://dotnetrix.co.uk/nothing.html
> Can I replace the standard Restore, Move, Size, etc. context menu that
> appears on the titlebar with my own?
>
> - Jason
Jason - 14 Sep 2004 16:39 GMT
Thank you. The information was very helpful.
> You can modify the appearance and remove and add menuitems to the Window
> Menu, but you'll need to do it via Interop.
[quoted text clipped - 10 lines]
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004