DeviceContext_ctor
DeviceContext-DeviceContext-ctor
Default constructor for a DeviceContext object.
Construct a DeviceContext object using the name of an existing DeviceContext.
DeviceContext( )
DeviceContext( DeviceContext & dc )
EX1
int DeviceContext_DeviceContext_ex1() { Page pb; pb = Project.Pages(); // Get the project's active page if( pb.IsValid() ) { Window myWindow = pb.GetWindow(); DeviceContext myDC = myWindow.GetDC(); int nPixels = myDC.GetDeviceCaps(LOGPIXELSX); } return 0; }
EX2
int DeviceContext_DeviceContext_ex2() { Page pb; pb = Project.Pages(); // Get the project's active page if( pb.IsValid() ) { Window myWindow = pb.GetWindow(); DeviceContext myDC = myWindow.GetDC(); int nPixels = myDC.GetDeviceCaps(LOGPIXELSX); DeviceContext dcCopy(myDC); int nPixelsCopy = dcCopy.GetDeviceCaps(LOGPIXELSX); } return 0; }
origin.h