This function doesn't need to be a method of wxControl, so don't make it one. No real changes, just improve the encapsulation.