Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Actually I have created one tree control with wxTreeCtrl class,but I cant get the checkboxes to that ctrl. I have tried in but no use, so will u plz tell me how to add checkboxes to that treectrl in wxWidgets.

What I have tried:

wxTreeItemId rootId = tree->AddRoot("Root");

	wxTreeItemId child2Id = tree->AppendItem(rootId, "Child1");

	//tree->AppendItem(new wxCheckBox(this, -1, wxT("")), 0, wxEXPAND);
	tree->AppendItem(child2Id, "mark1");
	tree->AppendItem(child2Id, "mark2");

	tree->ExpandAll();
Posted
Updated 21-Nov-17 20:59pm

1 solution

In the Sample overview of wxwiget you find a link to sample applications which also demonstrates other stuff for you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900