Nana C++ Library. Reference for users.
What we need to use nana
Main Page
Related Pages
Namespaces
Classes
Examples
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
mbox.cpp
#include <nana/gui.hpp>
void
when_exit(
const
nana::arg_unload
& ei)
{
nana::msgbox
m(ei.
window_handle
,
"msgbox example"
,
nana::msgbox::yes_no
);
m.
icon
(m.
icon_question
);
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
();
}
Generated by
1.8.5