Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Windows data type for a handle to a device context.
An HDC can be obtained by GetDC (among others) and must be released by ReleaseDC. Use Scoped_hdc for safe memory use.
HDC is declared in windef.h (at least in the library that shipped with C++ Builder 6.0).
MakeScreenshot retrieves the HDC of the desktop and copies it (using BitBlt) on a bitmap (or more specific: a Graphics::TBitmap).
MakeScreenshot uses the VCL data type Graphics::TBitmap supplied with C++ Builder 6.0.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.