This statically compiled C++ library can be integrated into Windows MFC applications and was created to explore graphical user interaction within dialog windows.
The goal was to simplify working with complex, deeply nested context menus: instead of reading through long menu structures, users can click directly on graphical elements to trigger actions faster and more intuitively.
SVG was chosen as the graphics format because SVG images are easy to design and customize. This makes it straightforward to adapt the visuals to specific application needs.
The library serves as an exploratory approach to graphics-driven interaction in classic MFC UIs, with a focus on improving usability for complex workflows.
The following images demonstrate a nested and a specific context menu in a dialog window of a MFC application.
Many endpoints only become visible once the corresponding parent nodes of the context menus have been opened.
Finding the right value can be tedious the more nested the menus get.
The specific context menu displays only values that can be applied to the area that was clicked on.
In this example the left hand was clicked.

This is just an example to demonstrate what the initial idea behind this library was.
In this case the time to find a specific treatment for hands is reduced, becauses values that can not be applied to hands are filtered out.
If the user clicks on an area, only values that can be applied to the specific area are shown.
This reduces time to read through nested context menus.
This project demonstrates how the library can be used in practice.
It includes example SVG files and a runnable sample application.
Build and run the project to get an impression of the libabry's functionality.
-
Clone the
MFC-SVGrepositorygit clone https://github.com/f1sch/MFC-SVG -
Setup build directory
mkdir buildcd build -
CMake
cmake ..cmake --build . --config Debug --target Example -
Run
.\MFC-SVG\build\TestWindow\Debug\Example.exe
MIT License
Copyright (c) 2026 Fritzn
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

