Community help project
I've been stewing over this thing for a while. I have to design this little app for public computers in my city (free of charge or pay for me) to account for some mandatory public service hours. Basically its a tool for handicapped peoples. I have a great text-to-speech (TTS) interface that I got from a kid on campus but I have hit my wall... how in the world do capture the screen size and invert the colors? It can't be that hard...
To get the screen size just use the GetSystemMetrics() function. Sample code is below.
#define SCREENWIDTH GetSystemMetrics(SM_CXSCREEN)
#define SCREENHEIGHT GetSystemMetrics(SM_CYSCREEN)
int width, height;
width = GetSystemMetrics(SM_CXSCREEN);
height = GetSystemMetrics(SM_CYSCREEN);
I just found this, which looks like it will do what you want with the colors