I come primarily from a Perl, PHP, S/R scripting background, so I am a fairly decent programmer, and I have a little experience with C++. What I would like to do is the following (on a MS Windows environment):
1. Get a list of all visible windows (either handles or window titles is fine)
2. If possible, I would also like to do the following:
-Compile my program a consoleless (i.e. in a hidden window, so no console pops up)
-Have the option to close all the windows open. I would like this to happen not by forcibly killing
the process, but by 'politely' asking the window to close, so that if work has not been saved, the program
will prompt the user to save data.
I am not really sure where to start with this in C++. I have written a program in Perl that does part of this (gets a list of all open visible windows) and compiled it as an EXE, but it is somewhat slower and larger in file size than I think a C++ exe would be.
Could someone help me get started with this? Like I said I am not terribly experienced in C++, but I should be pretty to teach. BTW, I am using the Dev-C++ compiler (not Visual C++).
Thanks in advance for your help,