Attach
Use hDC set internal hDC value.
BOOL Attach( HDC hDC )
Returns TRUE for success or FALSE for failure.
EX1
int DeviceContext_Attach_ex1() { Page pb; pb = Project.Pages(); // Get the project's active page if( pb.IsValid() ) { string strName = pb.GetName(); HDC hdc = (HDC)&strName; ASSERT(hdc); DeviceContext myDC ; bool bRet = myDC.Attach(hdc); } return 0; }
origin.h