dlg_slide_image

int dlg_slide_image (int x, int y, int width, int height, wchar_t *name);


Display a slide in the dialog box.


This function displays an image in a dialog box. The image is positioned at x,y coordinates. These coordinates are the upper-left corner of the image.

The width argument specifies the relative width of the image in the positive x-direction. The height argument specifies the relative height of the image in the negative y-direction. The origin is the upper-left corner of the image.

The name argument is the name of the snapshot file, which can be in EMF (enhanced metatfile), WMF (windows metafile), or SLD (slide) format. progeCAD searches for slides in the lib.slb file located in the search path.

NOTES

  • Use the MSlide command to create an image. For good reproduction, create the snapshot at the same size and aspect ratio (usually 4:3) that you plan to display the image in the dialog box.
  • Obtain the coordinates of the lower-right corner by calling the dlg_dimensions_tile function
  • This function returns RTNORM if successful; otherwise, it returns an error code.

Tell me about...

Programming Overview of SDS (Solutions Development System)