This is just a small example on how the EnumWindows function works. This little application has the ability to restore your window either to a Normal, Maximized or Minimized state.
This example alos uses the PostMessage function to close the selected window, provided of course that it is visible otherwise the the Close and Restore options will become disabled disallowing you to restore the window or closing it. I have included a screen shot of the application.
I hope this will be of some use. Feedback appreciated.
Nice job--well written & easily understood. One nitpick, the Close button should
probably be grouped with the Min,Max,Normal buttons, as it applies to the
selection in the LV. Assume your users are idiots like me, as I thought it was
meant to close your app, vice the selected app.