That is really helpful to me. Thanks.
As there example explain, I try to send a message and depend on it destroy the window. But in my case the window is the console. If I get correct in my application I can't destroy the window. Right? So that mean the window destroyed automatically....