#include <windows.h>
#include <iostream.h>
int main(int argc, char *argv[])
{
cout << PW_CLIENTONLY;
Sleep(2000);
return 0;
}
I'm trying to use the PrintWindow API function, and I want to use the PW_CLIENTONLY constant as a flag for the last argument so that it gets only the client area.
I don't know what value PW_CLIENTONLY is supposed to have, MSDN doesn't tell what value the constants have, and APILOAD doesn't include it. I tried Google, but the few examples I find there claim that it should be 1, however, however, that doesn't work.
Since windows.h comes with all the constants defined for you, I thought this should give a simple and concrete answer.