struct MyOption : Option { virtual void LeftDown(Point p, dword keyflags) { SetFocus(); Option::LeftDown(p, keyflags); } }; ....... TreeCtrl tree; Array<MyOption> option; // clear before loading tree... ....... TreeCtrl::Node node(option.Add()); option.Top().SetLabel(text); int id = tree.Add(parentid, node);
Report message to a moderator