Results 1 to 10 of 15

Threaded View

  1. #11
    Join Date
    Oct 2002
    Leicester, UK
    You could use FindWindowEx() to search for the window handle for the menu - using the menu class. Unfortunately I couldn't find the name given to a menu class.

    Or you could use GetSystemMenu() to get the system menu and then GetSubMenu() to get the Edit menu. GetMenuItemInfo() to get the ID of the "Select All" and "Copy" menu items and then send them via WM_COMMAND messages.

    Alternatively, you could use EnumWindows() or EnumChildWindows() and examine each enumerated window to see which one contains the text of the menu. IsMenu() would help.

    WindowFromPoint() might be another solution to find the handle for the menu.

    I don't understand why the console functions won't work. The screenshot you posted shows "cmd.exe" in the title bar.
    Last edited by keithathaide; 03-27-2006 at 07:40 PM.
    Forget the username, call me Keith

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts