nixnixnix Messages: 415 Registered: February 2007 Location: Kelowna, British Columbia
Senior Member
Thanks Mirek, that worked a treat
ended up looking like this
struct TreeOption : Option {
virtual void LeftDown(Point p, dword keyflags) {
if(p.x<this->GetSize().cy) // in the checkbox
Option::LeftDown(p, keyflags); // def func
if(this->GetData()==true) // explicit for clarity
SetFocus(); //shame there is no killfocus()
}
};
are there any examples of changing the tree item hierarchy by dragging and dropping or do I need to go do it with a recttracker and if so can I show the contents whilst dragging? guess i would need to subclass recttracker?