Skip to content

f1sch/MFC-SVG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SvgLib

TestWindow

Summary

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.

Pictures

The following images demonstrate a nested and a specific context menu in a dialog window of a MFC application.

Before

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.

Example of a nested context menu


After

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. Example of a specific context menu

Conclusion

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.

Installation

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.

Build and run

  1. Clone the MFC-SVG repository

    git clone https://github.com/f1sch/MFC-SVG

  2. Setup build directory

    mkdir build

    cd build

  3. CMake

    cmake ..

    cmake --build . --config Debug --target Example

  4. Run

    .\MFC-SVG\build\TestWindow\Debug\Example.exe

License

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors