handling System Menu item click

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • iwdu15

    #1

    handling System Menu item click

    hi, i added an item to the system menu for every application (looping through
    each process and using the MainWindowHandl e to get the handle, the using the
    GetSystemMenu and AppendMenu APIs to add a menu item) but now i need to have
    each application do somethiong when the item is selected....how can i do
    this? thanks
    --
    -iwdu15
  • Herfried K. Wagner [MVP]

    #2
    Re: handling System Menu item click

    "iwdu15" <jmmgoalsteraty ahoodotcomschri eb:
    hi, i added an item to the system menu for every application (looping
    through
    each process and using the MainWindowHandl e to get the handle, the using
    the
    GetSystemMenu and AppendMenu APIs to add a menu item) but now i need to
    have
    each application do somethiong when the item is selected
    Solution for your own application:

    <URL:http://dotnetrix.co.uk/menus.html>
    -"Adding Menu Items to the Window Menu(AKA System Menu)"

    Maybe you'll have to use a Win32 hook to subclass the windows.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    Working...