Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
mbox.cpp
#include <nana/gui.hpp>
void when_exit(const nana::arg_unload& ei)
{
m<<"Are you sure you want to exit the game?";
ei.cancel = (m() != m.pick_yes);
}
int main()
{
using namespace nana;
form fm;
fm.events().unload(when_exit);
fm.show();
exec();
}