P.S. Some other fixes have taken place recently in TreeCtrl.cpp. However, the above is the only occurrence of sb.SetTotal in the whole file. Alternatively I'm enclosing my up-to-date TreeCtrl.cpp you should be able to use as a replacement for yours. Unfortunately you would also have to update the header file.