Setting Container Scaling Values

Start with the project you created in Setting Container offsets:

1.

Add the following code to the WndProc function, after the L_ContainerCreate ( pContainer, hWnd ) ; function call in the WM_CREATE message:

{ // SET THE SCALING FACTOR 
   VECTORPOINT vptScalarNum, vptScalarDen; 
   vptScalarNum.x = nZoomFactor; 
   vptScalarDen.x = 100; 
   vptScalarNum.y = nZoomFactor; 
   vptScalarDen.y = 100; 
   vptScalarNum.z = 1; 
   vptScalarDen.z = 1; 
   L_ContainerSetScalar(pContainer, &vptScalarNum, &vptScalarDen); 
} // SET THE SCALING FACTOR 

2.

Compile and run the project by selecting Build->Rebuild Solution from the menu, and then Debug->Start Without Debugging.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Container and Automation C API Help