Click to See Complete Forum and Search --> : How windows close button works (internally)


Siva Prasad
February 23rd, 2001, 10:59 AM
We all know that there are many ways to close a window (any application window for e.g. browser window)
you can close the window using one of the following ways
a) click on the X(close) button top right corner
b) right click on the title bar and click on close
c) click on the window icon ( left hand top corner) and click on close button
d) double click on the above icon gives the same effect of above point c)
e)right click onthe taskbar button of this window
and last but not finally
f) using the file->close button in the menubar.

My question is...
What is the actual behaviour of this close methods? How do they work exactly using windows SDK terms?

All these methods are totally different? (talking in technical terms)

Siva Prasad

Alex Fedotov
February 24th, 2001, 12:20 AM
All they result in WM_CLOSE message sent to the window. Maybe, except f).