List Info

Thread: C-Sharp (C#) Group: New Entry in the default Application menu




C-Sharp (C#) Group: New Entry in the default Application menu
user name
2006-07-17 22:03:36
hi,

I am wondering how to add a new menu entry in the default
app menu, the
one in the top-left corner (Restore, Move, Size, Minimize,
Maximize
etc...)


regards

--Kermit


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: New Entry in the default Application menu
user name
2006-07-21 17:49:27
Kermit,
     I'm not sure how strongly you need this functionality,
but all I
can seem to come up with is that through COM interop, you
can inject
menu items through various Windows messaging calls.

There are many problems with this, however:
   a.) your code is no longer managed and/or safe...
   b.) it is very flaky and obscure code that would be very
difficult
to manage, support, or enhance...
   c.) I only can be sure of this to work in normal menus,
as I've
never actually tried it against the frame's system menu...

All in all, if you can avoid doing this, I think you will be
better
off. If you need this, however, try looking up COM interop
wrappers
around the kernel.dll and user32.dll. Those should be what
you need. Be
aware though, COM interoperability is an ugly business.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )