2025-11-28 00:35:46 +09:00
..
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00

page_type, languages, products, name, urlFragment, description, extendedZipContent
page_type languages products name urlFragment description extendedZipContent
sample
cpp
windows-api-win32
Menu theming sample application fakemenu Shows a custom window that looks and acts like a context menu
path target
LICENSE LICENSE

Menu theming sample application

This sample demonstrates how to create a window that looks and acts like a context menu.

  • Captures mouse and keyboard input without activation.
  • Behaves the same way as a system context menu.
  • Renders content with theme parts as applicable.

Operating system requirements

Windows Vista, will take advantage of newer features if available.

Build the sample

  1. Start Visual Studio and select File > Open > Project/Solution.

  2. Go to the directory named for the sample, and double-click the Microsoft Visual Studio Solution (.sln) file.

  3. Use Build > Build Solution to build the sample.

Run the sample

From Visual Studio, use Debug > Start Debugging or Start Without Debugging.

Right-click in the window to display the simulated context menu.

Try navigating the menu with both mouse and keyboard.