OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Object Data Members and Functions

These data members and functions are used to administer the device context object itself.

They are protected and can be accessed only by a TDC-derived class.

  • TDC::ShouldDelete indicates whether the object should delete its handle to the device context when the destructor is invoked.
  • TDC::Handle contains the actual handle of the device context.
  • TDC::OrgBrush, TDC::OrgPen, TDC::OrgFont, and TDC::OrgPalette are the handles to the original objects when the device context was created.
  • TDC::OrgTextBrush is also present in 32-bit applications.
  • TDC::CheckValid throws an exception if the device context object is not valid.
  • TDC::Init sets OrgBrush, OrgPen, OrgFont, and OrgPalette when the object is created. If you're creating a TDC-derived class without explicitly calling a TDC constructor, you should call TDC::Init first in your constructor.
  • TDC::GetHDC returns an HDC using Handle.
  • TDC::GetAttributeHDC, like GetHDC, returns an HDC using Handle. If you're creating an object with more than one device context, you should override this function and not GetHDC to provide the proper return.
  • TDC::OWLFastWindowFrame draws a frame that is often used for window borders. This function uses the undocumented Windows API function FastWindowFrame if available, or TDC::PatBlt if not.

See Also