I everyone (again)! I am quite new to the Windows API, and wonder if anyone could show me some code to do this:

1) when one button is pressed to find all currently maximised windows and to minimise them.

2) when another button is pressed to maximise all the windows that I have just minimised.

I realise that if someone shows me how to do the first one I will probably be able to do the second.

Thanks in advance,


Mark