Advertisement
7_2009-2012 Windows API Call/ Explanation #235014

MenuAPI Example v1

This shows how to access another process' menu and clone it in your own application using API. The example allows you to choose an app from a list of open windows, then once the menu is 'cloned', it will allow you to execute menu items in the other process by clicking on them in your own app. This also demonstrates how to create & remove dynamic menus and submenus on your form, as well as handle messages from them when clicked (uses subclassing). API Calls: IsWindow(), SetWindowLong(), EnumWindows(), GetMenuString(), GetMenuItemID(), GetMenuItemCount(), GetMenu(), GetSubMenu(), AppendMenu(), DeleteMenu(), CreatePopupMenu(), DrawMenuBar(), CallWindowProc(), PostMessage(), GetWindowTextLength(), GetWindowText(), & IsWindowVisible()

AI

ИИ-обзор: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Исходный код
original-source
Upload
Оригинальные комментарии (3)
Восстановлено из Wayback Machine