Thanks for the reply Cookie. After reading them, I tried to rewrite some part of my code and indeed, much to my delight, PostMessage can be sent to a hidden window
SetWindowPos worked fine too but now that I don't need to change coordinates, I return to the good old ShowWindow function. Thanks again!