Hi all, i wonder if someone can give me an example of a working WM_SYSCOMMAND in action closing down internet explorer. If you can i would be very very gratefull \r\n \r\n
Quote:Originally Posted by MathImagics I believe that, in the general case of closing other application windows, it\'s possible that the target application might not do all its normal shutdown processing if you simply post a WM_CLOSE. \r\n \r\nThe best method, I think, is to post a WM_SYSCOMMAND with the SC_CLOSE parameter - this is the closest you can get to a simulation of the user clicking on the X (Close) button of the window. \r\n \r\nAnd whichever way you do it, as Red Bull has noted, it should be Posted, not Sent. \r\n \r\n \r\nDr Memory
Hi all, i wonder if someone can give me an example of a working WM_SYSCOMMAND in action closing down internet explorer. If you can i would be very very gratefull
Quote:Originally Posted by MathImagics I believe that, in the general case of closing other application windows, it's possible that the target application might not do all its normal shutdown processing if you simply post a WM_CLOSE.
The best method, I think, is to post a WM_SYSCOMMAND with the SC_CLOSE parameter - this is the closest you can get to a simulation of the user clicking on the X (Close) button of the window.
And whichever way you do it, as Red Bull has noted, it should be Posted, not Sent.
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe