Mi pare che tu debba anche mostrare il controllo appena creato con ShowWindow.
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum