2,586
社区成员
发帖
与我相关
我的任务
分享
#include <nana/gui/wvl.hpp>
#include <nana/gui/widgets/combox.hpp>
int main()
{
nana::gui::form form(nana::gui::API::make_center(240, 100),
nana::gui::appearance(false, false, false, true, false)); //只有关闭按钮的窗口
form.caption(STR("Nana C++ Library - Example"));
nana::gui::combox child(form, 5, 3, 230, 25);
child.insert(STR("You want a piece of me, boy?"));
child.insert(STR("We gotta move."));
child.insert(STR("Need a light?"));
child.insert(STR("Battlecruiser operational."));
child.insert(STR("Explorer reporting"));
child.insert(STR("State the nature of your medical emergency."));
child.insert(STR("My life for Aiur"));
child.insert(STR("I have returned"));
form.show();
nana::gui::exec();
return 0;
}