--- page_type: sample languages: - cpp products: - windows-api-win32 name: Menu theming sample application urlFragment: fakemenu description: Shows a custom window that looks and acts like a context menu extendedZipContent: - path: LICENSE target: 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.