I'm using SetCheck() in my CTreeCtrl. And I call a function in OnInitDlg that sets the checkmark. The return value from SetCheck is 1. But when the dialog shows there are no checkmarks in the squares. When I call the same function by pressing a Button after the window is shown, the check marks are there. Does any one have an idea what causes this problem.
//joakimf