This is the Dialogs.h part from the WGCL C++ Compiler Library I created. This creates classes for dialogs, it could cut the amount of code for dialogs you need to write in half, while still having the same amount of functionality.
This library is licensed under the GNU General Public License, it is completely free, and you can customize the source code to fit your needs. But I request you leave the lisence and credit comments at the top. Also, this is not commented very well because it was not originally created to teach people, people with moderate to advanced programming skills will be able to understand the code very will without the aid of comments.