Well, for one, you could simply decide not to create a window at all if this parameter is passed, otherwise you can try calling ShowWindow , with your window handle and the SW_HIDE parameter, and see what does what you need to do.
Another way to hide a window and never show it, but still create it, is to not call ShowWindow with SW_HIDE on it and create it using CreateWindow / CreateWindowEx and do not set the WS_VISIBLE flag in the dwStyle parameter.
Jacob
source share