1.2 KiB
1.2 KiB
page_type, languages, products, name, urlFragment, description, extendedZipContent
| page_type | languages | products | name | urlFragment | description | extendedZipContent | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sample |
|
|
Menu theming sample application | fakemenu | Shows a custom window that looks and acts like a context menu |
|
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
-
Start Visual Studio and select File > Open > Project/Solution.
-
Go to the directory named for the sample, and double-click the Microsoft Visual Studio Solution (.sln) file.
-
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.