【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.6.8.3 DeviceContext::DeviceContext_ctor
Contents
Description
Default constructor for a DeviceContext object.
Construct a DeviceContext object using the name of an existing DeviceContext.
Syntax
DeviceContext( )
DeviceContext( DeviceContext & dc )
Parameters
- dc
- [input]An existing DeviceContext object.
Return
Examples
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; }
Remark
See Also
Header to Include
origin.h