class EditDialog : public TopWindow { Button b; void DoClose() { Close(); } public : typedef EditDialog CLASSNAME; EditDialog(const char *title) { SetRect(0, 0, 200, 50); Title(title); Add(b.SetLabel("Close EditDialog").SizePos()); b <<= THISBACK(DoClose); } };
Report message to a moderator