Interesting, the main window was not initially visable so when the group box is created it was having an issue in creation making it transparent, adding WS_VISIBLE to the main window fixed the problem.