API Reference > Extension Classes > Windows Classes > CAbstractPreview Class > CAbstractPreview Methods > CAbstractPreview::DrawPreview Method
CAbstractPreview::DrawPreview Method
Syntax
C++
virtual void DrawPreview(HDC DC, int x, int y, int width, int height) = 0;
Parameters 
Description 
HDC DC 
[in] Handle of the device context.  
int x 
[in] Horizontal position of the upper-left corner.  
int y 
[in] Vertical position of the upper-left corner.  
int width 
[in] Width in pixels.  
int height 
[in] Height in pixels. 

Draws the preview for this Abstract Preview object..

x and y increase left to right, top to bottom.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.