Why are you using Worst Interface 32 Awful Productiveness Interface instead of a GUI Framework, such as Qt?