I'll see if I can recreate the problem in win32::gui code. However I suspect the problem may be some interaction/sideeffect from Guiloft. Guiloft automates a great portion of the work required to set windows up.
and stores that info in binary files.
If I can create broken code I'll post it and the changes needed to fix it.
My original program has changed in form quite a bit and I am not using versioning software so I will have to try and deliberately write some broken code.