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_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---
|