TRACE3
Visual Studio 2008
TRACE3( exp, param1, param2, param3 )
// Example for TRACE3
// get the display context
HDC hdc = ::GetDC(NULL);
// Get information about the display
int nVertRes = ::GetDeviceCaps(hdc, VERTRES);
int nHorzRes = ::GetDeviceCaps(hdc, HORZRES);
int nDepth = ::GetDeviceCaps(hdc, BITSPIXEL);
// Done with the DC, give it back
::ReleaseDC(hdc);
// Tell the user
TRACE3("Your screen is at %d by %d resolution, with %d bits per pixel\n",
nHorzRes, nVertRes, nDepth);